Skip to content

Commit

Permalink
Add more socket constants
Browse files Browse the repository at this point in the history
  • Loading branch information
znz committed Oct 12, 2021
1 parent a48dc89 commit 8dd6d58
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion ext/socket/mkconstants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,8 @@ def def_intern(func_name, pat, prefix_optional=nil)
SOCK_RDM nil A reliable datagram socket provides reliable delivery of messages
SOCK_SEQPACKET nil A sequential packet socket provides sequenced, reliable two-way connection for datagrams
SOCK_PACKET nil Device-level packet access
SOCK_NONBLOCK nil Set the O_NONBLOCK file status flag on the open file description (see open(2)) referred to by the new file descriptor.
SOCK_CLOEXEC nil Set the close-on-exec (FD_CLOEXEC) flag on the new file descriptor.

AF_UNSPEC nil Unspecified protocol, any supported address family
PF_UNSPEC nil Unspecified protocol, any supported address family
Expand Down Expand Up @@ -397,6 +399,8 @@ def def_intern(func_name, pat, prefix_optional=nil)
PF_SNA nil IBM SNA protocol
AF_DEC nil DECnet protocol
PF_DEC nil DECnet protocol
AF_DECnet nil DECnet protocol
PF_DECnet nil DECnet protocol
AF_DLI nil DEC Direct Data Link Interface protocol
PF_DLI nil DEC Direct Data Link Interface protocol
AF_LAT nil Local Area Transport protocol
Expand Down Expand Up @@ -438,7 +442,34 @@ def def_intern(func_name, pat, prefix_optional=nil)
PF_XTP nil eXpress Transfer Protocol
PF_RTIP
PF_PIP
PF_KEY
AF_KEY nil Key management protocol, originally developed for usage with IPsec
PF_KEY nil Key management protocol, originally developed for usage with IPsec
AF_NETLINK nil Kernel user interface device
PF_NETLINK nil Kernel user interface device
AF_RDS nil Reliable Datagram Sockets (RDS) protocol
PF_RDS nil Reliable Datagram Sockets (RDS) protocol
AF_PPPOX nil Generic PPP transport layer, for setting up L2 tunnels (L2TP and PPPoE)
PF_PPPOX nil Generic PPP transport layer, for setting up L2 tunnels (L2TP and PPPoE)
AF_LLC nil Logical link control (IEEE 802.2 LLC) protocol
PF_LLC nil Logical link control (IEEE 802.2 LLC) protocol
AF_IB nil InfiniBand native addressing
PF_IB nil InfiniBand native addressing
AF_MPLS nil Multiprotocol Label Switching
PF_MPLS nil Multiprotocol Label Switching
AF_CAN nil Controller Area Network automotive bus protocol
PF_CAN nil Controller Area Network automotive bus protocol
AF_TIPC nil TIPC, "cluster domain sockets" protocol
PF_TIPC nil TIPC, "cluster domain sockets" protocol
AF_BLUETOOTH nil Bluetooth low-level socket protocol
PF_BLUETOOTH nil Bluetooth low-level socket protocol
AF_ALG nil Interface to kernel crypto API
PF_ALG nil Interface to kernel crypto API
AF_VSOCK nil VSOCK (originally "VMWare VSockets") protocol for hypervisor-guest communication
PF_VSOCK nil VSOCK (originally "VMWare VSockets") protocol for hypervisor-guest communication
AF_KCM nil KCM (kernel connection multiplexor) interface
PF_KCM nil KCM (kernel connection multiplexor) interface
AF_XDP nil XDP (express data path) interface
PF_XDP nil XDP (express data path) interface

MSG_OOB nil Process out-of-band data
MSG_PEEK nil Peek at incoming message
Expand Down

0 comments on commit 8dd6d58

Please sign in to comment.