|
@@ -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);
|
|
|
}
|
|
|
|