kernel - Unconditionally clear BRIDGE_MBUF_TAGGED in two cases
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 22 Feb 2011 16:54:48 +0000 (08:54 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 22 Feb 2011 16:54:48 +0000 (08:54 -0800)
commitb7441d0c45ee75c5f8a75e0ffd817e882f586151
tree2c5b16e5764966941adeef1d44d50a4fd1fe2d54
parentc5b168634c51d11a63abbe4e86ca7482eaea67e8
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.
sys/net/bridge/if_bridge.c
sys/net/ipfw/ip_fw2.c