[ipv6] check for a valid destination address in ipv6_rx master
authorMatthew Iselin <matthew@theiselins.net>
Mon, 25 Jul 2011 00:40:02 +0000 (10:40 +1000)
committerMatthew Iselin <matthew@theiselins.net>
Mon, 25 Jul 2011 10:57:26 +0000 (20:57 +1000)
commit4da5426d88dc7db6fe2d43a6b3bc19880f15e060
tree60084307682bac6880bf651ee46a4462bc014c44
parent0f10d77aff001a033b7437113baa53501ca5fe5e
[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.
src/net/icmpv6.c
src/net/ipv6.c