kernel - Fix pf-based NAT
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 28 Jun 2014 01:02:26 +0000 (18:02 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 28 Jun 2014 01:02:26 +0000 (18:02 -0700)
commit32e6d213123a90463d92ffe47f4afa150d4af50a
tree71ea8a0e2f572d78c04963a8cd512b09fee2782a
parentaecff6d16ba3e705aa6b0aaae2be1f9ef0e4e37c
kernel - Fix pf-based NAT

* Concurrency work on PF broke NAT.  Fix NAT for IPV4 TCP.

* This is not a complete fix, the NAT must be able to select from a range
  of local ports to replace sport to properly map the NAT onto the same
  cpu that the originating packet was forwarded to.

* Not fixed for UDP yet.
sys/net/pf/pf.c
sys/net/pf/pf_ioctl.c