Skip to contentSkip to conversation

CONNMARK patch

DISCUSSION Henrik Nordstrom 1 participant 1 message Mar 5, 2004 1 message not in the archive netfilter

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
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_get to 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