svn commit: r317748 - head/lib/libsysdecode
Michael Tuexen
tuexen at FreeBSD.org
Wed May 3 15:20:42 UTC 2017
Author: tuexen
Date: Wed May 3 15:20:40 2017
New Revision: 317748
URL: https://svnweb.freebsd.org/changeset/base/317748
Log:
Add support for socket option names related to the IPPROTO_IPV6 level.
Modified:
head/lib/libsysdecode/flags.c
head/lib/libsysdecode/mktables
Modified: head/lib/libsysdecode/flags.c
==============================================================================
--- head/lib/libsysdecode/flags.c Wed May 3 15:03:00 2017 (r317747)
+++ head/lib/libsysdecode/flags.c Wed May 3 15:20:40 2017 (r317748)
@@ -751,6 +751,8 @@ sysdecode_sockopt_name(int level, int op
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)
Modified: head/lib/libsysdecode/mktables
==============================================================================
--- head/lib/libsysdecode/mktables Wed May 3 15:03:00 2017 (r317747)
+++ head/lib/libsysdecode/mktables Wed May 3 15:20:40 2017 (r317748)
@@ -130,6 +130,7 @@ gen_table "sockfamily" "AF_[[:alnum
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_"
More information about the svn-src-head
mailing list