diff options
author | brian <brian@FreeBSD.org> | 1999-03-07 18:13:23 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-03-07 18:13:23 +0000 |
commit | 8b7bf74482a8f02d04eb893476a0bbe5281f9741 (patch) | |
tree | 42186b4d61eef545efa4530a2d0c37bbf7e3344c /sys/netinet/libalias | |
parent | b9bb81ebe91a019d06d369e5b9cab41fc482d0a0 (diff) | |
download | FreeBSD-src-8b7bf74482a8f02d04eb893476a0bbe5281f9741.zip FreeBSD-src-8b7bf74482a8f02d04eb893476a0bbe5281f9741.tar.gz |
Document PacketAliasPptp() and allow it to be disabled
by passing INADDR_NONE.
Diffstat (limited to 'sys/netinet/libalias')
-rw-r--r-- | sys/netinet/libalias/alias_db.c | 3 | ||||
-rw-r--r-- | sys/netinet/libalias/libalias.3 | 30 |
2 files changed, 31 insertions, 2 deletions
diff --git a/sys/netinet/libalias/alias_db.c b/sys/netinet/libalias/alias_db.c index c1d6985..bd730ba 100644 --- a/sys/netinet/libalias/alias_db.c +++ b/sys/netinet/libalias/alias_db.c @@ -1953,8 +1953,7 @@ PacketAliasPptp(struct in_addr src_addr) { pptpAliasAddr = src_addr; /* Address of the inside PPTP machine */ - pptpAliasFlag = 1; - + pptpAliasFlag = src_addr.s_addr != INADDR_NONE; return 1; } diff --git a/sys/netinet/libalias/libalias.3 b/sys/netinet/libalias/libalias.3 index 16624bc0..38897d4 100644 --- a/sys/netinet/libalias/libalias.3 +++ b/sys/netinet/libalias/libalias.3 @@ -33,6 +33,7 @@ of the text. 4.2 PacketAliasRedirectAddr() 4.3 PacketAliasRedirectDelete() 4.4 PacketAliasProxyRule() + 4.5 PacketAliasPptp() 5. Fragment Handling 5.1 PacketAliasSaveFragment() 5.2 PacketAliasGetFragment() @@ -507,6 +508,7 @@ re-mapped in the same manner the header fragment was. Fragments which arrive before the header are saved and then retrieved once the header fragment has been resolved. + .Ss 4.4 PacketAliasProxyRule() .Ft int @@ -594,6 +596,34 @@ This function is usually used to redirect outgoing connections for internal machines that are not permitted certain types of internet access, or to restrict access to certain external machines. +.Ss 4.5 PacketAliasPptp() + +.Ft extern int +.Fn PacketAliasPptp "struct in_addr addr" + +This function causes any +.Em G Ns No eneral +.Em R Ns No outing +.Em E Ns No encapsulated +.Pq Dv IPPROTO_GRE +packets to be aliased using +.Ar addr +rather than the address set via +.Fn PacketAliasSetAddress . +This allows the uses of the +.Em P Ns No oint +to +.Em P Ns No oint +.Em T Ns No unneling +.Em P Ns No rotocol +on a machine on the internal network. +.Pp +If the passed address is +.Dv INADDR_NONE +.Pq 255.255.255.255 , +.Dv PPTP +aliasing is disabled. + .Ss 5.1 PacketAliasSaveFragment() .Ft int |