mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-25 20:10:29 +00:00
Improve socket option story
This commit is contained in:
parent
b14dddcc18
commit
bb7942e557
101 changed files with 208 additions and 567 deletions
|
@ -2,105 +2,34 @@
|
|||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_IP_H_
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern const int IP_ADD_MEMBERSHIP;
|
||||
extern const int IP_ADD_SOURCE_MEMBERSHIP;
|
||||
extern const int IP_BIND_ADDRESS_NO_PORT;
|
||||
extern const int IP_BLOCK_SOURCE;
|
||||
extern const int IP_CHECKSUM;
|
||||
extern const int IP_DEFAULT_MULTICAST_LOOP;
|
||||
extern const int IP_DEFAULT_MULTICAST_TTL;
|
||||
extern const int IP_DROP_MEMBERSHIP;
|
||||
extern const int IP_DROP_SOURCE_MEMBERSHIP;
|
||||
extern const int IP_FREEBIND;
|
||||
extern const int IP_HDRINCL;
|
||||
extern const int IP_IPSEC_POLICY;
|
||||
extern const int IP_MAX_MEMBERSHIPS;
|
||||
extern const int IP_MINTTL;
|
||||
extern const int IP_MSFILTER;
|
||||
extern const int IP_TOS;
|
||||
extern const int IP_TTL;
|
||||
extern const int IP_MTU;
|
||||
extern const int IP_MTU_DISCOVER;
|
||||
extern const int IP_MULTICAST_ALL;
|
||||
extern const int IP_HDRINCL;
|
||||
extern const int IP_OPTIONS;
|
||||
extern const int IP_RECVTTL;
|
||||
extern const int IP_ADD_MEMBERSHIP;
|
||||
extern const int IP_DROP_MEMBERSHIP;
|
||||
extern const int IP_MULTICAST_IF;
|
||||
extern const int IP_MULTICAST_LOOP;
|
||||
extern const int IP_MULTICAST_TTL;
|
||||
extern const int IP_NODEFRAG;
|
||||
extern const int IP_OPTIONS;
|
||||
extern const int IP_ORIGDSTADDR;
|
||||
extern const int IP_PASSSEC;
|
||||
extern const int IP_PKTINFO;
|
||||
extern const int IP_PKTOPTIONS;
|
||||
extern const int IP_PMTUDISC;
|
||||
extern const int IP_PMTUDISC_DO;
|
||||
extern const int IP_PMTUDISC_DONT;
|
||||
extern const int IP_PMTUDISC_INTERFACE;
|
||||
extern const int IP_PMTUDISC_OMIT;
|
||||
extern const int IP_PMTUDISC_PROBE;
|
||||
extern const int IP_PMTUDISC_WANT;
|
||||
extern const int IP_RECVDSTADDR;
|
||||
extern const int IP_RECVERR;
|
||||
extern const int IP_RECVOPTS;
|
||||
extern const int IP_RECVORIGDSTADDR;
|
||||
extern const int IP_RECVRETOPTS;
|
||||
extern const int IP_RECVTOS;
|
||||
extern const int IP_RECVTTL;
|
||||
extern const int IP_RETOPTS;
|
||||
extern const int IP_ROUTER_ALERT;
|
||||
extern const int IP_TOS;
|
||||
extern const int IP_TRANSPARENT;
|
||||
extern const int IP_TTL;
|
||||
extern const int IP_UNBLOCK_SOURCE;
|
||||
extern const int IP_UNICAST_IF;
|
||||
extern const int IP_XFRM_POLICY;
|
||||
|
||||
#define IP_ADD_MEMBERSHIP IP_ADD_MEMBERSHIP
|
||||
#define IP_ADD_SOURCE_MEMBERSHIP IP_ADD_SOURCE_MEMBERSHIP
|
||||
#define IP_BIND_ADDRESS_NO_PORT IP_BIND_ADDRESS_NO_PORT
|
||||
#define IP_BLOCK_SOURCE IP_BLOCK_SOURCE
|
||||
#define IP_CHECKSUM IP_CHECKSUM
|
||||
#define IP_DEFAULT_MULTICAST_LOOP IP_DEFAULT_MULTICAST_LOOP
|
||||
#define IP_DEFAULT_MULTICAST_TTL IP_DEFAULT_MULTICAST_TTL
|
||||
#define IP_DROP_MEMBERSHIP IP_DROP_MEMBERSHIP
|
||||
#define IP_DROP_SOURCE_MEMBERSHIP IP_DROP_SOURCE_MEMBERSHIP
|
||||
#define IP_FREEBIND IP_FREEBIND
|
||||
#define IP_HDRINCL IP_HDRINCL
|
||||
#define IP_IPSEC_POLICY IP_IPSEC_POLICY
|
||||
#define IP_MAX_MEMBERSHIPS IP_MAX_MEMBERSHIPS
|
||||
#define IP_MINTTL IP_MINTTL
|
||||
#define IP_MSFILTER IP_MSFILTER
|
||||
#define IP_MTU IP_MTU
|
||||
#define IP_MTU_DISCOVER IP_MTU_DISCOVER
|
||||
#define IP_MULTICAST_ALL IP_MULTICAST_ALL
|
||||
#define IP_MULTICAST_IF IP_MULTICAST_IF
|
||||
#define IP_MULTICAST_LOOP IP_MULTICAST_LOOP
|
||||
#define IP_MULTICAST_TTL IP_MULTICAST_TTL
|
||||
#define IP_NODEFRAG IP_NODEFRAG
|
||||
#define IP_OPTIONS IP_OPTIONS
|
||||
#define IP_ORIGDSTADDR IP_ORIGDSTADDR
|
||||
#define IP_PASSSEC IP_PASSSEC
|
||||
#define IP_PKTINFO IP_PKTINFO
|
||||
#define IP_PKTOPTIONS IP_PKTOPTIONS
|
||||
#define IP_PMTUDISC IP_PMTUDISC
|
||||
#define IP_PMTUDISC_DO IP_PMTUDISC_DO
|
||||
#define IP_PMTUDISC_DONT IP_PMTUDISC_DONT
|
||||
#define IP_PMTUDISC_INTERFACE IP_PMTUDISC_INTERFACE
|
||||
#define IP_PMTUDISC_OMIT IP_PMTUDISC_OMIT
|
||||
#define IP_PMTUDISC_PROBE IP_PMTUDISC_PROBE
|
||||
#define IP_PMTUDISC_WANT IP_PMTUDISC_WANT
|
||||
#define IP_RECVDSTADDR IP_RECVDSTADDR
|
||||
#define IP_RECVERR IP_RECVERR
|
||||
#define IP_RECVOPTS IP_RECVOPTS
|
||||
#define IP_RECVORIGDSTADDR IP_RECVORIGDSTADDR
|
||||
#define IP_RECVRETOPTS IP_RECVRETOPTS
|
||||
#define IP_RECVTOS IP_RECVTOS
|
||||
#define IP_RECVTTL IP_RECVTTL
|
||||
#define IP_RETOPTS IP_RETOPTS
|
||||
#define IP_ROUTER_ALERT IP_ROUTER_ALERT
|
||||
#define IP_TOS IP_TOS
|
||||
#define IP_TRANSPARENT IP_TRANSPARENT
|
||||
#define IP_TTL IP_TTL
|
||||
#define IP_UNBLOCK_SOURCE IP_UNBLOCK_SOURCE
|
||||
#define IP_UNICAST_IF IP_UNICAST_IF
|
||||
#define IP_XFRM_POLICY IP_XFRM_POLICY
|
||||
#define IP_TOS IP_TOS
|
||||
#define IP_TTL IP_TTL
|
||||
#define IP_MTU IP_MTU
|
||||
#define IP_HDRINCL IP_HDRINCL
|
||||
#define IP_OPTIONS IP_OPTIONS
|
||||
#define IP_RECVTTL IP_RECVTTL
|
||||
#define IP_ADD_MEMBERSHIP IP_ADD_MEMBERSHIP
|
||||
#define IP_DROP_MEMBERSHIP IP_DROP_MEMBERSHIP
|
||||
#define IP_MULTICAST_IF IP_MULTICAST_IF
|
||||
#define IP_MULTICAST_LOOP IP_MULTICAST_LOOP
|
||||
#define IP_MULTICAST_TTL IP_MULTICAST_TTL
|
||||
|
||||
#define IP_DEFAULT_MULTICAST_TTL 1
|
||||
#define IP_DEFAULT_MULTICAST_LOOP 1
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_IP_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue