]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[NETFILTER]: nfnetlink_log: fix sending of multipart messages
authorEric Leblond <eric@inl.fr>
Tue, 18 Sep 2007 20:07:15 +0000 (13:07 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 20 Sep 2007 19:13:52 +0000 (12:13 -0700)
commit29c5d4afba51c71cfeadd3f74f3c42e064483fb0
tree932854319ca02c2c0190ea35b3e38bb929014d45
parent6d0b842d3bf0cc027dcff57a89fb8a6b1fd610e1
[NETFILTER]: nfnetlink_log: fix sending of multipart messages

The following patch fixes the handling of netlink packets containing
multiple messages.

As exposed during netfilter workshop, nfnetlink_log was overwritten the
message type of the last message (setting it to MSG_DONE) in a multipart
packet. The consequence was libnfnetlink to ignore the last message in the
packet.

The following patch adds a supplementary message (with type MSG_DONE) af
the end of the netlink skb.

Signed-off-by: Eric Leblond <eric@inl.fr>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nfnetlink_log.c