Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200150
b: refs/heads/master
c: 33c29dd
h: refs/heads/master
v: v3
  • Loading branch information
Changli Gao authored and David S. Miller committed Jun 2, 2010
1 parent 6b73ec9 commit c580e31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e3fe8558c7fc182972c3d947d88744482111f304
refs/heads/master: 33c29dde7d04dc0ec0edb649d20ccf1351c13a06
4 changes: 4 additions & 0 deletions trunk/net/sched/act_nat.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ static int tcf_nat(struct sk_buff *skb, struct tc_action *a,
iph->daddr = new_addr;

csum_replace4(&iph->check, addr, new_addr);
} else if ((iph->frag_off & htons(IP_OFFSET)) ||
iph->protocol != IPPROTO_ICMP) {
goto out;
}

ihl = iph->ihl * 4;
Expand Down Expand Up @@ -247,6 +250,7 @@ static int tcf_nat(struct sk_buff *skb, struct tc_action *a,
break;
}

out:
return action;

drop:
Expand Down

0 comments on commit c580e31

Please sign in to comment.