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
tree: f86be116b4b195fc26c8436edd61fcf8f49418c8
  1. fast-classifier/
  2. patches/
  3. shortcut-fe/
  4. .gitignore
  5. README