git: network - Fix bug in redispatch after PF translation

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Sep 23 10:15:13 PDT 2010


commit 76c4458a81ce92e4b25da4c5faba0e0a8f511906
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Sep 23 10:11:23 2010 -0700

    network - Fix bug in redispatch after PF translation
    
    * ip_input() checks M_HASH after PF/firewall processing and recalculates
      the protocol port if necessary.
    
      ip_input() was improperly restoring ip_len when doing the re-check,
      causing TCP packets destined for the local host to be dropped.  This
      caused NAT translations with local terminations to fail.

Summary of changes:
 sys/netinet/ip_input.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/76c4458a81ce92e4b25da4c5faba0e0a8f511906


-- 
DragonFly BSD source repository





More information about the Commits mailing list