tree d5fcf0146a5dd59baa09d4a03f6c50ba6f1b7ced
parent 55820ee2f8c767a2833b21bd365e5753f50bd8ce
author Patrick McHardy <[EMAIL PROTECTED]> Wed, 06 Jul 2005 04:08:57 -0700
committer David S. Miller <[EMAIL PROTECTED]> Wed, 06 Jul 2005 04:08:57 -0700
[NET]: Remove redundant code in net/core/filter.c
skb_header_pointer handles linear and non-linear data, no need to handle
linear data again.
Signed-off-by: Patrick McHardy <[EMAIL PROTECTED]>
Acked-by: Herbert Xu <[EMAIL PROTECTED]>
Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
net/core/filter.c | 12 ------------
1 files changed, 12 deletions(-)
diff --git a/net/core/filter.c b/net/core/filter.c
--- a/net/core/filter.c
+++ b/net/core/filter.c
@@ -168,10 +168,6 @@ int sk_run_filter(struct sk_buff *skb, s
case BPF_LD|BPF_W|BPF_ABS:
k = fentry->k;
load_w:
- if (k >= 0 && (unsigned int)(k+sizeof(u32)) <= len) {
- A = ntohl(*(u32*)&data[k]);
- continue;
- }
if (k < 0) {
u8 *ptr;
@@ -194,10 +190,6 @@ int sk_run_filter(struct sk_buff *skb, s
case BPF_LD|BPF_H|BPF_ABS:
k = fentry->k;
load_h:
- if (k >= 0 && (unsigned int)(k + sizeof(u16)) <= len) {
- A = ntohs(*(u16*)&data[k]);
- continue;
- }
if (k < 0) {
u8 *ptr;
@@ -220,10 +212,6 @@ int sk_run_filter(struct sk_buff *skb, s
case BPF_LD|BPF_B|BPF_ABS:
k = fentry->k;
load_b:
- if (k >= 0 && (unsigned int)k < len) {
- A = data[k];
- continue;
- }
if (k < 0) {
u8 *ptr;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html