kernel - merge fixes from FreeBSD
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 28 Jun 2014 03:06:02 +0000 (20:06 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 28 Jun 2014 03:06:02 +0000 (20:06 -0700)
commit9106f055277c19a99b4101347b85c370849f011e
treeb40ecea5845af89f027e6540481cf68032a3ccea
parentf72d5ff0d8dd6b9afab31a2e1d51d5539bf85b03
kernel - merge fixes from FreeBSD

* Merge 8159278dbd8e019, fixes to pf_get_sport().  Primarily fixes the state
  key used to check whether a port is in-use or not.  NAT could previously
  choose a port that was already in-use.

* bzero() the state key to ensure that uninitialized fields are zero,
  otherwise the RB_FIND is likely to fail.

* Cleanup the case where there is no port range or the protocol is not
  supported.  In this situation, sport must be replicated on the host.
sys/net/pf/pf.c