From: Ondrej Zajicek (work) Date: Wed, 26 Apr 2017 15:13:45 +0000 (+0200) Subject: Flowspec: Max tcp mask length is 12 bits X-Git-Tag: v2.0.0-pre1~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5ca4bd5d9018bb7572f10825e1ca431444601be7;p=thirdparty%2Fbird.git Flowspec: Max tcp mask length is 12 bits --- diff --git a/doc/bird.conf.example2 b/doc/bird.conf.example2 index a4081f14b..51fcfb646 100644 --- a/doc/bird.conf.example2 +++ b/doc/bird.conf.example2 @@ -105,27 +105,27 @@ protocol static flowstat4 { proto = 0x12; sport > 0x5678 && < 0x9abc || 0xdef0 || 0x1234,0x5678,0x9abc..0xdef0; dport = 50; - tcp flags 0xabcd/0xbbdd; + tcp flags 0x000/0xf00; }; route flow4 { dst 12.0.0.0/32; - tcp flags ! 0 / 0x9999; + tcp flags ! 0/0x999; }; route flow4 { dst 220.0.254.0/24; - tcp flags 0x99 / 0x9999; + tcp flags 0x99/0x999; }; route flow4 { dst 220.0.254.192/28; - tcp flags !0xffff / 0xFFFF; + tcp flags ! 0xfff/0xfff; }; route flow4 { dst 15.0.0.0/8; - tcp flags !0x9999/0x9999; + tcp flags ! 0x999/0x999; }; } diff --git a/doc/bird.sgml b/doc/bird.sgml index 0e072dd2f..4bbcb871c 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -768,7 +768,8 @@ logical operators