git: DragonFly_RELEASE_4_0 if_bridge - Fix issue where source MAC is not recorded.

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Feb 2 21:09:38 PST 2015


commit 674a998e2eb6ee143f59f8696c76843c6a6551ed
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Feb 2 19:28:32 2015 -0800

    if_bridge - Fix issue where source MAC is not recorded.
    
    * The bridge has to record which interface the source MAC came from
      so transmissions back to that MAC can be unicast.  Otherwise transmissions
      will be broadcast to all bridge elements.
    
      The receive packet path case where a packet is sent to the bridge's own
      MAC address (terminating on the bridge host) from one of the member
      interfaces was not recording the MAC, resulting in duplicate packets
      (most obvious when testing with 'ping').
    
    * Fix the code path in question so the MAC is properly recorded.

Summary of changes:
 sys/net/bridge/if_bridge.c | 29 ++++++++++++++++++++++++++---
 1 file changed, 26 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/674a998e2eb6ee143f59f8696c76843c6a6551ed


-- 
DragonFly BSD source repository


More information about the Commits mailing list