diff options
author | ru <ru@FreeBSD.org> | 2000-04-18 10:18:21 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2000-04-18 10:18:21 +0000 |
commit | d297953a9f17b56644c7143453a40eb397aab2be (patch) | |
tree | 07cc847d2eddbbe6faed904565457b0d1ddce0c9 /sys/netinet/libalias/alias.h | |
parent | 6d573144b323d585e9999b045a7cdfb0f3f8d491 (diff) | |
download | FreeBSD-src-d297953a9f17b56644c7143453a40eb397aab2be.zip FreeBSD-src-d297953a9f17b56644c7143453a40eb397aab2be.tar.gz |
Add support for multiple PPTP sessions:
- new API function: PacketAliasRedirectPptp()
- new mode bit: PKT_ALIAS_DENY_PPTP
Please see manual page for details.
Diffstat (limited to 'sys/netinet/libalias/alias.h')
-rw-r--r-- | sys/netinet/libalias/alias.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/sys/netinet/libalias/alias.h b/sys/netinet/libalias/alias.h index aa43b2e..2285d97 100644 --- a/sys/netinet/libalias/alias.h +++ b/sys/netinet/libalias/alias.h @@ -54,6 +54,8 @@ struct alias_link; extern int PacketAliasPptp(struct in_addr); + extern struct alias_link * + PacketAliasRedirectPptp(struct in_addr, struct in_addr, struct in_addr); extern struct alias_link * PacketAliasRedirectAddr(struct in_addr, @@ -113,13 +115,12 @@ struct alias_link; port it chooses. This will avoid interference with the host machine. Fully specified links do not require this. This bit is set after a call to PacketAliasInit(), so it is a default - mode of operation.*/ + mode of operation. */ #define PKT_ALIAS_USE_SOCKETS 0x08 /* If PKT_ALIAS_UNREGISTERED_ONLY is set, then only packets with - unregistered source addresses will be aliased (along with those - of the ppp host maching itself. Private addresses are those - in the following ranges: + unregistered source addresses will be aliased. Private + addresses are those in the following ranges: 10.0.0.0 -> 10.255.255.255 172.16.0.0 -> 172.31.255.255 192.168.0.0 -> 192.168.255.255 */ @@ -128,7 +129,7 @@ struct alias_link; /* If PKT_ALIAS_RESET_ON_ADDR_CHANGE is set, then the table of dynamic aliasing links will be reset whenever PacketAliasSetAddress() changes the default aliasing address. If the default aliasing - address is left unchanged by this functions call, then the + address is left unchanged by this function call, then the table of dynamic aliasing links will be left intact. This bit is set after a call to PacketAliasInit(). */ #define PKT_ALIAS_RESET_ON_ADDR_CHANGE 0x20 @@ -151,6 +152,10 @@ struct alias_link; and PacketAliasOut() are reversed */ #define PKT_ALIAS_REVERSE 0x80 +/* If PKT_ALIAS_DENY_PPTP is set, then PPTP sessions will be + prevented by the aliasing engine. */ +#define PKT_ALIAS_DENY_PPTP 0x200 + /* Return Codes */ #define PKT_ALIAS_ERROR -1 #define PKT_ALIAS_OK 1 |