From: Phil Oester Date: Tue, 25 Jul 2006 05:54:14 +0000 (-0700) Subject: [NETFILTER]: xt_pkttype: fix mismatches on locally generated packets X-Git-Tag: v2.6.18-rc3~30^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28658c8967da9083be83af0a37be3b190bae79da;p=pandora-kernel.git [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 Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- Reading git-diff-tree failed