From: Herbert Xu Date: Tue, 6 Sep 2005 01:44:37 +0000 (-0700) Subject: [NET]: 2.6.13 breaks libpcap (and tcpdump) X-Git-Tag: v2.6.14-rc1~757 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1198ad002ad36291817c7bf0308ab9c50ee2571d;p=pandora-kernel.git [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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed