Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 129714
b: refs/heads/master
c: 8884310
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jan 13, 2009
1 parent f344798 commit 785d5af
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 26 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 985ebdb5ed54151eba734aa1b307460e8e4267ba
refs/heads/master: 88843104a19d5896bf67ab6bd685e976240dd04a
7 changes: 1 addition & 6 deletions trunk/net/ipv4/netfilter/iptable_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,8 @@ ipt_local_out_hook(unsigned int hook,
{
/* root is playing with raw sockets. */
if (skb->len < sizeof(struct iphdr) ||
ip_hdrlen(skb) < sizeof(struct iphdr)) {
if (net_ratelimit())
printk("iptable_filter: ignoring short SOCK_RAW "
"packet.\n");
ip_hdrlen(skb) < sizeof(struct iphdr))
return NF_ACCEPT;
}

return ipt_do_table(skb, hook, in, out,
dev_net(out)->ipv4.iptable_filter);
}
Expand Down
6 changes: 1 addition & 5 deletions trunk/net/ipv4/netfilter/iptable_mangle.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,8 @@ ipt_local_hook(unsigned int hook,

/* root is playing with raw sockets. */
if (skb->len < sizeof(struct iphdr)
|| ip_hdrlen(skb) < sizeof(struct iphdr)) {
if (net_ratelimit())
printk("iptable_mangle: ignoring short SOCK_RAW "
"packet.\n");
|| ip_hdrlen(skb) < sizeof(struct iphdr))
return NF_ACCEPT;
}

/* Save things which could affect route */
mark = skb->mark;
Expand Down
6 changes: 1 addition & 5 deletions trunk/net/ipv4/netfilter/iptable_raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,8 @@ ipt_local_hook(unsigned int hook,
{
/* root is playing with raw sockets. */
if (skb->len < sizeof(struct iphdr) ||
ip_hdrlen(skb) < sizeof(struct iphdr)) {
if (net_ratelimit())
printk("iptable_raw: ignoring short SOCK_RAW "
"packet.\n");
ip_hdrlen(skb) < sizeof(struct iphdr))
return NF_ACCEPT;
}
return ipt_do_table(skb, hook, in, out,
dev_net(out)->ipv4.iptable_raw);
}
Expand Down
6 changes: 1 addition & 5 deletions trunk/net/ipv4/netfilter/iptable_security.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,8 @@ ipt_local_out_hook(unsigned int hook,
{
/* Somebody is playing with raw sockets. */
if (skb->len < sizeof(struct iphdr)
|| ip_hdrlen(skb) < sizeof(struct iphdr)) {
if (net_ratelimit())
printk(KERN_INFO "iptable_security: ignoring short "
"SOCK_RAW packet.\n");
|| ip_hdrlen(skb) < sizeof(struct iphdr))
return NF_ACCEPT;
}
return ipt_do_table(skb, hook, in, out,
dev_net(out)->ipv4.iptable_security);
}
Expand Down
5 changes: 1 addition & 4 deletions trunk/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,8 @@ static unsigned int ipv4_conntrack_local(unsigned int hooknum,
{
/* root is playing with raw sockets. */
if (skb->len < sizeof(struct iphdr) ||
ip_hdrlen(skb) < sizeof(struct iphdr)) {
if (net_ratelimit())
printk("ipt_hook: happy cracking.\n");
ip_hdrlen(skb) < sizeof(struct iphdr))
return NF_ACCEPT;
}
return nf_conntrack_in(dev_net(out), PF_INET, hooknum, skb);
}

Expand Down

0 comments on commit 785d5af

Please sign in to comment.