fixed late-night typos (slash1 should be ::/1, not ::/0..), pulled out lots of the ICMP wildcard emulation into functions