CONNMARK patch
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 3 lines · Pablo Neira
I was having a look at your CONNMARK target available in pom-ng. I saw that you use the function
ip_conntrack_getto get the conntrack structure associated to a skb but you don't need the ctinfo stuff.
Correct, but it needs conntrack.
The official API for getting the conntrack entry is ip_conntrack_get, not to dig around in the skb fields manually.
It could make sense to add another API call for this situation, but I think the difference is rather minimal. Would be more effective to convert ip_conntrack_get to a inline function and find some other means of having correct module dependencies.
Regards
Henrik