From c552570dc67a56614c1053b9ea2fb27cd6ce106b Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Sun, 15 Nov 2015 16:10:45 +0000 Subject: rule: move comment out of handle The comment does not belong to the handle, it belongs to the rule. Signed-off-by: Patrick McHardy --- src/netlink.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/netlink.c') 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; } -- cgit v1.2.3