git: kernel - Unconditionally clear BRIDGE_MBUF_TAGGED in two cases

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Feb 22 08:58:03 PST 2011


commit b7441d0c45ee75c5f8a75e0ffd817e882f586151
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Feb 22 08:54:48 2011 -0800

    kernel - Unconditionally clear BRIDGE_MBUF_TAGGED in two cases
    
    * First unconditionally clear BRIDGE_MBUF_TAGGED if the target MAC
      in the link header points to us, regardless of what we do with the
      packet.
    
    * Second, unconditionally clear BRIDGE_MBUF_TAGGED if IPFW2 redirects
      the packet destination, bad things will happen if the original source
      MAC is kept in the link header.  i.e. the packet becomes routed at
      that point.

Summary of changes:
 sys/net/bridge/if_bridge.c |   23 +++++++++++++++++++++--
 sys/net/ipfw/ip_fw2.c      |    6 ++++++
 2 files changed, 27 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b7441d0c45ee75c5f8a75e0ffd817e882f586151


-- 
DragonFly BSD source repository





More information about the Commits mailing list