0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Filters: Do not clamp EC set values to 16 bit for EC_GENERICs

Thanks to Lennert Buytenhek <buytenh@wantstofly.org> for the patch.
This commit is contained in:
Ondrej Zajicek (work) 2017-06-19 12:46:40 +02:00
parent 33f7fbc42d
commit e46128fb50

View File

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