summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2017-06-19 12:46:40 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2017-06-19 12:46:40 +0200
commite46128fb50e108e8cfdf6bb6e9ab040e00f5dfdc (patch)
treef7f6ac2f1a5c26102f139b5db8c6ee1779438251
parent33f7fbc42d0490b27e33275d0fc74d3ef55683e4 (diff)
Filters: Do not clamp EC set values to 16 bit for EC_GENERICs
Thanks to Lennert Buytenhek <buytenh@wantstofly.org> for the patch.
-rw-r--r--filter/config.Y2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/config.Y b/filter/config.Y
index 5ea83f81..c9f9c753 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;