diff options
Diffstat (limited to 'net/ipv4/ip_output.c')
-rw-r--r-- | net/ipv4/ip_output.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index f1278eecf56d..f003186b93b1 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c | |||
@@ -1211,6 +1211,7 @@ int ip_push_pending_frames(struct sock *sk) | |||
1211 | struct sk_buff *skb, *tmp_skb; | 1211 | struct sk_buff *skb, *tmp_skb; |
1212 | struct sk_buff **tail_skb; | 1212 | struct sk_buff **tail_skb; |
1213 | struct inet_sock *inet = inet_sk(sk); | 1213 | struct inet_sock *inet = inet_sk(sk); |
1214 | struct net *net = sock_net(sk); | ||
1214 | struct ip_options *opt = NULL; | 1215 | struct ip_options *opt = NULL; |
1215 | struct rtable *rt = (struct rtable *)inet->cork.dst; | 1216 | struct rtable *rt = (struct rtable *)inet->cork.dst; |
1216 | struct iphdr *iph; | 1217 | struct iphdr *iph; |
@@ -1280,7 +1281,7 @@ int ip_push_pending_frames(struct sock *sk) | |||
1280 | skb->dst = dst_clone(&rt->u.dst); | 1281 | skb->dst = dst_clone(&rt->u.dst); |
1281 | 1282 | ||
1282 | if (iph->protocol == IPPROTO_ICMP) | 1283 | if (iph->protocol == IPPROTO_ICMP) |
1283 | icmp_out_count(((struct icmphdr *) | 1284 | icmp_out_count(net, ((struct icmphdr *) |
1284 | skb_transport_header(skb))->type); | 1285 | skb_transport_header(skb))->type); |
1285 | 1286 | ||
1286 | /* Netfilter gets whole the not fragmented skb. */ | 1287 | /* Netfilter gets whole the not fragmented skb. */ |