Date: Wed, 3 May 2017 15:03:00 +0000 (UTC) From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r317747 - head/lib/libsysdecode Message-ID: <201705031503.v43F30tY013153@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tuexen Date: Wed May 3 15:03:00 2017 New Revision: 317747 URL: https://svnweb.freebsd.org/changeset/base/317747 Log: Add support for socket option names related to the IPPROTO_SCTP 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 14:57:04 2017 (r317746) +++ head/lib/libsysdecode/flags.c Wed May 3 15:03:00 2017 (r317747) @@ -47,6 +47,7 @@ __FBSDID("$FreeBSD$"); #include <sys/thr.h> #include <sys/umtx.h> #include <netinet/in.h> +#include <netinet/sctp.h> #include <netinet/tcp.h> #include <netinet/udp.h> #include <nfsserver/nfs.h> @@ -750,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_SCTP) + return (lookup_value(sockoptsctp, optname)); if (level == IPPROTO_TCP) return (lookup_value(sockopttcp, optname)); if (level == IPPROTO_UDP) Modified: head/lib/libsysdecode/mktables ============================================================================== --- head/lib/libsysdecode/mktables Wed May 3 14:57:04 2017 (r317746) +++ head/lib/libsysdecode/mktables Wed May 3 15:03:00 2017 (r317747) @@ -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 "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_" gen_table "socktype" "SOCK_[A-Z]+[[:space:]]+[1-9]+[0-9]*" "sys/socket.h"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705031503.v43F30tY013153>