cvs commit: src/sys/net if_bridge.c

Andrew Thompson thompsa at FreeBSD.org
Tue Jan 31 13:21:29 PST 2006


thompsa     2006-01-31 21:21:28 UTC

  FreeBSD src repository

  Modified files:
    sys/net              if_bridge.c 
  Log:
  Fix two bugs with the bridge
  
   - code expects memcmp() to return a signed value, our memcmp() returns 0 if
     args are equal and > 0 if not.
  
   - It's possible to hijack interface for static entry. If bridge recieves
     packet from interface marked as learning it will replace the bridge_rtnode
     entry for the source address even if such entry marked as static.
  
  Submitted by:   Gleb Kurtsov <k-gleb yandex.ru>
  MFC after:      3 days
  
  Revision  Changes    Path
  1.52      +17 -3     src/sys/net/if_bridge.c


More information about the cvs-src mailing list