]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] 2.6.13 breaks libpcap (and tcpdump)
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 6 Sep 2005 01:47:10 +0000 (18:47 -0700)
committerChris Wright <chrisw@osdl.org>
Sat, 10 Sep 2005 02:42:51 +0000 (19:42 -0700)
commita49567a4dbfd414f19e5bf828a4b2c540f164ea8
treebc17bea3ca0833123374bc4031b74894762f8961
parent2811d271ee67f4de6c6d7e2c731698f6f9f7746a
[PATCH] 2.6.13 breaks libpcap (and tcpdump)

[NET]: 2.6.13 breaks libpcap (and tcpdump)

Patrick McHardy says:

  Never mind, I got it, we never fall through to the second switch
  statement anymore. I think we could simply break when load_pointer
  returns NULL. The switch statement will fall through to the default
  case and return 0 for all cases but 0 > k >= SKF_AD_OFF.

Here's a patch to do just that.

I left BPF_MSH alone because it's really a hack to calculate the IP
header length, which makes no sense when applied to the special data.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/core/filter.c