path: root/net/packet
diff options
authorErin MacNeil <>2022-04-27 16:02:37 -0400
committerJakub Kicinski <>2022-04-28 13:08:15 -0700
commit6fd1d51cfa253b5ee7dae18d7cf1df830e9b6137 (patch)
treea31571fbe97aecf0397022180c5f481f5a70636b /net/packet
parent0e55546b189fc5f1ce5149445d7df083f26d4f25 (diff)
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 <> Reviewed-by: Eric Dumazet <> Reviewed-by: David Ahern <> Acked-by: Marc Kleine-Budde <> Link: Signed-off-by: Jakub Kicinski <>
Diffstat (limited to 'net/packet')
1 files changed, 1 insertions, 1 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index fd31334cf688..677f9cfa9660 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -3477,7 +3477,7 @@ static int packet_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
sll->sll_protocol = skb->protocol;
- sock_recv_ts_and_drops(msg, sk, skb);
+ sock_recv_cmsgs(msg, sk, skb);
if (msg->msg_name) {
const size_t max_len = min(sizeof(skb->cb),