]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: simpler hash with salt
authorStephen Hemminger <shemminger@linux-foundation.org>
Wed, 21 Mar 2007 20:42:33 +0000 (13:42 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:28:46 +0000 (22:28 -0700)
commite9d4fe33c67ca04cf59713f5a071c8709e7df944
tree58831f297f8f8c6260d71b512176b7bd26dfe7db
parent6d751803eacedb27793ece6ec8580649ca1d164c
bridge: simpler hash with salt

Instead of hashing the whole Ethernet address, it should be faster
to just use the last 4 bytes. Add a random salt value to the hash
to make it more difficult to construct worst case DoS hash chains.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
net/bridge/br_fdb.c