diff options
Diffstat (limited to 'net/ipv6/ping.c')
-rw-r--r-- | net/ipv6/ping.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv6/ping.c b/net/ipv6/ping.c index 8815e31a87fe..15d23b8c2129 100644 --- a/net/ipv6/ping.c +++ b/net/ipv6/ping.c | |||
@@ -57,7 +57,8 @@ static struct inet_protosw pingv6_protosw = { | |||
57 | 57 | ||
58 | 58 | ||
59 | /* Compatibility glue so we can support IPv6 when it's compiled as a module */ | 59 | /* Compatibility glue so we can support IPv6 when it's compiled as a module */ |
60 | static int dummy_ipv6_recv_error(struct sock *sk, struct msghdr *msg, int len) | 60 | static int dummy_ipv6_recv_error(struct sock *sk, struct msghdr *msg, int len, |
61 | int *addr_len) | ||
61 | { | 62 | { |
62 | return -EAFNOSUPPORT; | 63 | return -EAFNOSUPPORT; |
63 | } | 64 | } |
@@ -144,7 +145,7 @@ int ping_v6_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, | |||
144 | else if (!fl6.flowi6_oif) | 145 | else if (!fl6.flowi6_oif) |
145 | fl6.flowi6_oif = np->ucast_oif; | 146 | fl6.flowi6_oif = np->ucast_oif; |
146 | 147 | ||
147 | dst = ip6_sk_dst_lookup_flow(sk, &fl6, daddr, 1); | 148 | dst = ip6_sk_dst_lookup_flow(sk, &fl6, daddr); |
148 | if (IS_ERR(dst)) | 149 | if (IS_ERR(dst)) |
149 | return PTR_ERR(dst); | 150 | return PTR_ERR(dst); |
150 | rt = (struct rt6_info *) dst; | 151 | rt = (struct rt6_info *) dst; |