aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv4/tcp_ipv4.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 6d88219c5e22..6ca1bc8c3025 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -328,26 +328,26 @@ static void do_pmtu_discovery(struct sock *sk, struct iphdr *iph, u32 mtu)
328 * 328 *
329 */ 329 */
330 330
331void tcp_v4_err(struct sk_buff *skb, u32 info) 331void tcp_v4_err(struct sk_buff *icmp_skb, u32 info)
332{ 332{
333 struct iphdr *iph = (struct iphdr *)skb->data; 333 struct iphdr *iph = (struct iphdr *)icmp_skb->data;
334 struct tcphdr *th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); 334 struct tcphdr *th = (struct tcphdr *)(icmp_skb->data + (iph->ihl << 2));
335 struct tcp_sock *tp; 335 struct tcp_sock *tp;
336 struct inet_sock *inet; 336 struct inet_sock *inet;
337 const int type = icmp_hdr(skb)->type; 337 const int type = icmp_hdr(icmp_skb)->type;
338 const int code = icmp_hdr(skb)->code; 338 const int code = icmp_hdr(icmp_skb)->code;
339 struct sock *sk; 339 struct sock *sk;
340 __u32 seq; 340 __u32 seq;
341 int err; 341 int err;
342 struct net *net = dev_net(skb->dev); 342 struct net *net = dev_net(icmp_skb->dev);
343 343
344 if (skb->len < (iph->ihl << 2) + 8) { 344 if (icmp_skb->len < (iph->ihl << 2) + 8) {
345 ICMP_INC_STATS_BH(net, ICMP_MIB_INERRORS); 345 ICMP_INC_STATS_BH(net, ICMP_MIB_INERRORS);
346 return; 346 return;
347 } 347 }
348 348
349 sk = inet_lookup(net, &tcp_hashinfo, iph->daddr, th->dest, 349 sk = inet_lookup(net, &tcp_hashinfo, iph->daddr, th->dest,
350 iph->saddr, th->source, inet_iif(skb)); 350 iph->saddr, th->source, inet_iif(icmp_skb));
351 if (!sk) { 351 if (!sk) {
352 ICMP_INC_STATS_BH(net, ICMP_MIB_INERRORS); 352 ICMP_INC_STATS_BH(net, ICMP_MIB_INERRORS);
353 return; 353 return;