Overhaul address classification for link-local and non-unicast addresses.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 11 Mar 2012 23:58:09 +0000 (23:58 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 12 Mar 2012 00:13:28 +0000 (00:13 +0000)
commit44f9582788168b13a9163138f5e55bba889712e7
tree84b832a6dcf01b68f2a0c0eeea87772a3ca6bca8
parent3b250fe6986bd168aa7e4f46336b3a43b2735b37
Overhaul address classification for link-local and non-unicast addresses.

The previous attempts just weren't working.  Intead, assign them their
own classes, and work things using the forwarding masks.  There's a
minor wrinkle, that we must handle forwarded packets differently from
inbound ones if they involve link-local addresses, but this is handled
with a fixup in the mangle INPUT chain.

The other significant change here is that the mangle table is now
responsible for selecting packets with bogus destination addresses for
rejection -- though it can't do the rejection itself because of a
kernel restriction.
classify.m4
icmp.m4
local.m4