diff options
author | phk <phk@FreeBSD.org> | 2004-01-17 10:52:21 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-01-17 10:52:21 +0000 |
commit | 7948e91c15e85d387bf8070d18fd9257a7d982be (patch) | |
tree | c6f9109d165b87ec210bad09db4698bcf1e09e3d /lib/libalias/alias_util.c | |
parent | b8698f2968ee8eae55e888c1a3ec985218257e28 (diff) | |
download | FreeBSD-src-7948e91c15e85d387bf8070d18fd9257a7d982be.zip FreeBSD-src-7948e91c15e85d387bf8070d18fd9257a7d982be.tar.gz |
Mostly mechanical rework of libalias:
Makes it possible to have multiple packet aliasing instances in a
single process by moving all static and global variables into an
instance structure called "struct libalias".
Redefine a new API based on s/PacketAlias/LibAlias/g
Add new "instance" argument to all functions in the new API.
Implement old API in terms of the new API.
Diffstat (limited to 'lib/libalias/alias_util.c')
-rw-r--r-- | lib/libalias/alias_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libalias/alias_util.c b/lib/libalias/alias_util.c index d6b40a2..1bba075 100644 --- a/lib/libalias/alias_util.c +++ b/lib/libalias/alias_util.c @@ -50,6 +50,7 @@ then these routines will give a result of zero (useful for testing purposes); */ +#include <stdio.h> #include <sys/types.h> #include <netinet/in_systm.h> #include <netinet/in.h> @@ -60,7 +61,7 @@ purposes); #include "alias_local.h" u_short -PacketAliasInternetChecksum(u_short *ptr, int nbytes) +LibAliasInternetChecksum(struct libalias *la, u_short *ptr, int nbytes) { int sum, oddbyte; |