[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANP3RGfqsFNOvtGk6e_3sia0esEknNr2gT-PmcbhRV+S2MEaUA@mail.gmail.com>
Date: Wed, 9 Feb 2022 16:44:18 -0800
From: Maciej Żenczykowski <maze@...gle.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: "David S. Miller" <davem@...emloft.net>,
Linux NetDev <netdev@...r.kernel.org>,
Willem Bruijn <willemb@...gle.com>,
Lorenzo Colitti <lorenzo@...gle.com>,
David Ahern <dsahern@...nel.org>,
Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>,
Shuah Khan <shuah@...nel.org>, linux-kselftest@...r.kernel.org
Subject: Re: [PATCH net-next 02/11] net: ping6: support packet timestamping
On Wed, Feb 9, 2022 at 4:36 PM Jakub Kicinski <kuba@...nel.org> wrote:
>
> Nothing prevents the user from requesting timestamping
> on ping6 sockets, yet timestamps are not going to be reported.
> Plumb the flags through.
>
> Signed-off-by: Jakub Kicinski <kuba@...nel.org>
> ---
> net/ipv6/ping.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/net/ipv6/ping.c b/net/ipv6/ping.c
> index 86a72f7a61cf..3228ccd8abf1 100644
> --- a/net/ipv6/ping.c
> +++ b/net/ipv6/ping.c
> @@ -113,6 +113,7 @@ static int ping_v6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
>
> ipcm6_init_sk(&ipc6, np);
> ipc6.sockc.mark = sk->sk_mark;
> + ipc6.sockc.tsflags = sk->sk_tsflags;
> fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel);
>
> dst = ip6_sk_dst_lookup_flow(sk, &fl6, daddr, false);
> --
> 2.34.1
>
probably deserves a fixes tag?
otherwise looks fine to me
Powered by blists - more mailing lists