[PATCH libnetfilter_conntrack] conntrack: remove duplicate code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



nfct_filter_dump_set_attr() will set the bit.

Signed-off-by: Ken-ichirou MATSUZAWA <chamas@xxxxxxxxxxxxx>
---
 src/conntrack/filter_dump.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/conntrack/filter_dump.c b/src/conntrack/filter_dump.c
index 9e2e169..4819759 100644
--- a/src/conntrack/filter_dump.c
+++ b/src/conntrack/filter_dump.c
@@ -17,7 +17,6 @@ set_filter_dump_attr_mark(struct nfct_filter_dump *filter_dump,
 
 	filter_dump->mark.val = this->val;
 	filter_dump->mark.mask = this->mask;
-	filter_dump->set |= (1 << NFCT_FILTER_DUMP_MARK);
 }
 
 static void
@@ -25,7 +24,6 @@ set_filter_dump_attr_family(struct nfct_filter_dump *filter_dump,
 			    const void *value)
 {
 	filter_dump->l3num = *((u_int8_t *)value);
-	filter_dump->set |= (1 << NFCT_FILTER_DUMP_L3NUM);
 }
 
 const set_filter_dump_attr set_filter_dump_attr_array[NFCT_FILTER_DUMP_MAX] = {
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux