ru c93d494562 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
2000-04-12 18:44:50 +00:00
..
1999-08-28 00:22:10 +00:00
2000-04-12 18:38:30 +00:00
2000-01-18 18:23:28 +00:00
2000-03-29 15:10:28 +00:00
1999-10-03 10:41:40 +00:00
1999-08-28 00:22:10 +00:00
1999-08-28 00:22:10 +00:00
2000-01-01 14:21:31 +00:00
2000-03-29 08:24:37 +00:00
2000-01-30 00:44:23 +00:00
1999-08-28 00:22:10 +00:00
1999-09-29 15:18:46 +00:00
1999-08-28 00:22:10 +00:00
2000-03-24 00:58:49 +00:00
2000-02-12 20:27:50 +00:00
1999-08-28 00:22:10 +00:00