IPv6 Template

Ondrej Zajicek santiago at crfreenet.org
Thu Mar 18 21:43:04 CET 2010


On Wed, Mar 17, 2010 at 04:34:22PM +0100, Wolfgang Hennerbichler wrote:
> Like in IPv4 I have this: 
> prefix set martians;
> {
>   martians = [ 169.254.0.0/16+, 172.16.0.0/12+, 192.168.0.0/16+, 10.0.0.0/8+, 224.0.0.0/4+, 240.0.0.0/4+ ];
>   if net.ip = 0.0.0.0 then return false;
>   # Avoid too short and too long prefixes
>   if (net.len < 8) || (net.len > 30) then return false;

Just a note, you can replace these two tests by adding 0.0.0.0/32-, 0.0.0.0/0{0,7} and
0.0.0.0/0{31,32} to the martians prefix set.

-- 
Elen sila lumenn' omentielvo

Ondrej 'SanTiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20100318/c7d82d61/attachment-0001.asc>


More information about the Bird-users mailing list