Add support for socket option names related to the IPPROTO_SCTP level.
This commit is contained in:
parent
9e96f90b50
commit
472e80099d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317747
@ -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 optname)
|
||||
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)
|
||||
|
@ -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 "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"
|
||||
|
Loading…
Reference in New Issue
Block a user