OSDN Git Service

sock: enable timestamping using control messages
[uclinux-h8/linux.git] / net / ipv6 / ping.c
index c382db7..da1cff7 100644 (file)
@@ -62,6 +62,7 @@ static int ping_v6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
        struct dst_entry *dst;
        struct rt6_info *rt;
        struct pingfakehdr pfh;
+       struct sockcm_cookie junk = {0};
 
        pr_debug("ping_v6_sendmsg(sk=%p,sk->num=%u)\n", inet, inet->inet_num);
 
@@ -144,7 +145,7 @@ static int ping_v6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
        err = ip6_append_data(sk, ping_getfrag, &pfh, len,
                              0, hlimit,
                              np->tclass, NULL, &fl6, rt,
-                             MSG_DONTWAIT, np->dontfrag);
+                             MSG_DONTWAIT, np->dontfrag, &junk);
 
        if (err) {
                ICMP6_INC_STATS(sock_net(sk), rt->rt6i_idev,