Skip to contentSkip to conversation

nfnetlink_queue: shouldn't it be entry->skb?

PATCH Gao feng 2 participants 2 messages Sep 17, 2013

Subsystems (2)
lore
Share & tools
lore

Gao feng

author
#0 lore raw

skb is the netlink type sk_buff, shouldn't we pass entry->skb to nfqnl_ct_seq_adjust? Since I'm blocked by how to send proper netlink message to make nfqnl_ct_parse find out ct :( , I haven't confirmed this problem. :(

net/netfilter/nfnetlink_queue_core.c +1 -1
index 95a98c8..ae2e5c1 100644
@@ -1009,7 +1009,7 @@ nfqnl_recv_verdict(struct sock *ctnl, struct sk_buff *skb,
                        verdict = NF_DROP;
 
                if (ct)
-                       nfqnl_ct_seq_adjust(skb, ct, ctinfo, diff);
+                       nfqnl_ct_seq_adjust(entry->skb, ct, ctinfo, diff);
        }
#1 lore raw
Quoted 3 lines · Gao feng

skb is the netlink type sk_buff, shouldn't we pass entry->skb to nfqnl_ct_seq_adjust? Since I'm blocked by how to send proper netlink message to make nfqnl_ct_parse find out ct :( , I haven't confirmed this problem. :(

That's right, I have pushed a patch for this, thanks.