summaryrefslogtreecommitdiffstats
path: root/src/netlink.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2015-11-15 16:10:45 +0000
committerPatrick McHardy <kaber@trash.net>2015-11-15 16:10:45 +0000
commitc552570dc67a56614c1053b9ea2fb27cd6ce106b (patch)
tree4fca6d4ed25a5abead43ec2890085d8e00b17ac1 /src/netlink.c
parent2f16228172ff3629c09b7d0633e30c125aebc37e (diff)
rule: move comment out of handle
The comment does not belong to the handle, it belongs to the rule. Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src/netlink.c')
-rw-r--r--src/netlink.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/netlink.c b/src/netlink.c
index ad86084e..974afb17 100644
--- a/src/netlink.c
+++ b/src/netlink.c
@@ -167,9 +167,6 @@ struct nftnl_rule *alloc_nftnl_rule(const struct handle *h)
nftnl_rule_set_u64(nlr, NFTNL_RULE_HANDLE, h->handle);
if (h->position)
nftnl_rule_set_u64(nlr, NFTNL_RULE_POSITION, h->position);
- if (h->comment)
- nftnl_rule_set_data(nlr, NFTNL_RULE_USERDATA,
- h->comment, strlen(h->comment) + 1);
return nlr;
}