git: kernel - merge fixes from FreeBSD

Matthew Dillon dillon at
Fri Jun 27 20:11:45 PDT 2014

commit 9106f055277c19a99b4101347b85c370849f011e
Author: Matthew Dillon <dillon at>
Date:   Fri Jun 27 20:06:02 2014 -0700

    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.

Summary of changes:
 sys/net/pf/pf.c | 34 ++++++++++++++++++++--------------
 1 file changed, 20 insertions(+), 14 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list