diff options
author | brian <brian@FreeBSD.org> | 1997-09-06 11:11:43 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-09-06 11:11:43 +0000 |
commit | afdfe1afbec93dad5295a9647951ea630b78662d (patch) | |
tree | 0de130b2a5705265f387e2196c2bec3e7a48f4e1 /sys/netinet | |
parent | e0e2f7c58cc1f15b62754b339a0852f197084c9f (diff) | |
download | FreeBSD-src-afdfe1afbec93dad5295a9647951ea630b78662d.zip FreeBSD-src-afdfe1afbec93dad5295a9647951ea630b78662d.tar.gz |
Upgrade to 2.4 (Fix -PKT_ALIAS_UNREGISTERED_ONLY)
Submitted by: Charles Mott <cmott@srv.net>
Add __libalias_version so that ppp can derive the
correct library name for dlopen()
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/libalias/HISTORY | 12 | ||||
-rw-r--r-- | sys/netinet/libalias/Makefile | 2 | ||||
-rw-r--r-- | sys/netinet/libalias/alias.c | 2 | ||||
-rw-r--r-- | sys/netinet/libalias/alias.h | 3 | ||||
-rw-r--r-- | sys/netinet/libalias/libalias.3 | 2 |
5 files changed, 17 insertions, 4 deletions
diff --git a/sys/netinet/libalias/HISTORY b/sys/netinet/libalias/HISTORY index c690b58..78a7e08 100644 --- a/sys/netinet/libalias/HISTORY +++ b/sys/netinet/libalias/HISTORY @@ -41,9 +41,14 @@ Verstion 1.7: January 9, 1997 (cjm) from two hosts which are both running packet aliasing. + - Checksum error on FTP transfers. Problem + in code located by Martin Renters and + Brian Somers. + Version 1.8: January 14, 1997 (cjm) - Fixed data type error in function StartPoint() in alias_db.c (this bug did not exist before v1.7) + Problem in code located by Ari Suutari. Version 1.9: February 1, 1997 (Eivind Eklund <perhaps@yes.no>) - Added support for IRC DCC (ee) @@ -108,5 +113,10 @@ Version 2.3: August 11, 1997 (cjm) - Problem associated with socket file descriptor accumulation in alias_db.c corrected. The sockets had to be closed when a binding failed. Problem - identified by Gordon Burditt. + in code located by Gordon Burditt. + +Version 2.4: September 1, 1997 (cjm) + - PKT_ALIAS_UNREGISTERED_ONLY option repaired. + This part of the code was incorrectly re-implemented + in version 2.1. diff --git a/sys/netinet/libalias/Makefile b/sys/netinet/libalias/Makefile index d7eab42..3c291b2 100644 --- a/sys/netinet/libalias/Makefile +++ b/sys/netinet/libalias/Makefile @@ -1,6 +1,6 @@ LIB= alias SHLIB_MAJOR= 2 -SHLIB_MINOR= 3 +SHLIB_MINOR= 4 CFLAGS+=-Wall -I${.CURDIR} SRCS= alias.c alias_db.c alias_ftp.c alias_irc.c alias_util.c alias_old.c MAN3=libalias.3 diff --git a/sys/netinet/libalias/alias.c b/sys/netinet/libalias/alias.c index 9bf28d3..a9c1e3b 100644 --- a/sys/netinet/libalias/alias.c +++ b/sys/netinet/libalias/alias.c @@ -1064,7 +1064,7 @@ PacketAliasOut(char *ptr, /* valid IP packet */ else if (addr >= UNREG_ADDR_A_LOWER && addr <= UNREG_ADDR_A_UPPER) iclass = 1; - if (iclass != 0) + if (iclass == 0) { SetDefaultAliasAddress(pip->ip_src); } diff --git a/sys/netinet/libalias/alias.h b/sys/netinet/libalias/alias.h index f574017..50d8056 100644 --- a/sys/netinet/libalias/alias.h +++ b/sys/netinet/libalias/alias.h @@ -143,5 +143,8 @@ extern u_short InternetChecksum(u_short *, int); #define PKT_ALIAS_UNRESOLVED_FRAGMENT 3 #define PKT_ALIAS_FOUND_HEADER_FRAGMENT 4 +#undef __libalias_version +#define __libalias_version "2.4" + #endif /*lint -restore */ diff --git a/sys/netinet/libalias/libalias.3 b/sys/netinet/libalias/libalias.3 index e989d6e..6c86232 100644 --- a/sys/netinet/libalias/libalias.3 +++ b/sys/netinet/libalias/libalias.3 @@ -568,7 +568,7 @@ of data including its checksum. If the checksum is valid, PacketAliasInternetChecksum() will return zero. .Sh 7. Authors -Charles Mott (cmott@srv.net), versions 1.0 - 1.8, 2.0 - 2.3. +Charles Mott (cmott@srv.net), versions 1.0 - 1.8, 2.0 - 2.4. Eivind Eiklund (eivind@freebsd.org), versions 1.8b and 1.9. Added IRC support as well as contributing a number of |