|
@@ -116,6 +116,9 @@ static int ping_v6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
|
|
|
else if (!fl6.flowi6_oif)
|
|
|
fl6.flowi6_oif = np->ucast_oif;
|
|
|
|
|
|
+ ipc6.tclass = np->tclass;
|
|
|
+ fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel);
|
|
|
+
|
|
|
dst = ip6_sk_dst_lookup_flow(sk, &fl6, daddr);
|
|
|
if (IS_ERR(dst))
|
|
|
return PTR_ERR(dst);
|
|
@@ -140,7 +143,6 @@ static int ping_v6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
|
|
|
pfh.family = AF_INET6;
|
|
|
|
|
|
ipc6.hlimit = ip6_sk_dst_hoplimit(np, &fl6, dst);
|
|
|
- ipc6.tclass = np->tclass;
|
|
|
ipc6.dontfrag = np->dontfrag;
|
|
|
ipc6.opt = NULL;
|
|
|
|