inet: Add getsockopt support for IP_ROUTER_ALERT and IPV6_ROUTER_ALERT
authorJuntong Deng <juntong.deng@outlook.com>
Mon, 4 Mar 2024 11:32:08 +0000 (11:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Mar 2024 12:37:06 +0000 (12:37 +0000)
commiteeb78df4063c0b162324a9408ef573b24791871f
tree4326e25b136c2c1b74b62da815ca3eea3044a905
parentedf7468d9a027f7638e22d1ece65d3497294d787
inet: Add getsockopt support for IP_ROUTER_ALERT and IPV6_ROUTER_ALERT

Currently getsockopt does not support IP_ROUTER_ALERT and
IPV6_ROUTER_ALERT, and we are unable to get the values of these two
socket options through getsockopt.

This patch adds getsockopt support for IP_ROUTER_ALERT and
IPV6_ROUTER_ALERT.

Signed-off-by: Juntong Deng <juntong.deng@outlook.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_sock.h
net/ipv4/ip_sockglue.c
net/ipv6/ipv6_sockglue.c