Fix meta ematch usage of 0 values
em_meta doesn't send 0 values to the kernel. breaking matching on them and resulting in "Missing value TLV" messages on dump. Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
parent
1d93483985
commit
6140785236
|
|
@ -406,11 +406,8 @@ static int meta_parse_eopt(struct nlmsghdr *n, struct tcf_ematch_hdr *hdr,
|
||||||
|
|
||||||
addattr_l(n, MAX_MSG, TCA_EM_META_HDR, &meta_hdr, sizeof(meta_hdr));
|
addattr_l(n, MAX_MSG, TCA_EM_META_HDR, &meta_hdr, sizeof(meta_hdr));
|
||||||
|
|
||||||
if (lvalue)
|
dump_value(n, TCA_EM_META_LVALUE, lvalue, &meta_hdr.left);
|
||||||
dump_value(n, TCA_EM_META_LVALUE, lvalue, &meta_hdr.left);
|
dump_value(n, TCA_EM_META_RVALUE, rvalue, &meta_hdr.right);
|
||||||
|
|
||||||
if (rvalue)
|
|
||||||
dump_value(n, TCA_EM_META_RVALUE, rvalue, &meta_hdr.right);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue