mac-learning: Use random secret in hash function.
authorEthan Jackson <ethan@nicira.com>
Fri, 22 Jul 2011 18:50:26 +0000 (11:50 -0700)
committerEthan Jackson <ethan@nicira.com>
Sat, 23 Jul 2011 02:04:13 +0000 (19:04 -0700)
commit8e8d5966947dfc2153b60a6b7d2326db49838024
tree2d46c5ef7c9124ec3c1f0d2bbfe4d161915d45d5
parenta368bb53d9769ae42042e122775672ac9546e3f9
mac-learning: Use random secret in hash function.

The mac-learning 'secret' parameter is intended to prevent an
attacker from turning the mac learning table into a linked list by
using a known hash function to choose perfectly bad mac entries.
However, this parameter was not taken into account in most cases.

Found by inspection.
lib/mac-learning.c