From d15583713a69344828a05aa5b6c22bc26f534fb5 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Tue, 20 Jun 2000 13:07:52 +0000 Subject: - Removed PacketAliasPptp() API function. - SHLIB_MAJOR++. --- lib/libalias/Makefile | 2 +- lib/libalias/alias.h | 3 --- lib/libalias/alias_db.c | 14 -------------- lib/libalias/libalias.3 | 20 -------------------- 4 files changed, 1 insertion(+), 38 deletions(-) (limited to 'lib/libalias') 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 -- cgit v1.2.3