diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2000-06-20 13:07:52 +0000 | 
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2000-06-20 13:07:52 +0000 | 
| commit | d15583713a69344828a05aa5b6c22bc26f534fb5 (patch) | |
| tree | 2e0c366b655a2d6adbc5245863a64070a5389ee9 /lib | |
| parent | dc1a022582d0207ea2e1353759163371ae3ad84c (diff) | |
Notes
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 32080142ea42..2ee0675143f7 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 ace911d1e52e..61f759f93fd4 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 408fcdd146f3..7fb3b280f9a9 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 53c0d6b9e3fe..4c06d98463b8 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  | 
