]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix two bugs with the bridge
authorthompsa <thompsa@FreeBSD.org>
Tue, 31 Jan 2006 21:21:28 +0000 (21:21 +0000)
committerthompsa <thompsa@FreeBSD.org>
Tue, 31 Jan 2006 21:21:28 +0000 (21:21 +0000)
commitd32360b9225bbcf4985813a366ad0048f7f3f396
tree9fbfe44cefd6a70252bb0b69215b6780edc23391
parent7fe6d13c28a5d890bba5f41ec1bc98f1ce65d41f
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
sys/net/if_bridge.c