patch-2.3.16 linux/net/core/filter.c
Next file: linux/net/core/netfilter.c
Previous file: linux/net/core/dst.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Tue Aug 31 11:23:03 1999
- Orig file:
v2.3.15/linux/net/core/filter.c
- Orig date:
Thu Aug 26 13:05:45 1999
diff -u --recursive --new-file v2.3.15/linux/net/core/filter.c linux/net/core/filter.c
@@ -49,7 +49,7 @@
else if (k>=SKF_LL_OFF)
ptr = skb->mac.raw + k - SKF_LL_OFF;
- if (ptr<skb->head && ptr < skb->tail)
+ if (ptr >= skb->head && ptr < skb->tail)
return ptr;
return NULL;
}
@@ -248,6 +248,7 @@
continue;
}
}
+ return 0;
case BPF_LD|BPF_W|BPF_LEN:
A = len;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)