mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
Add support for socket option names related to the level IPPROTO_UDPLITE.
This commit is contained in:
parent
c23a0b35c1
commit
ed466c3404
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317789
@ -50,6 +50,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <netinet/sctp.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <netinet/udp.h>
|
||||
#include <netinet/udplite.h>
|
||||
#include <nfsserver/nfs.h>
|
||||
#include <ufs/ufs/quota.h>
|
||||
#include <vm/vm.h>
|
||||
@ -759,6 +760,8 @@ sysdecode_sockopt_name(int level, int optname)
|
||||
return (lookup_value(sockopttcp, optname));
|
||||
if (level == IPPROTO_UDP)
|
||||
return (lookup_value(sockoptudp, optname));
|
||||
if (level == IPPROTO_UDPLITE)
|
||||
return (lookup_value(sockoptudplite, optname));
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
|
@ -134,6 +134,7 @@ gen_table "sockoptipv6" "IPV6_[[:alnum:]_]+[[:space:]]+[0-9]+" "neti
|
||||
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 "sockoptudplite" "UDPLITE_[[:alnum:]_]+[[:space:]]+[0-9]+" "netinet/udplite.h"
|
||||
gen_table "socktype" "SOCK_[A-Z]+[[:space:]]+[1-9]+[0-9]*" "sys/socket.h"
|
||||
gen_table "thrcreateflags" "THR_[A-Z]+[[:space:]]+0x[0-9]+" "sys/thr.h"
|
||||
gen_table "umtxop" "UMTX_OP_[[:alnum:]_]+[[:space:]]+[0-9]+" "sys/umtx.h"
|
||||
|
Loading…
Reference in New Issue
Block a user