mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-27 21: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
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,INET6_ADDRSTRLEN,46,46,46,46,46,46,46,65
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,INET_ADDRSTRLEN,0x10,0x10,0x10,0x10,0x10,0x10,0x10,22
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_2292DSTOPTS,4,4,23,23,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_2292HOPLIMIT,8,8,20,20,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_2292HOPOPTS,3,3,22,22,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_2292PKTINFO,2,2,19,19,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_2292PKTOPTIONS,6,6,25,25,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_2292RTHDR,5,5,24,24,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_ADDRFORM,1,1,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_ADD_MEMBERSHIP,20,20,0,0,0,0,0,12
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_AUTHHDR,10,10,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_AUTOFLOWLABEL,0,0,0,0,59,59,59,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_DROP_MEMBERSHIP,21,21,0,0,0,0,0,13
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_DSTOPTS,59,59,0,0,50,50,50,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_HDRINCL,36,36,0,0,0,0,0,2
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_IPSEC_POLICY,34,34,28,28,28,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_JOIN_ANYCAST,27,27,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_LEAVE_ANYCAST,28,28,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_MINHOPCOUNT,0,0,0,0,0,65,65,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_MTU,24,24,0,0,0,0,0,72
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_MTU_DISCOVER,23,23,0,0,0,0,0,71
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_NEXTHOP,9,9,0,0,48,48,48,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_ORIGDSTADDR,0,0,0,0,72,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_PATHMTU,61,61,0,0,44,44,44,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_PMTUDISC_DO,2,2,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_PMTUDISC_DONT,0,0,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_PMTUDISC_INTERFACE,4,4,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_PMTUDISC_OMIT,5,5,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_PMTUDISC_PROBE,3,3,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_PMTUDISC_WANT,1,1,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_RECVDSTOPTS,58,58,0,0,40,40,40,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_RECVERR,25,25,0,0,0,0,0,75
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_RECVHOPLIMIT,51,51,0,0,37,37,37,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_RECVHOPOPTS,53,53,0,0,39,39,39,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_RECVORIGDSTADDR,0,0,0,0,72,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_RECVPATHMTU,60,60,0,0,43,43,43,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_RECVPKTINFO,49,49,0,0,36,36,36,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_ROUTER_ALERT,22,22,0,0,0,0,0,0
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_RTHDR,57,57,0,0,51,51,51,0x20
|
||||
.syscon ipv6,IPV6_RTHDR,57,57,0,0,51,51,51,32
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_RTHDRDSTOPTS,55,55,0,0,35,35,35,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_RTHDR_LOOSE,0,0,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_RTHDR_STRICT,1,1,1,1,1,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_RTHDR_TYPE_0,0,0,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_RXDSTOPTS,59,59,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_RXHOPOPTS,54,54,0,0,0,0,0,0
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_UNICAST_HOPS,0x10,0x10,4,4,4,4,4,4
|
||||
.syscon ipv6,IPV6_UNICAST_HOPS,16,16,4,4,4,4,4,4
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ipv6,IPV6_XFRM_POLICY,35,35,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_ADD_SOURCE_MEMBERSHIP,39,39,70,70,70,0,0,15
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_BIND_ADDRESS_NO_PORT,24,24,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_BLOCK_SOURCE,38,38,72,72,72,0,0,17
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_CHECKSUM,23,23,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_DEFAULT_MULTICAST_LOOP,1,1,1,1,1,1,1,1
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_DEFAULT_MULTICAST_TTL,1,1,1,1,1,1,1,1
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_DROP_SOURCE_MEMBERSHIP,40,40,71,71,71,0,0,16
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_FREEBIND,15,15,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_IPSEC_POLICY,0x10,0x10,21,21,21,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_MAX_MEMBERSHIPS,20,20,0x0fff,0x0fff,0x0fff,0x0fff,0x0fff,20
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_MINTTL,21,21,0,0,66,32,24,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_MSFILTER,41,41,74,74,74,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_MTU_DISCOVER,10,10,0,0,0,0,0,71
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_MULTICAST_ALL,49,49,0,0,0,0,0,0
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_MULTICAST_IF,0x20,0x20,9,9,9,9,9,9
|
||||
.syscon ip,IP_MULTICAST_IF,32,32,9,9,9,9,9,9
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_NODEFRAG,22,22,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_ORIGDSTADDR,20,20,0,0,27,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_PASSSEC,18,18,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_PKTOPTIONS,9,9,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_PMTUDISC,10,10,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_PMTUDISC_DO,2,2,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_PMTUDISC_DONT,0,0,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_PMTUDISC_INTERFACE,4,4,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_PMTUDISC_OMIT,5,5,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_PMTUDISC_PROBE,3,3,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_PMTUDISC_WANT,1,1,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_RECVDSTADDR,0,0,7,7,7,7,7,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_RECVERR,11,11,0,0,0,0,0,75
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_RECVOPTS,6,6,5,5,5,5,5,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_RECVORIGDSTADDR,20,20,0,0,27,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_RECVRETOPTS,7,7,6,6,6,6,6,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_RETOPTS,7,7,8,8,8,8,8,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_ROUTER_ALERT,5,5,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_TRANSPARENT,19,19,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_UNBLOCK_SOURCE,37,37,73,73,73,0,0,18
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_UNICAST_IF,50,50,0,0,0,0,0,31
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ip,IP_XFRM_POLICY,17,17,0,0,0,0,0,0
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon so,SO_BROADCAST,6,6,0x20,0x20,0x20,0x20,0x20,0x20
|
||||
.syscon so,SO_BROADCAST,6,6,32,32,32,32,32,32
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon so,SO_DONTROUTE,5,5,0x10,0x10,0x10,0x10,0x10,0x10
|
||||
.syscon so,SO_DONTROUTE,5,5,16,16,16,16,16,16
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon so,SO_LINGER,13,13,0x1080,0x1080,0x80,0x80,0x80,0x80
|
||||
.syscon so,SO_LINGER,13,13,4224,4224,128,128,128,128
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon so,SO_OOBINLINE,10,10,0x0100,0x0100,0x0100,0x0100,0x0100,0x0100
|
||||
.syscon so,SO_OOBINLINE,10,10,256,256,256,256,256,256
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon so,SO_REUSEPORT,15,15,0x0200,0x0200,0x0200,0x0200,0x0200,0
|
||||
.syscon so,SO_REUSEPORT,15,15,512,512,512,512,512,0
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon so,SO_USELOOPBACK,0,0,0x40,0x40,0x40,0x40,0x40,0x40
|
||||
.syscon so,SO_USELOOPBACK,0,0,64,64,64,64,64,64
|
||||
|
|
|
@ -1,37 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_ICMP6_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_ICMP6_H_
|
||||
|
||||
#define ICMP6_DST_UNREACH ICMP6_DST_UNREACH
|
||||
#define ICMP6_DST_UNREACH_ADDR ICMP6_DST_UNREACH_ADDR
|
||||
#define ICMP6_DST_UNREACH_ADMIN ICMP6_DST_UNREACH_ADMIN
|
||||
#define ICMP6_DST_UNREACH_BEYONDSCOPE ICMP6_DST_UNREACH_BEYONDSCOPE
|
||||
#define ICMP6_DST_UNREACH_NOPORT ICMP6_DST_UNREACH_NOPORT
|
||||
#define ICMP6_DST_UNREACH_NOROUTE ICMP6_DST_UNREACH_NOROUTE
|
||||
#define ICMP6_ECHO_REPLY ICMP6_ECHO_REPLY
|
||||
#define ICMP6_ECHO_REQUEST ICMP6_ECHO_REQUEST
|
||||
#define ICMP6_FILTER ICMP6_FILTER
|
||||
#define ICMP6_INFOMSG_MASK ICMP6_INFOMSG_MASK
|
||||
#define ICMP6_PACKET_TOO_BIG ICMP6_PACKET_TOO_BIG
|
||||
#define ICMP6_PARAMPROB_HEADER ICMP6_PARAMPROB_HEADER
|
||||
#define ICMP6_PARAMPROB_NEXTHEADER ICMP6_PARAMPROB_NEXTHEADER
|
||||
#define ICMP6_PARAMPROB_OPTION ICMP6_PARAMPROB_OPTION
|
||||
#define ICMP6_PARAM_PROB ICMP6_PARAM_PROB
|
||||
#define ICMP6_ROUTER_RENUMBERING ICMP6_ROUTER_RENUMBERING
|
||||
#define ICMP6_RR_FLAGS_FORCEAPPLY ICMP6_RR_FLAGS_FORCEAPPLY
|
||||
#define ICMP6_RR_FLAGS_PREVDONE ICMP6_RR_FLAGS_PREVDONE
|
||||
#define ICMP6_RR_FLAGS_REQRESULT ICMP6_RR_FLAGS_REQRESULT
|
||||
#define ICMP6_RR_FLAGS_SPECSITE ICMP6_RR_FLAGS_SPECSITE
|
||||
#define ICMP6_RR_FLAGS_TEST ICMP6_RR_FLAGS_TEST
|
||||
#define ICMP6_RR_PCOUSE_FLAGS_DECRPLTIME ICMP6_RR_PCOUSE_FLAGS_DECRPLTIME
|
||||
#define ICMP6_RR_PCOUSE_FLAGS_DECRVLTIME ICMP6_RR_PCOUSE_FLAGS_DECRVLTIME
|
||||
#define ICMP6_RR_PCOUSE_RAFLAGS_AUTO ICMP6_RR_PCOUSE_RAFLAGS_AUTO
|
||||
#define ICMP6_RR_PCOUSE_RAFLAGS_ONLINK ICMP6_RR_PCOUSE_RAFLAGS_ONLINK
|
||||
#define ICMP6_RR_RESULT_FLAGS_FORBIDDEN ICMP6_RR_RESULT_FLAGS_FORBIDDEN
|
||||
#define ICMP6_RR_RESULT_FLAGS_OOB ICMP6_RR_RESULT_FLAGS_OOB
|
||||
#define ICMP6_TIME_EXCEEDED ICMP6_TIME_EXCEEDED
|
||||
#define ICMP6_TIME_EXCEED_REASSEMBLY ICMP6_TIME_EXCEED_REASSEMBLY
|
||||
#define ICMP6_TIME_EXCEED_TRANSIT ICMP6_TIME_EXCEED_TRANSIT
|
||||
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern const uint8_t ICMP6_DST_UNREACH;
|
||||
|
|
|
@ -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_ */
|
||||
|
|
|
@ -2,125 +2,39 @@
|
|||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_IPV6_H_
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern const int IPV6_2292DSTOPTS;
|
||||
extern const int IPV6_2292HOPLIMIT;
|
||||
extern const int IPV6_2292HOPOPTS;
|
||||
extern const int IPV6_2292PKTINFO;
|
||||
extern const int IPV6_2292PKTOPTIONS;
|
||||
extern const int IPV6_2292RTHDR;
|
||||
extern const int IPV6_ADDRFORM;
|
||||
extern const int IPV6_ADD_MEMBERSHIP;
|
||||
extern const int IPV6_AUTHHDR;
|
||||
extern const int IPV6_AUTOFLOWLABEL;
|
||||
extern const int IPV6_V6ONLY;
|
||||
extern const int IPV6_CHECKSUM;
|
||||
extern const int IPV6_DONTFRAG;
|
||||
extern const int IPV6_DROP_MEMBERSHIP;
|
||||
extern const int IPV6_DSTOPTS;
|
||||
extern const int IPV6_HDRINCL;
|
||||
extern const int IPV6_HOPLIMIT;
|
||||
extern const int IPV6_HOPOPTS;
|
||||
extern const int IPV6_IPSEC_POLICY;
|
||||
extern const int IPV6_JOIN_ANYCAST;
|
||||
extern const int IPV6_JOIN_GROUP;
|
||||
extern const int IPV6_LEAVE_ANYCAST;
|
||||
extern const int IPV6_LEAVE_GROUP;
|
||||
extern const int IPV6_MINHOPCOUNT;
|
||||
extern const int IPV6_MTU;
|
||||
extern const int IPV6_MTU_DISCOVER;
|
||||
extern const int IPV6_MULTICAST_HOPS;
|
||||
extern const int IPV6_MULTICAST_IF;
|
||||
extern const int IPV6_MULTICAST_LOOP;
|
||||
extern const int IPV6_NEXTHOP;
|
||||
extern const int IPV6_ORIGDSTADDR;
|
||||
extern const int IPV6_PATHMTU;
|
||||
extern const int IPV6_PKTINFO;
|
||||
extern const int IPV6_PMTUDISC_DO;
|
||||
extern const int IPV6_PMTUDISC_DONT;
|
||||
extern const int IPV6_PMTUDISC_INTERFACE;
|
||||
extern const int IPV6_PMTUDISC_OMIT;
|
||||
extern const int IPV6_PMTUDISC_PROBE;
|
||||
extern const int IPV6_PMTUDISC_WANT;
|
||||
extern const int IPV6_RECVDSTOPTS;
|
||||
extern const int IPV6_RECVERR;
|
||||
extern const int IPV6_RECVHOPLIMIT;
|
||||
extern const int IPV6_RECVHOPOPTS;
|
||||
extern const int IPV6_RECVORIGDSTADDR;
|
||||
extern const int IPV6_RECVPATHMTU;
|
||||
extern const int IPV6_RECVPKTINFO;
|
||||
extern const int IPV6_RECVRTHDR;
|
||||
extern const int IPV6_RECVTCLASS;
|
||||
extern const int IPV6_ROUTER_ALERT;
|
||||
extern const int IPV6_RTHDR;
|
||||
extern const int IPV6_RTHDRDSTOPTS;
|
||||
extern const int IPV6_RTHDR_LOOSE;
|
||||
extern const int IPV6_RTHDR_STRICT;
|
||||
extern const int IPV6_RTHDR_TYPE_0;
|
||||
extern const int IPV6_RXDSTOPTS;
|
||||
extern const int IPV6_RXHOPOPTS;
|
||||
extern const int IPV6_TCLASS;
|
||||
extern const int IPV6_UNICAST_HOPS;
|
||||
extern const int IPV6_V6ONLY;
|
||||
extern const int IPV6_XFRM_POLICY;
|
||||
extern const int IPV6_RECVTCLASS;
|
||||
extern const int IPV6_TCLASS;
|
||||
extern const int IPV6_DONTFRAG;
|
||||
extern const int IPV6_HOPLIMIT;
|
||||
extern const int IPV6_HOPOPTS;
|
||||
extern const int IPV6_PKTINFO;
|
||||
extern const int IPV6_RECVRTHDR;
|
||||
extern const int IPV6_RTHDR;
|
||||
|
||||
#define IPV6_2292DSTOPTS IPV6_2292DSTOPTS
|
||||
#define IPV6_2292HOPLIMIT IPV6_2292HOPLIMIT
|
||||
#define IPV6_2292HOPOPTS IPV6_2292HOPOPTS
|
||||
#define IPV6_2292PKTINFO IPV6_2292PKTINFO
|
||||
#define IPV6_2292PKTOPTIONS IPV6_2292PKTOPTIONS
|
||||
#define IPV6_2292RTHDR IPV6_2292RTHDR
|
||||
#define IPV6_ADDRFORM IPV6_ADDRFORM
|
||||
#define IPV6_ADD_MEMBERSHIP IPV6_ADD_MEMBERSHIP
|
||||
#define IPV6_AUTHHDR IPV6_AUTHHDR
|
||||
#define IPV6_AUTOFLOWLABEL IPV6_AUTOFLOWLABEL
|
||||
#define IPV6_CHECKSUM IPV6_CHECKSUM
|
||||
#define IPV6_DONTFRAG IPV6_DONTFRAG
|
||||
#define IPV6_DROP_MEMBERSHIP IPV6_DROP_MEMBERSHIP
|
||||
#define IPV6_DSTOPTS IPV6_DSTOPTS
|
||||
#define IPV6_HDRINCL IPV6_HDRINCL
|
||||
#define IPV6_HOPLIMIT IPV6_HOPLIMIT
|
||||
#define IPV6_HOPOPTS IPV6_HOPOPTS
|
||||
#define IPV6_IPSEC_POLICY IPV6_IPSEC_POLICY
|
||||
#define IPV6_JOIN_ANYCAST IPV6_JOIN_ANYCAST
|
||||
#define IPV6_JOIN_GROUP IPV6_JOIN_GROUP
|
||||
#define IPV6_LEAVE_ANYCAST IPV6_LEAVE_ANYCAST
|
||||
#define IPV6_LEAVE_GROUP IPV6_LEAVE_GROUP
|
||||
#define IPV6_MINHOPCOUNT IPV6_MINHOPCOUNT
|
||||
#define IPV6_MTU IPV6_MTU
|
||||
#define IPV6_MTU_DISCOVER IPV6_MTU_DISCOVER
|
||||
#define IPV6_MULTICAST_HOPS IPV6_MULTICAST_HOPS
|
||||
#define IPV6_MULTICAST_IF IPV6_MULTICAST_IF
|
||||
#define IPV6_MULTICAST_LOOP IPV6_MULTICAST_LOOP
|
||||
#define IPV6_NEXTHOP IPV6_NEXTHOP
|
||||
#define IPV6_ORIGDSTADDR IPV6_ORIGDSTADDR
|
||||
#define IPV6_PATHMTU IPV6_PATHMTU
|
||||
#define IPV6_PKTINFO IPV6_PKTINFO
|
||||
#define IPV6_PMTUDISC_DO IPV6_PMTUDISC_DO
|
||||
#define IPV6_PMTUDISC_DONT IPV6_PMTUDISC_DONT
|
||||
#define IPV6_PMTUDISC_INTERFACE IPV6_PMTUDISC_INTERFACE
|
||||
#define IPV6_PMTUDISC_OMIT IPV6_PMTUDISC_OMIT
|
||||
#define IPV6_PMTUDISC_PROBE IPV6_PMTUDISC_PROBE
|
||||
#define IPV6_PMTUDISC_WANT IPV6_PMTUDISC_WANT
|
||||
#define IPV6_RECVDSTOPTS IPV6_RECVDSTOPTS
|
||||
#define IPV6_RECVERR IPV6_RECVERR
|
||||
#define IPV6_RECVHOPLIMIT IPV6_RECVHOPLIMIT
|
||||
#define IPV6_RECVHOPOPTS IPV6_RECVHOPOPTS
|
||||
#define IPV6_RECVORIGDSTADDR IPV6_RECVORIGDSTADDR
|
||||
#define IPV6_RECVPATHMTU IPV6_RECVPATHMTU
|
||||
#define IPV6_RECVPKTINFO IPV6_RECVPKTINFO
|
||||
#define IPV6_RECVRTHDR IPV6_RECVRTHDR
|
||||
#define IPV6_RECVTCLASS IPV6_RECVTCLASS
|
||||
#define IPV6_ROUTER_ALERT IPV6_ROUTER_ALERT
|
||||
#define IPV6_RTHDR IPV6_RTHDR
|
||||
#define IPV6_RTHDRDSTOPTS IPV6_RTHDRDSTOPTS
|
||||
#define IPV6_RTHDR_LOOSE IPV6_RTHDR_LOOSE
|
||||
#define IPV6_RTHDR_STRICT IPV6_RTHDR_STRICT
|
||||
#define IPV6_RTHDR_TYPE_0 IPV6_RTHDR_TYPE_0
|
||||
#define IPV6_RXDSTOPTS IPV6_RXDSTOPTS
|
||||
#define IPV6_RXHOPOPTS IPV6_RXHOPOPTS
|
||||
#define IPV6_TCLASS IPV6_TCLASS
|
||||
#define IPV6_UNICAST_HOPS IPV6_UNICAST_HOPS
|
||||
#define IPV6_V6ONLY IPV6_V6ONLY
|
||||
#define IPV6_XFRM_POLICY IPV6_XFRM_POLICY
|
||||
#define IPV6_V6ONLY IPV6_V6ONLY
|
||||
#define IPV6_CHECKSUM IPV6_CHECKSUM
|
||||
#define IPV6_JOIN_GROUP IPV6_JOIN_GROUP
|
||||
#define IPV6_LEAVE_GROUP IPV6_LEAVE_GROUP
|
||||
#define IPV6_MULTICAST_HOPS IPV6_MULTICAST_HOPS
|
||||
#define IPV6_MULTICAST_IF IPV6_MULTICAST_IF
|
||||
#define IPV6_MULTICAST_LOOP IPV6_MULTICAST_LOOP
|
||||
#define IPV6_UNICAST_HOPS IPV6_UNICAST_HOPS
|
||||
#define IPV6_RECVTCLASS IPV6_RECVTCLASS
|
||||
#define IPV6_TCLASS IPV6_TCLASS
|
||||
#define IPV6_DONTFRAG IPV6_DONTFRAG
|
||||
#define IPV6_HOPLIMIT IPV6_HOPLIMIT
|
||||
#define IPV6_HOPOPTS IPV6_HOPOPTS
|
||||
#define IPV6_PKTINFO IPV6_PKTINFO
|
||||
#define IPV6_RECVRTHDR IPV6_RECVRTHDR
|
||||
#define IPV6_RTHDR IPV6_RTHDR
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_IPV6_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue