net: SO_RCVMARK socket option for SO_MARK with recvmsg()
authorErin MacNeil <lnx.erin@gmail.com>
Wed, 27 Apr 2022 20:02:37 +0000 (16:02 -0400)
committerJakub Kicinski <kuba@kernel.org>
Thu, 28 Apr 2022 20:08:15 +0000 (13:08 -0700)
commit6fd1d51cfa253b5ee7dae18d7cf1df830e9b6137
treea31571fbe97aecf0397022180c5f481f5a70636b
parent0e55546b189fc5f1ce5149445d7df083f26d4f25
net: SO_RCVMARK socket option for SO_MARK with recvmsg()

Adding a new socket option, SO_RCVMARK, to indicate that SO_MARK
should be included in the ancillary data returned by recvmsg().

Renamed the sock_recv_ts_and_drops() function to sock_recv_cmsgs().

Signed-off-by: Erin MacNeil <lnx.erin@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
Link: https://lore.kernel.org/r/20220427200259.2564-1-lnx.erin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
23 files changed:
arch/alpha/include/uapi/asm/socket.h
arch/mips/include/uapi/asm/socket.h
arch/parisc/include/uapi/asm/socket.h
arch/sparc/include/uapi/asm/socket.h
include/net/sock.h
include/uapi/asm-generic/socket.h
net/atm/common.c
net/bluetooth/af_bluetooth.c
net/can/bcm.c
net/can/j1939/socket.c
net/can/raw.c
net/core/sock.c
net/ieee802154/socket.c
net/ipv4/raw.c
net/ipv4/udp.c
net/ipv6/raw.c
net/ipv6/udp.c
net/key/af_key.c
net/mctp/af_mctp.c
net/packet/af_packet.c
net/sctp/socket.c
net/socket.c
tools/include/uapi/asm-generic/socket.h