]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/ipv4/ip_fragment.c
ipv4: tcp: dont cache unconfirmed intput dst
[karo-tx-linux.git] / net / ipv4 / ip_fragment.c
index 22c6bab9717a8265dc1912a4f9d7a84da6e46eee..978d55f256eac7b949a71fe423f3ece37d3eb215 100644 (file)
@@ -184,7 +184,7 @@ static void ip4_frag_init(struct inet_frag_queue *q, void *a)
        qp->daddr = arg->iph->daddr;
        qp->user = arg->user;
        qp->peer = sysctl_ipfrag_max_dist ?
-               inet_getpeer_v4(net, arg->iph->saddr, 1) : NULL;
+               inet_getpeer_v4(net->ipv4.peers, arg->iph->saddr, 1) : NULL;
 }
 
 static __inline__ void ip4_frag_free(struct inet_frag_queue *q)
@@ -259,7 +259,7 @@ static void ip_expire(unsigned long arg)
                skb_dst_drop(head);
                iph = ip_hdr(head);
                err = ip_route_input_noref(head, iph->daddr, iph->saddr,
-                                          iph->tos, head->dev);
+                                          iph->tos, head->dev, false);
                if (err)
                        goto out_rcu_unlock;