]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make partially specified permanent links without `dst_addr'
authorRuslan Ermilov <ru@FreeBSD.org>
Wed, 12 Apr 2000 18:44:50 +0000 (18:44 +0000)
committerRuslan Ermilov <ru@FreeBSD.org>
Wed, 12 Apr 2000 18:44:50 +0000 (18:44 +0000)
commitf167e54283d2f578c1267f3a88b5aae52e13b127
tree7d8e84487914d3a23abaa98bf1500fac637e35a0
parent70c1e1b6d919a1e5d3c4658a53071f728d159dcf
Make partially specified permanent links without `dst_addr'
but with `dst_port' work for outgoing packets.

This case was not handled properly when I first fixed this
in revision 1.17.

This change is also required for the upcoming improved PPTP
support patches -- that is how I found the problem.

Before this change:

# natd -v -a aliasIP \
  -redirect_port tcp localIP:localPORT publicIP:publicPORT 0:remotePORT

Out [TCP]  [TCP] localIP:localPORT -> remoteIP:remotePORT aliased to
           [TCP] aliasIP:localPORT -> remoteIP:remotePORT

After this change:

# natd -v -a aliasIP \
  -redirect_port tcp localIP:localPORT publicIP:publicPORT 0:remotePORT

Out [TCP]  [TCP] localIP:localPORT -> remoteIP:remotePORT aliased to
           [TCP] publicIP:publicPORT -> remoteIP:remotePORT
lib/libalias/alias_db.c
sys/netinet/libalias/alias_db.c