search for: ip_packet_match

Displaying 2 results from an estimated 2 matches for "ip_packet_match".

2003 Dec 26
2
[Bug 84] Unaligned access in ip_tables.c:ip_packet_match
...bject, that the same bug triggers an ugly crash on m68k-nommu. This patch fixes all the symptoms I am seeing. --- linux-2.4.orig/net/ipv4/netfilter/ip_tables.c 2003-12-26 12:13:58.000000000 +0200 +++ linux-2.4/net/ipv4/netfilter/ip_tables.c 2003-12-26 12:11:01.000000000 +0200 @@ -151,11 +151,11 @@ ip_packet_match(const struct iphdr *ip, } /* Look for ifname matches; this should unroll nicely. */ - for (i = 0, ret = 0; i < IFNAMSIZ/sizeof(unsigned long); i++) { - ret |= (((const unsigned long *)indev)[i] - ^ ((const unsigned long *)ipinfo->iniface)[i]) - & ((const unsigned long *)ipi...
2006 Jul 11
0
RE: [PATCH] Re: network-bridge scriptbreaks networkconnectivity
> > Just to be doubly clear, do you mean that the name is compared at the > > time the rule is submitted, or at the time it is evaluated? > > It''s the latter. See ip_packet_match in net/ipv4/netfilter/ip_tables.c > for example. Wild -- that''s not what I''d have guessed. I suppose it allows you to insert rules for interfaces that don''t exist yet, which is a good thing. Anyhow, I''m inclined to take the patch to disable filtering in the...