Commit b8df0350 authored by Patrick McHardy's avatar Patrick McHardy

[PKT_SCHED]: cls_route: fix tcf_exts fallout

handle is computed wrong, this makes creating a filter not using
"from" fail.
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent 407f96b4
...@@ -384,9 +384,9 @@ static int route4_set_parms(struct tcf_proto *tp, unsigned long base, ...@@ -384,9 +384,9 @@ static int route4_set_parms(struct tcf_proto *tp, unsigned long base,
id = *(u32*)RTA_DATA(tb[TCA_ROUTE4_IIF-1]); id = *(u32*)RTA_DATA(tb[TCA_ROUTE4_IIF-1]);
if (id > 0x7FFF) if (id > 0x7FFF)
goto errout; goto errout;
nhandle = (id | 0x8000) << 16; nhandle |= (id | 0x8000) << 16;
} else } else
nhandle = 0xFFFF << 16; nhandle |= 0xFFFF << 16;
if (handle && new) { if (handle && new) {
nhandle |= handle & 0x7F00; nhandle |= handle & 0x7F00;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment