summaryrefslogtreecommitdiffstats
path: root/net/hsr
diff options
context:
space:
mode:
authorJörn-Thorben Hinz <jthinz@mailbox.tu-berlin.de>2023-12-22 00:19:01 +0100
committerDavid S. Miller <davem@davemloft.net>2024-01-02 13:24:30 +0000
commit7f6ca95d16b96567ce4cf458a2790ff17fa620c3 (patch)
tree9950181d365da05e708f54a70bda979aac10ecb3 /net/hsr
parent9bf2e9165f90dc9f416af53c902be7e33930f728 (diff)
downloadlinux-stable-7f6ca95d16b96567ce4cf458a2790ff17fa620c3.tar.gz
linux-stable-7f6ca95d16b96567ce4cf458a2790ff17fa620c3.tar.bz2
linux-stable-7f6ca95d16b96567ce4cf458a2790ff17fa620c3.zip
net: Implement missing getsockopt(SO_TIMESTAMPING_NEW)
Commit 9718475e6908 ("socket: Add SO_TIMESTAMPING_NEW") added the new socket option SO_TIMESTAMPING_NEW. Setting the option is handled in sk_setsockopt(), querying it was not handled in sk_getsockopt(), though. Following remarks on an earlier submission of this patch, keep the old behavior of getsockopt(SO_TIMESTAMPING_OLD) which returns the active flags even if they actually have been set through SO_TIMESTAMPING_NEW. The new getsockopt(SO_TIMESTAMPING_NEW) is stricter, returning flags only if they have been set through the same option. Fixes: 9718475e6908 ("socket: Add SO_TIMESTAMPING_NEW") Link: https://lore.kernel.org/lkml/20230703175048.151683-1-jthinz@mailbox.tu-berlin.de/ Link: https://lore.kernel.org/netdev/0d7cddc9-03fa-43db-a579-14f3e822615b@app.fastmail.com/ Signed-off-by: Jörn-Thorben Hinz <jthinz@mailbox.tu-berlin.de> Reviewed-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/hsr')
0 files changed, 0 insertions, 0 deletions