]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[NETFILTER]: xt_pkttype: fix mismatches on locally generated packets
authorPhil Oester <kernel@linuxace.com>
Tue, 25 Jul 2006 05:54:14 +0000 (22:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jul 2006 05:54:14 +0000 (22:54 -0700)
commit28658c8967da9083be83af0a37be3b190bae79da
tree179a24d1b0462284a090a6f38872ea3b4e727d36
parent8cf8fb5687bb37737ea419a0b2143aab49295779
[NETFILTER]: xt_pkttype: fix mismatches on locally generated packets

Locally generated broadcast and multicast packets have pkttype set to
PACKET_LOOPBACK instead of PACKET_BROADCAST or PACKET_MULTICAST. This
causes the pkttype match to fail to match packets of either type.

The below patch remedies this by using the daddr as a hint as to
broadcast|multicast. While not pretty, this seems like the only way
to solve the problem short of just noting this as a limitation of the
match.

This resolves netfilter bugzilla #484

Signed-off-by: Phil Oester <kernel@linuxace.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/xt_pkttype.c