lan9118: fix multicast filtering
authorAurelien Jarno <aurelien@aurel32.net>
Sun, 10 Jun 2012 21:18:44 +0000 (23:18 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 7 Sep 2012 15:35:34 +0000 (17:35 +0200)
commit449bc90e1f2e2fbafb64eb0c76d16c9352b0d2df
treebe366550b4e929343f1c68c670bf41fcf0be115c
parent7e9c7ffe9fd9dfc3d0168dd584936db8144b230b
lan9118: fix multicast filtering

The lan9118 emulation tries to compute the multicast index by calling
directly the crc32() function from zlib, but fails to get the correct
result.

Use the common compute_mcast_idx() function instead, which gives the
correct result. This fixes IPv6 support.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/lan9118.c