From: Ondrej Zajicek (work) Date: Mon, 19 Jun 2017 10:46:40 +0000 (+0200) Subject: Filters: Do not clamp EC set values to 16 bit for EC_GENERICs X-Git-Tag: v2.0.0~57^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e46128fb50e108e8cfdf6bb6e9ab040e00f5dfdc;p=thirdparty%2Fbird.git Filters: Do not clamp EC set values to 16 bit for EC_GENERICs Thanks to Lennert Buytenhek for the patch. --- diff --git a/filter/config.Y b/filter/config.Y index 5ea83f81b..c9f9c7534 100644 --- a/filter/config.Y +++ b/filter/config.Y @@ -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;