]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Filters: Do not clamp EC set values to 16 bit for EC_GENERICs
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Mon, 19 Jun 2017 10:46:40 +0000 (12:46 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Mon, 19 Jun 2017 10:46:40 +0000 (12:46 +0200)
Thanks to Lennert Buytenhek <buytenh@wantstofly.org> for the patch.

filter/config.Y

index 5ea83f81b21ca55b4fd7b1b2fd405c4cb1c5a335..c9f9c7534661d6b8f8aa5e60d42280e9f314f72b 100644 (file)
@@ -112,7 +112,7 @@ f_new_ec_item(u32 kind, u32 ipv4_used, u32 key, u32 vf, u32 vt)
 {
   u64 fm, to;
 
-  if (ipv4_used || (key >= 0x10000)) {
+  if ((kind != EC_GENERIC) && (ipv4_used || (key >= 0x10000))) {
     check_u16(vf);
     if (vt == EC_ALL)
       vt = 0xFFFF;