Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90704
b: refs/heads/master
c: 42cf800
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy committed Apr 14, 2008
1 parent d210caa commit 9cdb339
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 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: 9d908a69a32e0171eb5eeac93f2f46ffa4190573
refs/heads/master: 42cf800c240fa845e9c154429d70d62750e65b64
15 changes: 1 addition & 14 deletions trunk/net/ipv4/netfilter/nf_nat_standalone.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,21 +93,8 @@ nf_nat_fn(unsigned int hooknum,
have dropped it. Hence it's the user's responsibilty to
packet filter it out, or implement conntrack/NAT for that
protocol. 8) --RR */
if (!ct) {
/* Exception: ICMP redirect to new connection (not in
hash table yet). We must not let this through, in
case we're doing NAT to the same network. */
if (ip_hdr(skb)->protocol == IPPROTO_ICMP) {
struct icmphdr _hdr, *hp;

hp = skb_header_pointer(skb, ip_hdrlen(skb),
sizeof(_hdr), &_hdr);
if (hp != NULL &&
hp->type == ICMP_REDIRECT)
return NF_DROP;
}
if (!ct)
return NF_ACCEPT;
}

/* Don't try to NAT if this packet is not conntracked */
if (ct == &nf_conntrack_untracked)
Expand Down

0 comments on commit 9cdb339

Please sign in to comment.