mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Add support for socket option names related to the IPPROTO_IPV6 level.
This commit is contained in:
parent
472e80099d
commit
702eb303ff
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317748
|
@ -751,6 +751,8 @@ sysdecode_sockopt_name(int level, int optname)
|
|||
if (level == IPPROTO_IP)
|
||||
/* XXX: UNIX domain socket options use a level of 0 also. */
|
||||
return (lookup_value(sockoptip, optname));
|
||||
if (level == IPPROTO_IPV6)
|
||||
return (lookup_value(sockoptipv6, optname));
|
||||
if (level == IPPROTO_SCTP)
|
||||
return (lookup_value(sockoptsctp, optname));
|
||||
if (level == IPPROTO_TCP)
|
||||
|
|
|
@ -130,6 +130,7 @@ gen_table "sockfamily" "AF_[[:alnum:]]+[[:space:]]+" "sys/
|
|||
gen_table "sockipproto" "IPPROTO_[[:alnum:]]+[[:space:]]+" "netinet/in.h"
|
||||
gen_table "sockopt" "SO_[A-Z]+[[:space:]]+0x[0-9]+" "sys/socket.h"
|
||||
gen_table "sockoptip" "(IP_[[:alnum:]_]+|MCAST_[[:alnum:]_]+_GROUP)[[:space:]]+" "netinet/in.h" "IP_DEFAULT|IP_MIN|IP_MAX|IP_PORTRANGE"
|
||||
gen_table "sockoptipv6" "IPV6_[[:alnum:]_]+[[:space:]]+[0-9]+" "netinet6/in6.h" "IPV6_ADDR_|IPV6_TAG_DIRECT|IPV6_OPTIONS|IPV6_RECVOPTS|IPV6_RECVRETOPTS|IPV6_RECVDSTADDR|IPV6_RETOPTS|IPV6_2292|IPV6_RECVRTHDRDSTOPTS|IPV6_REACHCONF|IPV6_PKTOPTIONS"
|
||||
gen_table "sockoptsctp" "SCTP_[[:alnum:]_]+[[:space:]]+[0-9]+" "netinet/sctp.h"
|
||||
gen_table "sockopttcp" "TCP_[[:alnum:]_]+[[:space:]]+[0-9]+" "netinet/tcp.h" "TCP_MIN|TCP_MAX[^S]|TCP_MSS|TCP_[[:alnum:]_]+_MAX"
|
||||
gen_table "sockoptudp" "UDP_[[:alnum:]]+[[:space:]]+[0-9]+" "netinet/udp.h" "UDP_ENCAP_"
|
||||
|
|
Loading…
Reference in a new issue