equal
deleted
inserted
replaced
63 const struct net_device *out, |
63 const struct net_device *out, |
64 int (*okfn)(struct sk_buff *)) |
64 int (*okfn)(struct sk_buff *)) |
65 { |
65 { |
66 /* root is playing with raw sockets. */ |
66 /* root is playing with raw sockets. */ |
67 if (skb->len < sizeof(struct iphdr) || |
67 if (skb->len < sizeof(struct iphdr) || |
68 ip_hdrlen(skb) < sizeof(struct iphdr)) { |
68 ip_hdrlen(skb) < sizeof(struct iphdr)) |
69 if (net_ratelimit()) |
|
70 printk("iptable_raw: ignoring short SOCK_RAW " |
|
71 "packet.\n"); |
|
72 return NF_ACCEPT; |
69 return NF_ACCEPT; |
73 } |
|
74 return ipt_do_table(skb, hook, in, out, |
70 return ipt_do_table(skb, hook, in, out, |
75 dev_net(out)->ipv4.iptable_raw); |
71 dev_net(out)->ipv4.iptable_raw); |
76 } |
72 } |
77 |
73 |
78 /* 'raw' is the very first table. */ |
74 /* 'raw' is the very first table. */ |