fix connection marking
this commit fixes 3 issues:
1. the mark was being pulled from the skb in the post_routing_hook
regardless of its value, which could be zero.
2. the event parameter of the conntrack event callback was being
incorrectly tested for the IPCT_MARK flag. the following function was
used as an example for how to properly test the flag:
netfilter/nf_conntrack_netlink.c:ctnetlink_conntrack_event.
3. the mark wasn't being pulled from the nfct object during a
conntrack event, which resulted in overwriting a connection's
mark with garbage. now that I think about it, this probably
explains the presence of the mark manipulation code in the
post_routing_hook (issue resolution #1).
Change-Id: I2404bfc4142f79d68bb93400b85cdb2c9f7bc5a8
Signed-off-by: Nicolas Costa <ncosta@codeaurora.org>
1 file changed