[ipv6] Check for a valid destination address in ipv6_rx
authorMatthew Iselin <matthew@theiselins.net>
Mon, 25 Jul 2011 00:40:02 +0000 (10:40 +1000)
committerMarty Connor <mdc@etherboot.org>
Tue, 26 Jul 2011 01:39:05 +0000 (21:39 -0400)
commit27e54098b8ec0c1ac6f324943e32db4c7274ee71
tree24ee4d7b5b5c2c79028d6de8561d5ac999d4e812
parent93833cb13069bbee8ef89ac0508d9fe278541eea
[ipv6] Check for a valid destination address in ipv6_rx

Previously, gPXE would happily process any IPv6 packet transmitted to
it, even if it was not targeted to the gPXE station. This caused
issues with ICMPv6 echo requests in particular, but also wasted
processing time on other traffic on the network.

Now, the destination address is verified before too much processing is done.

Signed-off-by: Matthew Iselin <matthew@theiselins.net>
Signed-off-by: Marty Connor <mdc@etherboot.org>
src/net/ipv6.c