From: Patrick McHardy Date: Sat, 4 Feb 2006 10:14:24 +0000 (-0800) Subject: [NETFILTER]: nfnetlink_queue: fix packet marking over netlink X-Git-Tag: v2.6.16-rc3~146^2~8 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a706124d0a4d9daaf6b705d01de3aff18deecea8;p=linux-2.6-omap-h63xx.git [NETFILTER]: nfnetlink_queue: fix packet marking over netlink The packet marked is the netlink skb, not the queued skb. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c index 18ed9c5d209..cac38b2e147 100644 --- a/net/netfilter/nfnetlink_queue.c +++ b/net/netfilter/nfnetlink_queue.c @@ -825,7 +825,8 @@ nfqnl_recv_verdict(struct sock *ctnl, struct sk_buff *skb, } if (nfqa[NFQA_MARK-1]) - skb->nfmark = ntohl(*(u_int32_t *)NFA_DATA(nfqa[NFQA_MARK-1])); + entry->skb->nfmark = ntohl(*(u_int32_t *) + NFA_DATA(nfqa[NFQA_MARK-1])); issue_verdict(entry, verdict); instance_put(queue);