classify.m4: Forbid the v4-mapped and v4-compatible ranges.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 27 Apr 2014 17:12:07 +0000 (18:12 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 27 Apr 2014 17:12:07 +0000 (18:12 +0100)
These shouldn't be appearing as source addresses.

classify.m4

index 1d87fdb..7c60407 100644 (file)
@@ -320,8 +320,8 @@ for entry in $ifmap; do
 done
 
 ## Fill in the black holes in the network.  Some of these might actually be
 done
 
 ## Fill in the black holes in the network.  Some of these might actually be
-## known networks, so don't fill those in again.  See RFC5735 or its
-## successors.
+## known networks, so don't fill those in again.  See RFC5735 and RFC4291,
+## and their successors.
 for addr in \
        10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
        127.0.0.0/8 \
 for addr in \
        10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
        127.0.0.0/8 \
@@ -332,6 +332,7 @@ do
 done
 for addr in \
        fc00::/7 \
 done
 for addr in \
        fc00::/7 \
+       ::0:0/96 ::ffff:0:0/96 \
        2001:db8::/32
 do
   case $alladdrs in *!$addr!*) continue ;; esac
        2001:db8::/32
 do
   case $alladdrs in *!$addr!*) continue ;; esac