Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376628
b: refs/heads/master
c: f96ef98
h: refs/heads/master
v: v3
  • Loading branch information
Michal Kubecek authored and David S. Miller committed May 28, 2013
1 parent a851d88 commit cce06b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 9a9c56cb34e65000d1f0a4b7553399bfcf7c5a52
refs/heads/master: f96ef988cc603487c03a6de07807b06cbe641829
7 changes: 6 additions & 1 deletion trunk/net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -737,10 +737,15 @@ static void ip_do_redirect(struct dst_entry *dst, struct sock *sk, struct sk_buf
{
struct rtable *rt;
struct flowi4 fl4;
const struct iphdr *iph = (const struct iphdr *) skb->data;
int oif = skb->dev->ifindex;
u8 tos = RT_TOS(iph->tos);
u8 prot = iph->protocol;
u32 mark = skb->mark;

rt = (struct rtable *) dst;

ip_rt_build_flow_key(&fl4, sk, skb);
__build_flow_key(&fl4, sk, iph, oif, tos, prot, mark, 0);
__ip_do_redirect(rt, skb, &fl4, true);
}

Expand Down

0 comments on commit cce06b4

Please sign in to comment.