diff options
author | ru <ru@FreeBSD.org> | 2000-06-20 13:07:52 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2000-06-20 13:07:52 +0000 |
commit | 6031a74ba6a7b67966558785e154c392a9177ea2 (patch) | |
tree | d355a2cbf01016763e82c239df490f06c87951ea /lib | |
parent | 8f3a6df6e3a28b266828ab78e6e6a912b9512c85 (diff) | |
download | FreeBSD-src-6031a74ba6a7b67966558785e154c392a9177ea2.zip FreeBSD-src-6031a74ba6a7b67966558785e154c392a9177ea2.tar.gz |
- Removed PacketAliasPptp() API function.
- SHLIB_MAJOR++.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libalias/Makefile | 2 | ||||
-rw-r--r-- | lib/libalias/alias.h | 3 | ||||
-rw-r--r-- | lib/libalias/alias_db.c | 14 | ||||
-rw-r--r-- | lib/libalias/libalias.3 | 20 |
4 files changed, 1 insertions, 38 deletions
diff --git a/lib/libalias/Makefile b/lib/libalias/Makefile index 3208014..2ee0675 100644 --- a/lib/libalias/Makefile +++ b/lib/libalias/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ LIB= alias -SHLIB_MAJOR= 3 +SHLIB_MAJOR= 4 SHLIB_MINOR= 0 CFLAGS+= -Wall -I${.CURDIR} SRCS= alias.c alias_cuseeme.c alias_db.c alias_ftp.c alias_irc.c \ diff --git a/lib/libalias/alias.h b/lib/libalias/alias.h index ace911d..61f759f 100644 --- a/lib/libalias/alias.h +++ b/lib/libalias/alias.h @@ -56,9 +56,6 @@ struct alias_link; struct in_addr addr, u_short port); - extern int - PacketAliasPptp(struct in_addr); - extern struct alias_link * PacketAliasRedirectProto(struct in_addr, struct in_addr, diff --git a/lib/libalias/alias_db.c b/lib/libalias/alias_db.c index 408fcdd..7fb3b28 100644 --- a/lib/libalias/alias_db.c +++ b/lib/libalias/alias_db.c @@ -2239,20 +2239,6 @@ PacketAliasAddServer(struct alias_link *link, struct in_addr addr, u_short port) return (-1); } -/* Translate PPTP packets to a machine on the inside - * XXX This function is made obsolete by PacketAliasRedirectProto(). - */ -int -PacketAliasPptp(struct in_addr src_addr) -{ - - if (src_addr.s_addr != INADDR_NONE) - (void)PacketAliasRedirectProto(src_addr, nullAddress, nullAddress, - IPPROTO_GRE); - - return 1; -} - /* Redirect packets of a given IP protocol from a specific public address to a private address */ struct alias_link * diff --git a/lib/libalias/libalias.3 b/lib/libalias/libalias.3 index 53c0d6b..4c06d98 100644 --- a/lib/libalias/libalias.3 +++ b/lib/libalias/libalias.3 @@ -680,26 +680,6 @@ If .Dv NULL is returned, then the function call did not complete successfully. .Ed -.Pp -.Ft int -.Fn PacketAliasPptp "struct in_addr addr" -.Bd -ragged -offset indent -This function causes any PPTP packets to be aliased using -.Fa addr -rather than the address set via -.Fn PacketAliasSetAddress . -This allows the uses of the PPTP on a single machine on the internal network. -.Pp -If the passed address is -.Dv INADDR_NONE , -then PPTP aliasing is disabled. -.Pp -.Bf -symbolic -This function is made obsolete by -.Fn PacketAliasRedirectProto , -and is provided only for backward compatibility. -.Ef -.Ed .Sh FRAGMENT HANDLING The functions in this section are used to deal with incoming fragments. .Pp |