From bb7942e557dfa67d7e1e707189dbd786fc3b3833 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Tue, 17 Sep 2024 01:17:07 -0700 Subject: [PATCH] Improve socket option story --- libc/fmt/magnumstrs.internal.h | 1 + libc/intrin/BUILD.mk | 2 + libc/intrin/describesockoptname.c | 8 + libc/intrin/kipoptnames.S | 11 +- libc/intrin/kipv6optnames.S | 52 +++++ libc/intrin/ksockoptnames.S | 1 + libc/sysv/consts.sh | 233 +++++++------------ libc/sysv/consts/INET6_ADDRSTRLEN.S | 2 - libc/sysv/consts/INET_ADDRSTRLEN.S | 2 - libc/sysv/consts/IPV6_2292DSTOPTS.S | 2 - libc/sysv/consts/IPV6_2292HOPLIMIT.S | 2 - libc/sysv/consts/IPV6_2292HOPOPTS.S | 2 - libc/sysv/consts/IPV6_2292PKTINFO.S | 2 - libc/sysv/consts/IPV6_2292PKTOPTIONS.S | 2 - libc/sysv/consts/IPV6_2292RTHDR.S | 2 - libc/sysv/consts/IPV6_ADDRFORM.S | 2 - libc/sysv/consts/IPV6_ADD_MEMBERSHIP.S | 2 - libc/sysv/consts/IPV6_AUTHHDR.S | 2 - libc/sysv/consts/IPV6_AUTOFLOWLABEL.S | 2 - libc/sysv/consts/IPV6_DROP_MEMBERSHIP.S | 2 - libc/sysv/consts/IPV6_DSTOPTS.S | 2 - libc/sysv/consts/IPV6_HDRINCL.S | 2 - libc/sysv/consts/IPV6_IPSEC_POLICY.S | 2 - libc/sysv/consts/IPV6_JOIN_ANYCAST.S | 2 - libc/sysv/consts/IPV6_LEAVE_ANYCAST.S | 2 - libc/sysv/consts/IPV6_MINHOPCOUNT.S | 2 - libc/sysv/consts/IPV6_MTU.S | 2 - libc/sysv/consts/IPV6_MTU_DISCOVER.S | 2 - libc/sysv/consts/IPV6_NEXTHOP.S | 2 - libc/sysv/consts/IPV6_ORIGDSTADDR.S | 2 - libc/sysv/consts/IPV6_PATHMTU.S | 2 - libc/sysv/consts/IPV6_PMTUDISC_DO.S | 2 - libc/sysv/consts/IPV6_PMTUDISC_DONT.S | 2 - libc/sysv/consts/IPV6_PMTUDISC_INTERFACE.S | 2 - libc/sysv/consts/IPV6_PMTUDISC_OMIT.S | 2 - libc/sysv/consts/IPV6_PMTUDISC_PROBE.S | 2 - libc/sysv/consts/IPV6_PMTUDISC_WANT.S | 2 - libc/sysv/consts/IPV6_RECVDSTOPTS.S | 2 - libc/sysv/consts/IPV6_RECVERR.S | 2 - libc/sysv/consts/IPV6_RECVHOPLIMIT.S | 2 - libc/sysv/consts/IPV6_RECVHOPOPTS.S | 2 - libc/sysv/consts/IPV6_RECVORIGDSTADDR.S | 2 - libc/sysv/consts/IPV6_RECVPATHMTU.S | 2 - libc/sysv/consts/IPV6_RECVPKTINFO.S | 2 - libc/sysv/consts/IPV6_ROUTER_ALERT.S | 2 - libc/sysv/consts/IPV6_RTHDR.S | 2 +- libc/sysv/consts/IPV6_RTHDRDSTOPTS.S | 2 - libc/sysv/consts/IPV6_RTHDR_LOOSE.S | 2 - libc/sysv/consts/IPV6_RTHDR_STRICT.S | 2 - libc/sysv/consts/IPV6_RTHDR_TYPE_0.S | 2 - libc/sysv/consts/IPV6_RXDSTOPTS.S | 2 - libc/sysv/consts/IPV6_RXHOPOPTS.S | 2 - libc/sysv/consts/IPV6_UNICAST_HOPS.S | 2 +- libc/sysv/consts/IPV6_XFRM_POLICY.S | 2 - libc/sysv/consts/IP_ADD_SOURCE_MEMBERSHIP.S | 2 - libc/sysv/consts/IP_BIND_ADDRESS_NO_PORT.S | 2 - libc/sysv/consts/IP_BLOCK_SOURCE.S | 2 - libc/sysv/consts/IP_CHECKSUM.S | 2 - libc/sysv/consts/IP_DEFAULT_MULTICAST_LOOP.S | 2 - libc/sysv/consts/IP_DEFAULT_MULTICAST_TTL.S | 2 - libc/sysv/consts/IP_DROP_SOURCE_MEMBERSHIP.S | 2 - libc/sysv/consts/IP_FREEBIND.S | 2 - libc/sysv/consts/IP_IPSEC_POLICY.S | 2 - libc/sysv/consts/IP_MAX_MEMBERSHIPS.S | 2 - libc/sysv/consts/IP_MINTTL.S | 2 - libc/sysv/consts/IP_MSFILTER.S | 2 - libc/sysv/consts/IP_MTU_DISCOVER.S | 2 - libc/sysv/consts/IP_MULTICAST_ALL.S | 2 - libc/sysv/consts/IP_MULTICAST_IF.S | 2 +- libc/sysv/consts/IP_NODEFRAG.S | 2 - libc/sysv/consts/IP_ORIGDSTADDR.S | 2 - libc/sysv/consts/IP_PASSSEC.S | 2 - libc/sysv/consts/IP_PKTOPTIONS.S | 2 - libc/sysv/consts/IP_PMTUDISC.S | 2 - libc/sysv/consts/IP_PMTUDISC_DO.S | 2 - libc/sysv/consts/IP_PMTUDISC_DONT.S | 2 - libc/sysv/consts/IP_PMTUDISC_INTERFACE.S | 2 - libc/sysv/consts/IP_PMTUDISC_OMIT.S | 2 - libc/sysv/consts/IP_PMTUDISC_PROBE.S | 2 - libc/sysv/consts/IP_PMTUDISC_WANT.S | 2 - libc/sysv/consts/IP_RECVDSTADDR.S | 2 - libc/sysv/consts/IP_RECVERR.S | 2 - libc/sysv/consts/IP_RECVOPTS.S | 2 - libc/sysv/consts/IP_RECVORIGDSTADDR.S | 2 - libc/sysv/consts/IP_RECVRETOPTS.S | 2 - libc/sysv/consts/IP_RETOPTS.S | 2 - libc/sysv/consts/IP_ROUTER_ALERT.S | 2 - libc/sysv/consts/IP_TRANSPARENT.S | 2 - libc/sysv/consts/IP_UNBLOCK_SOURCE.S | 2 - libc/sysv/consts/IP_UNICAST_IF.S | 2 - libc/sysv/consts/IP_XFRM_POLICY.S | 2 - libc/sysv/consts/SO_BROADCAST.S | 2 +- libc/sysv/consts/SO_DONTROUTE.S | 2 +- libc/sysv/consts/SO_LINGER.S | 2 +- libc/sysv/consts/SO_OOBINLINE.S | 2 +- libc/sysv/consts/SO_REUSEPORT.S | 2 +- libc/sysv/consts/SO_USELOOPBACK.S | 2 +- libc/sysv/consts/icmp6.h | 32 --- libc/sysv/consts/ip.h | 113 ++------- libc/sysv/consts/ipv6.h | 136 ++--------- third_party/python/Modules/socketmodule.c | 6 - 101 files changed, 208 insertions(+), 567 deletions(-) create mode 100644 libc/intrin/kipv6optnames.S delete mode 100644 libc/sysv/consts/INET6_ADDRSTRLEN.S delete mode 100644 libc/sysv/consts/INET_ADDRSTRLEN.S delete mode 100644 libc/sysv/consts/IPV6_2292DSTOPTS.S delete mode 100644 libc/sysv/consts/IPV6_2292HOPLIMIT.S delete mode 100644 libc/sysv/consts/IPV6_2292HOPOPTS.S delete mode 100644 libc/sysv/consts/IPV6_2292PKTINFO.S delete mode 100644 libc/sysv/consts/IPV6_2292PKTOPTIONS.S delete mode 100644 libc/sysv/consts/IPV6_2292RTHDR.S delete mode 100644 libc/sysv/consts/IPV6_ADDRFORM.S delete mode 100644 libc/sysv/consts/IPV6_ADD_MEMBERSHIP.S delete mode 100644 libc/sysv/consts/IPV6_AUTHHDR.S delete mode 100644 libc/sysv/consts/IPV6_AUTOFLOWLABEL.S delete mode 100644 libc/sysv/consts/IPV6_DROP_MEMBERSHIP.S delete mode 100644 libc/sysv/consts/IPV6_DSTOPTS.S delete mode 100644 libc/sysv/consts/IPV6_HDRINCL.S delete mode 100644 libc/sysv/consts/IPV6_IPSEC_POLICY.S delete mode 100644 libc/sysv/consts/IPV6_JOIN_ANYCAST.S delete mode 100644 libc/sysv/consts/IPV6_LEAVE_ANYCAST.S delete mode 100644 libc/sysv/consts/IPV6_MINHOPCOUNT.S delete mode 100644 libc/sysv/consts/IPV6_MTU.S delete mode 100644 libc/sysv/consts/IPV6_MTU_DISCOVER.S delete mode 100644 libc/sysv/consts/IPV6_NEXTHOP.S delete mode 100644 libc/sysv/consts/IPV6_ORIGDSTADDR.S delete mode 100644 libc/sysv/consts/IPV6_PATHMTU.S delete mode 100644 libc/sysv/consts/IPV6_PMTUDISC_DO.S delete mode 100644 libc/sysv/consts/IPV6_PMTUDISC_DONT.S delete mode 100644 libc/sysv/consts/IPV6_PMTUDISC_INTERFACE.S delete mode 100644 libc/sysv/consts/IPV6_PMTUDISC_OMIT.S delete mode 100644 libc/sysv/consts/IPV6_PMTUDISC_PROBE.S delete mode 100644 libc/sysv/consts/IPV6_PMTUDISC_WANT.S delete mode 100644 libc/sysv/consts/IPV6_RECVDSTOPTS.S delete mode 100644 libc/sysv/consts/IPV6_RECVERR.S delete mode 100644 libc/sysv/consts/IPV6_RECVHOPLIMIT.S delete mode 100644 libc/sysv/consts/IPV6_RECVHOPOPTS.S delete mode 100644 libc/sysv/consts/IPV6_RECVORIGDSTADDR.S delete mode 100644 libc/sysv/consts/IPV6_RECVPATHMTU.S delete mode 100644 libc/sysv/consts/IPV6_RECVPKTINFO.S delete mode 100644 libc/sysv/consts/IPV6_ROUTER_ALERT.S delete mode 100644 libc/sysv/consts/IPV6_RTHDRDSTOPTS.S delete mode 100644 libc/sysv/consts/IPV6_RTHDR_LOOSE.S delete mode 100644 libc/sysv/consts/IPV6_RTHDR_STRICT.S delete mode 100644 libc/sysv/consts/IPV6_RTHDR_TYPE_0.S delete mode 100644 libc/sysv/consts/IPV6_RXDSTOPTS.S delete mode 100644 libc/sysv/consts/IPV6_RXHOPOPTS.S delete mode 100644 libc/sysv/consts/IPV6_XFRM_POLICY.S delete mode 100644 libc/sysv/consts/IP_ADD_SOURCE_MEMBERSHIP.S delete mode 100644 libc/sysv/consts/IP_BIND_ADDRESS_NO_PORT.S delete mode 100644 libc/sysv/consts/IP_BLOCK_SOURCE.S delete mode 100644 libc/sysv/consts/IP_CHECKSUM.S delete mode 100644 libc/sysv/consts/IP_DEFAULT_MULTICAST_LOOP.S delete mode 100644 libc/sysv/consts/IP_DEFAULT_MULTICAST_TTL.S delete mode 100644 libc/sysv/consts/IP_DROP_SOURCE_MEMBERSHIP.S delete mode 100644 libc/sysv/consts/IP_FREEBIND.S delete mode 100644 libc/sysv/consts/IP_IPSEC_POLICY.S delete mode 100644 libc/sysv/consts/IP_MAX_MEMBERSHIPS.S delete mode 100644 libc/sysv/consts/IP_MINTTL.S delete mode 100644 libc/sysv/consts/IP_MSFILTER.S delete mode 100644 libc/sysv/consts/IP_MTU_DISCOVER.S delete mode 100644 libc/sysv/consts/IP_MULTICAST_ALL.S delete mode 100644 libc/sysv/consts/IP_NODEFRAG.S delete mode 100644 libc/sysv/consts/IP_ORIGDSTADDR.S delete mode 100644 libc/sysv/consts/IP_PASSSEC.S delete mode 100644 libc/sysv/consts/IP_PKTOPTIONS.S delete mode 100644 libc/sysv/consts/IP_PMTUDISC.S delete mode 100644 libc/sysv/consts/IP_PMTUDISC_DO.S delete mode 100644 libc/sysv/consts/IP_PMTUDISC_DONT.S delete mode 100644 libc/sysv/consts/IP_PMTUDISC_INTERFACE.S delete mode 100644 libc/sysv/consts/IP_PMTUDISC_OMIT.S delete mode 100644 libc/sysv/consts/IP_PMTUDISC_PROBE.S delete mode 100644 libc/sysv/consts/IP_PMTUDISC_WANT.S delete mode 100644 libc/sysv/consts/IP_RECVDSTADDR.S delete mode 100644 libc/sysv/consts/IP_RECVERR.S delete mode 100644 libc/sysv/consts/IP_RECVOPTS.S delete mode 100644 libc/sysv/consts/IP_RECVORIGDSTADDR.S delete mode 100644 libc/sysv/consts/IP_RECVRETOPTS.S delete mode 100644 libc/sysv/consts/IP_RETOPTS.S delete mode 100644 libc/sysv/consts/IP_ROUTER_ALERT.S delete mode 100644 libc/sysv/consts/IP_TRANSPARENT.S delete mode 100644 libc/sysv/consts/IP_UNBLOCK_SOURCE.S delete mode 100644 libc/sysv/consts/IP_UNICAST_IF.S delete mode 100644 libc/sysv/consts/IP_XFRM_POLICY.S diff --git a/libc/fmt/magnumstrs.internal.h b/libc/fmt/magnumstrs.internal.h index 8899b27ce..af1daba81 100644 --- a/libc/fmt/magnumstrs.internal.h +++ b/libc/fmt/magnumstrs.internal.h @@ -21,6 +21,7 @@ extern const struct MagnumStr kErrnoDocs[]; extern const struct MagnumStr kErrnoNames[]; extern const struct MagnumStr kFcntlCmds[]; extern const struct MagnumStr kIpOptnames[]; +extern const struct MagnumStr kIpv6Optnames[]; extern const struct MagnumStr kOpenFlags[]; extern const struct MagnumStr kRlimitNames[]; extern const struct MagnumStr kSignalNames[]; diff --git a/libc/intrin/BUILD.mk b/libc/intrin/BUILD.mk index 16a5526f7..abe5b17b9 100644 --- a/libc/intrin/BUILD.mk +++ b/libc/intrin/BUILD.mk @@ -125,6 +125,8 @@ o/$(MODE)/libc/intrin/kerrnodocs.o: libc/intrin/kerrnodocs.S @$(COMPILE) -AOBJECTIFY.S $(OBJECTIFY.S) $(OUTPUT_OPTION) -c $< o/$(MODE)/libc/intrin/kipoptnames.o: libc/intrin/kipoptnames.S @$(COMPILE) -AOBJECTIFY.S $(OBJECTIFY.S) $(OUTPUT_OPTION) -c $< +o/$(MODE)/libc/intrin/kipv6optnames.o: libc/intrin/kipv6optnames.S + @$(COMPILE) -AOBJECTIFY.S $(OBJECTIFY.S) $(OUTPUT_OPTION) -c $< o/$(MODE)/libc/intrin/kerrnonames.o: libc/intrin/kerrnonames.S @$(COMPILE) -AOBJECTIFY.S $(OBJECTIFY.S) $(OUTPUT_OPTION) -c $< o/$(MODE)/libc/intrin/kfcntlcmds.o: libc/intrin/kfcntlcmds.S diff --git a/libc/intrin/describesockoptname.c b/libc/intrin/describesockoptname.c index adf162606..acfe5b25d 100644 --- a/libc/intrin/describesockoptname.c +++ b/libc/intrin/describesockoptname.c @@ -49,6 +49,14 @@ const char *_DescribeSockOptname(char buf[32], int l, int x) { *p++ = '_'; *p = 0; ms = kIpOptnames; + } else if (l == SOL_IPV6) { + *p++ = 'I'; + *p++ = 'P'; + *p++ = 'V'; + *p++ = '6'; + *p++ = '_'; + *p = 0; + ms = kIpv6Optnames; } else { ms = 0; } diff --git a/libc/intrin/kipoptnames.S b/libc/intrin/kipoptnames.S index b8cd57dc3..1980cfac3 100644 --- a/libc/intrin/kipoptnames.S +++ b/libc/intrin/kipoptnames.S @@ -32,9 +32,18 @@ .underrun kIpOptnames: .e IP_TOS,"TOS" // int - .e IP_MTU,"MTU" // int .e IP_TTL,"TTL" // int + .e IP_MTU,"MTU" // int .e IP_HDRINCL,"HDRINCL" // bool32 + .e IP_OPTIONS,"OPTIONS" + .e IP_RECVTTL,"RECVTTL" + .e IP_ADD_MEMBERSHIP,"ADD_MEMBERSHIP" + .e IP_DROP_MEMBERSHIP,"DROP_MEMBERSHIP" + .e IP_MULTICAST_IF,"MULTICAST_IF" + .e IP_MULTICAST_LOOP,"MULTICAST_LOOP" + .e IP_MULTICAST_TTL,"MULTICAST_TTL" + .e IP_PKTINFO,"PKTINFO" + .e IP_RECVTOS,"RECVTOS" .long MAGNUM_TERMINATOR .endobj kIpOptnames,globl,hidden .overrun diff --git a/libc/intrin/kipv6optnames.S b/libc/intrin/kipv6optnames.S new file mode 100644 index 000000000..a3bb86a37 --- /dev/null +++ b/libc/intrin/kipv6optnames.S @@ -0,0 +1,52 @@ +/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ +│ vi: set noet ft=asm ts=8 sw=8 fenc=utf-8 :vi │ +╞══════════════════════════════════════════════════════════════════════════════╡ +│ Copyright 2021 Justine Alexandra Roberts Tunney │ +│ │ +│ Permission to use, copy, modify, and/or distribute this software for │ +│ any purpose with or without fee is hereby granted, provided that the │ +│ above copyright notice and this permission notice appear in all copies. │ +│ │ +│ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL │ +│ WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED │ +│ WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE │ +│ AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL │ +│ DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR │ +│ PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER │ +│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │ +│ PERFORMANCE OF THIS SOFTWARE. │ +╚─────────────────────────────────────────────────────────────────────────────*/ +#include "libc/fmt/magnumstrs.internal.h" +#include "libc/macros.h" + + .macro .e e s + .long \e - kIpv6Optnames + .long .L\@ - kIpv6Optnames + .rodata.str1.1 +.L\@: .string "\s" + .previous + .endm + + .section .rodata + .balign 4 + .underrun +kIpv6Optnames: + .e IPV6_V6ONLY,"V6ONLY" + .e IPV6_CHECKSUM,"CHECKSUM" + .e IPV6_JOIN_GROUP,"JOIN_GROUP" + .e IPV6_LEAVE_GROUP,"LEAVE_GROUP" + .e IPV6_MULTICAST_HOPS,"MULTICAST_HOPS" + .e IPV6_MULTICAST_IF,"MULTICAST_IF" + .e IPV6_MULTICAST_LOOP,"MULTICAST_LOOP" + .e IPV6_UNICAST_HOPS,"UNICAST_HOPS" + .e IPV6_RECVTCLASS,"RECVTCLASS" + .e IPV6_TCLASS,"TCLASS" + .e IPV6_DONTFRAG,"DONTFRAG" + .e IPV6_HOPLIMIT,"HOPLIMIT" + .e IPV6_HOPOPTS,"HOPOPTS" + .e IPV6_PKTINFO,"PKTINFO" + .e IPV6_RECVRTHDR,"RECVRTHDR" + .e IPV6_RTHDR,"RTHDR" + .long MAGNUM_TERMINATOR + .endobj kIpv6Optnames,globl,hidden + .overrun diff --git a/libc/intrin/ksockoptnames.S b/libc/intrin/ksockoptnames.S index 4ac81066c..28c62f276 100644 --- a/libc/intrin/ksockoptnames.S +++ b/libc/intrin/ksockoptnames.S @@ -47,6 +47,7 @@ kSockOptnames: .e SO_RCVLOWAT,"RCVLOWAT" // int .e SO_SNDLOWAT,"SNDLOWAT" // int .e SO_ERROR,"ERROR" // int + .e SO_OOBINLINE,"OOBINLINE" // int .long MAGNUM_TERMINATOR .endobj kSockOptnames,globl,hidden .overrun diff --git a/libc/sysv/consts.sh b/libc/sysv/consts.sh index 7093c997a..0488fbce2 100755 --- a/libc/sysv/consts.sh +++ b/libc/sysv/consts.sh @@ -651,14 +651,14 @@ syscon so SO_DEBUG 1 1 1 1 1 1 1 1 # debugging is enabled; co syscon so SO_TYPE 3 3 0x1008 0x1008 0x1008 0x1008 0x1008 0x1008 # bsd consensus syscon so SO_ERROR 4 4 0x1007 0x1007 0x1007 0x1007 0x1007 0x1007 # takes int pointer and stores/clears the pending error code; bsd consensus syscon so SO_ACCEPTCONN 30 30 2 2 2 2 2 2 # takes int pointer and stores boolean indicating if listen() was called on fd; bsd consensus -syscon so SO_REUSEPORT 15 15 0x0200 0x0200 0x0200 0x0200 0x0200 0 # bsd consensus; no windows support +syscon so SO_REUSEPORT 15 15 512 512 512 512 512 0 # bsd consensus; no windows support syscon so SO_REUSEADDR 2 2 4 4 4 4 4 -5 # SO_EXCLUSIVEADDRUSE on Windows (see third_party/python/Lib/test/support/__init__.py) syscon so SO_KEEPALIVE 9 9 8 8 8 8 8 8 # bsd consensus -syscon so SO_DONTROUTE 5 5 0x10 0x10 0x10 0x10 0x10 0x10 # bsd consensus -syscon so SO_BROADCAST 6 6 0x20 0x20 0x20 0x20 0x20 0x20 # socket is configured for broadcast messages; bsd consensus -syscon so SO_USELOOPBACK 0 0 0x40 0x40 0x40 0x40 0x40 0x40 # bsd consensus -syscon so SO_LINGER 13 13 0x1080 0x1080 0x80 0x80 0x80 0x80 # takes struct linger; causes close() return value to actually mean something; SO_LINGER_SEC on XNU; bsd consensus -syscon so SO_OOBINLINE 10 10 0x0100 0x0100 0x0100 0x0100 0x0100 0x0100 # bsd consensus +syscon so SO_DONTROUTE 5 5 16 16 16 16 16 16 # bsd consensus +syscon so SO_BROADCAST 6 6 32 32 32 32 32 32 # socket is configured for broadcast messages; bsd consensus +syscon so SO_USELOOPBACK 0 0 64 64 64 64 64 64 # bsd consensus +syscon so SO_LINGER 13 13 4224 4224 128 128 128 128 # takes struct linger; causes close() return value to actually mean something; SO_LINGER_SEC on XNU; bsd consensus +syscon so SO_OOBINLINE 10 10 256 256 256 256 256 256 # bsd consensus syscon so SO_SNDBUF 7 7 0x1001 0x1001 0x1001 0x1001 0x1001 0x1001 # bsd consensus syscon so SO_RCVBUF 8 8 0x1002 0x1002 0x1002 0x1002 0x1002 0x1002 # bsd consensus syscon so SO_RCVTIMEO 20 20 0x1006 0x1006 0x1006 0x1006 0x100c 0x1006 # recv timeout; takes struct timeval (overrides SA_RESTART restoring EINTR behavior on recv/send/connect/accept/etc.; bsd consensus) @@ -705,6 +705,79 @@ syscon tcp TCP_REPAIR_OPTIONS 22 22 0 0 0 0 0 0 # what is it syscon tcp TCP_REPAIR_QUEUE 20 20 0 0 0 0 0 0 # what is it syscon tcp TCP_THIN_LINEAR_TIMEOUTS 16 16 0 0 0 0 0 0 # what is it +# IPPROTO_IP (or SOL_IP) socket options +# +# group name GNU/Systemd GNU/Systemd (Aarch64) XNU's Not UNIX! MacOS (Arm64) FreeBSD OpenBSD NetBSD The New Technology Commentary +syscon ip IP_TOS 1 1 3 3 3 3 3 3 # bsd consensus +syscon ip IP_TTL 2 2 4 4 4 4 4 4 # bsd consensus +syscon ip IP_MTU 14 14 0 0 0 0 0 73 # bsd consensus +syscon ip IP_HDRINCL 3 3 2 2 2 2 2 2 # bsd consensus +syscon ip IP_OPTIONS 4 4 1 1 1 1 1 1 # bsd consensus +syscon ip IP_RECVTTL 12 12 24 24 65 31 23 21 +syscon ip IP_ADD_MEMBERSHIP 35 35 12 12 12 12 12 12 # bsd consensus +syscon ip IP_DROP_MEMBERSHIP 36 36 13 13 13 13 13 13 # bsd consensus +syscon ip IP_MULTICAST_IF 32 32 9 9 9 9 9 9 # bsd consensus +syscon ip IP_MULTICAST_LOOP 34 34 11 11 11 11 11 11 # bsd consensus +syscon ip IP_MULTICAST_TTL 33 33 10 10 10 10 10 10 # bsd consensus +syscon ip IP_PKTINFO 8 8 26 26 0 0 25 19 +syscon ip IP_RECVTOS 13 13 0 0 68 0 0 40 + +# IPPROTO_IPV6 (or SOL_IPV6) socket options +# +# group name GNU/Systemd GNU/Systemd (Aarch64) XNU's Not UNIX! MacOS (Arm64) FreeBSD OpenBSD NetBSD The New Technology Commentary +syscon ipv6 IPV6_V6ONLY 26 26 27 27 27 27 27 27 # bsd consensus +syscon ipv6 IPV6_CHECKSUM 7 7 26 26 26 26 26 26 # bsd consensus +syscon ipv6 IPV6_JOIN_GROUP 20 20 12 12 12 12 12 12 # bsd consensus +syscon ipv6 IPV6_LEAVE_GROUP 21 21 13 13 13 13 13 13 # bsd consensus +syscon ipv6 IPV6_MULTICAST_HOPS 18 18 10 10 10 10 10 10 # bsd consensus +syscon ipv6 IPV6_MULTICAST_IF 17 17 9 9 9 9 9 9 # bsd consensus +syscon ipv6 IPV6_MULTICAST_LOOP 19 19 11 11 11 11 11 11 # bsd consensus +syscon ipv6 IPV6_UNICAST_HOPS 16 16 4 4 4 4 4 4 # bsd consensus +syscon ipv6 IPV6_RECVTCLASS 66 66 35 35 57 57 57 40 +syscon ipv6 IPV6_TCLASS 67 67 36 36 61 61 61 39 +syscon ipv6 IPV6_DONTFRAG 62 62 0 0 62 62 62 14 +syscon ipv6 IPV6_HOPLIMIT 52 52 0 0 47 47 47 21 +syscon ipv6 IPV6_HOPOPTS 54 54 0 0 49 49 49 1 +syscon ipv6 IPV6_PKTINFO 50 50 0 0 46 46 46 19 +syscon ipv6 IPV6_RECVRTHDR 56 56 0 0 38 38 38 38 +syscon ipv6 IPV6_RTHDR 57 57 0 0 51 51 51 32 + +# IPPROTO_ICMPV6 (or SOL_ICMPV6) socket options +# +# group name GNU/Systemd GNU/Systemd (Aarch64) XNU's Not UNIX! MacOS (Arm64) FreeBSD OpenBSD NetBSD The New Technology Commentary +syscon icmp6 ICMP6_DST_UNREACH_NOROUTE 0 0 0 0 0 0 0 0 # consensus +syscon icmp6 ICMP6_PARAMPROB_HEADER 0 0 0 0 0 0 0 0 # consensus +syscon icmp6 ICMP6_TIME_EXCEED_TRANSIT 0 0 0 0 0 0 0 0 # consensus +syscon icmp6 ICMP6_DST_UNREACH_ADMIN 1 1 1 1 1 1 1 1 # consensus +syscon icmp6 ICMP6_PARAMPROB_NEXTHEADER 1 1 1 1 1 1 1 1 # consensus +syscon icmp6 ICMP6_TIME_EXCEED_REASSEMBLY 1 1 1 1 1 1 1 1 # consensus +syscon icmp6 ICMP6_DST_UNREACH 1 1 1 1 1 1 1 0 # unix consensus +syscon icmp6 ICMP6_FILTER 1 1 18 18 18 18 18 0 # bsd consensus +syscon icmp6 ICMP6_DST_UNREACH_BEYONDSCOPE 2 2 2 2 2 2 2 2 # consensus +syscon icmp6 ICMP6_PARAMPROB_OPTION 2 2 2 2 2 2 2 2 # consensus +syscon icmp6 ICMP6_PACKET_TOO_BIG 2 2 2 2 2 2 2 0 # unix consensus +syscon icmp6 ICMP6_DST_UNREACH_ADDR 3 3 3 3 3 3 3 3 # consensus +syscon icmp6 ICMP6_TIME_EXCEEDED 3 3 3 3 3 3 3 0 # unix consensus +syscon icmp6 ICMP6_DST_UNREACH_NOPORT 4 4 4 4 4 4 4 4 # consensus +syscon icmp6 ICMP6_PARAM_PROB 4 4 4 4 4 4 4 0 # unix consensus +syscon icmp6 ICMP6_RR_FLAGS_PREVDONE 8 8 8 8 8 8 8 0 # unix consensus +syscon icmp6 ICMP6_RR_FLAGS_SPECSITE 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0 # unix consensus +syscon icmp6 ICMP6_RR_PCOUSE_RAFLAGS_AUTO 0x10 0x10 0x40 0x40 0x40 0x40 0x40 0 # bsd consensus +syscon icmp6 ICMP6_RR_FLAGS_FORCEAPPLY 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0 # unix consensus +syscon icmp6 ICMP6_RR_PCOUSE_RAFLAGS_ONLINK 0x20 0x20 0x80 0x80 0x80 0x80 0x80 0 # bsd consensus +syscon icmp6 ICMP6_RR_FLAGS_REQRESULT 0x40 0x40 0x40 0x40 0x40 0x40 0x40 0 # unix consensus +syscon icmp6 ICMP6_RR_PCOUSE_FLAGS_DECRPLTIME 0x40 0x40 0x40 0x40 0x40 0x40 0x40 0 # unix consensus +syscon icmp6 ICMP6_INFOMSG_MASK 0x80 0x80 0x80 0x80 0x80 0x80 0x80 0x80 # consensus +syscon icmp6 ICMP6_ECHO_REQUEST 0x80 0x80 0x80 0x80 0x80 0x80 0x80 0 # unix consensus +syscon icmp6 ICMP6_RR_FLAGS_TEST 0x80 0x80 0x80 0x80 0x80 0x80 0x80 0 # unix consensus +syscon icmp6 ICMP6_RR_PCOUSE_FLAGS_DECRVLTIME 0x80 0x80 0x80 0x80 0x80 0x80 0x80 0 # unix consensus +syscon icmp6 ICMP6_ECHO_REPLY 129 129 129 129 129 129 129 0 # unix consensus +syscon icmp6 ICMP6_ROUTER_RENUMBERING 138 138 138 138 138 138 138 0 # unix consensus +syscon icmp6 ICMP6_RR_RESULT_FLAGS_FORBIDDEN 0x0100 0x0100 0x0100 0x0100 0x0100 0x0100 0x0100 0 # unix consensus +syscon icmp6 ICMP6_RR_RESULT_FLAGS_OOB 0x0200 0x0200 0x0200 0x0200 0x0200 0x0200 0x0200 0 # unix consensus + +syscon ipport IPPORT_USERRESERVED 5000 5000 5000 5000 5000 49151 5000 5000 + # https://blog.cloudflare.com/know-your-scm_rights/ # # group name GNU/Systemd GNU/Systemd (Aarch64) XNU's Not UNIX! MacOS (Arm64) FreeBSD OpenBSD NetBSD The New Technology Commentary @@ -715,60 +788,6 @@ syscon scm SCM_TIMESTAMPING 37 37 0 0 0 0 0 0 syscon scm SCM_TIMESTAMPNS 35 35 0 0 0 0 0 0 syscon scm SCM_WIFI_STATUS 41 41 0 0 0 0 0 0 -# group name GNU/Systemd GNU/Systemd (Aarch64) XNU's Not UNIX! MacOS (Arm64) FreeBSD OpenBSD NetBSD The New Technology Commentary -syscon ip IP_TOS 1 1 3 3 3 3 3 3 # bsd consensus -syscon ip IP_TTL 2 2 4 4 4 4 4 4 # bsd consensus -syscon ip IP_HDRINCL 3 3 2 2 2 2 2 2 # bsd consensus -syscon ip IP_DEFAULT_MULTICAST_LOOP 1 1 1 1 1 1 1 1 # consensus -syscon ip IP_DEFAULT_MULTICAST_TTL 1 1 1 1 1 1 1 1 # consensus -syscon ip IP_PMTUDISC_DONT 0 0 0 0 0 0 0 0 # consensus -syscon ip IP_MAX_MEMBERSHIPS 20 20 0x0fff 0x0fff 0x0fff 0x0fff 0x0fff 20 # bsd consensus -syscon ip IP_OPTIONS 4 4 1 1 1 1 1 1 # bsd consensus -syscon ip IP_RECVTTL 12 12 24 24 65 31 23 21 -syscon ip IP_ADD_MEMBERSHIP 35 35 12 12 12 12 12 12 # bsd consensus -syscon ip IP_DROP_MEMBERSHIP 36 36 13 13 13 13 13 13 # bsd consensus -syscon ip IP_MULTICAST_IF 0x20 0x20 9 9 9 9 9 9 # bsd consensus -syscon ip IP_MULTICAST_LOOP 34 34 11 11 11 11 11 11 # bsd consensus -syscon ip IP_MULTICAST_TTL 33 33 10 10 10 10 10 10 # bsd consensus -syscon ip IP_RECVOPTS 6 6 5 5 5 5 5 0 # bsd consensus -syscon ip IP_RECVRETOPTS 7 7 6 6 6 6 6 0 # bsd consensus -syscon ip IP_RECVDSTADDR 0 0 7 7 7 7 7 0 # bsd consensus -syscon ip IP_RETOPTS 7 7 8 8 8 8 8 0 # bsd consensus -syscon ip IP_ADD_SOURCE_MEMBERSHIP 39 39 70 70 70 0 0 15 -syscon ip IP_BLOCK_SOURCE 38 38 72 72 72 0 0 17 -syscon ip IP_DROP_SOURCE_MEMBERSHIP 40 40 71 71 71 0 0 16 -syscon ip IP_UNBLOCK_SOURCE 37 37 73 73 73 0 0 18 -syscon ip IP_IPSEC_POLICY 0x10 0x10 21 21 21 0 0 0 -syscon ip IP_MINTTL 21 21 0 0 66 32 24 0 # minimum ttl for packet or drop -syscon ip IP_MSFILTER 41 41 74 74 74 0 0 0 -syscon ip IP_PKTINFO 8 8 26 26 0 0 25 19 -syscon ip IP_RECVTOS 13 13 0 0 68 0 0 40 -syscon ip IP_MTU 14 14 0 0 0 0 0 73 # bsd consensus -syscon ip IP_MTU_DISCOVER 10 10 0 0 0 0 0 71 # bsd consensus -syscon ip IP_RECVERR 11 11 0 0 0 0 0 75 # bsd consensus -syscon ip IP_UNICAST_IF 50 50 0 0 0 0 0 31 # bsd consensus -syscon ip IP_ORIGDSTADDR 20 20 0 0 27 0 0 0 -syscon ip IP_RECVORIGDSTADDR 20 20 0 0 27 0 0 0 -syscon ip IP_BIND_ADDRESS_NO_PORT 24 24 0 0 0 0 0 0 -syscon ip IP_CHECKSUM 23 23 0 0 0 0 0 0 -syscon ip IP_FREEBIND 15 15 0 0 0 0 0 0 -syscon ip IP_MULTICAST_ALL 49 49 0 0 0 0 0 0 -syscon ip IP_NODEFRAG 22 22 0 0 0 0 0 0 -syscon ip IP_PASSSEC 18 18 0 0 0 0 0 0 -syscon ip IP_PKTOPTIONS 9 9 0 0 0 0 0 0 -syscon ip IP_PMTUDISC 10 10 0 0 0 0 0 0 -syscon ip IP_PMTUDISC_DO 2 2 0 0 0 0 0 0 -syscon ip IP_PMTUDISC_INTERFACE 4 4 0 0 0 0 0 0 -syscon ip IP_PMTUDISC_OMIT 5 5 0 0 0 0 0 0 -syscon ip IP_PMTUDISC_PROBE 3 3 0 0 0 0 0 0 -syscon ip IP_PMTUDISC_WANT 1 1 0 0 0 0 0 0 -syscon ip IP_ROUTER_ALERT 5 5 0 0 0 0 0 0 -syscon ip IP_TRANSPARENT 19 19 0 0 0 0 0 0 -syscon ip IP_XFRM_POLICY 17 17 0 0 0 0 0 0 -syscon ip INET_ADDRSTRLEN 0x10 0x10 0x10 0x10 0x10 0x10 0x10 22 # unix consensus - -syscon ipport IPPORT_USERRESERVED 5000 5000 5000 5000 5000 49151 5000 5000 - # ptrace() codes # # group name GNU/Systemd GNU/Systemd (Aarch64) XNU's Not UNIX! MacOS (Arm64) FreeBSD OpenBSD NetBSD The New Technology Commentary @@ -1944,100 +1963,6 @@ syscon junkerr EKEYREJECTED 129 129 -1 -1 -1 -1 -1 -1 syscon junkerr ERFKILL 132 132 -1 -1 -1 -1 -1 -1 syscon junkerr EHWPOISON 133 133 -1 -1 -1 -1 -1 -1 -# arpanet fork combating human-induced exhaustion of our ipv4 address space -# -# group name GNU/Systemd GNU/Systemd (Aarch64) XNU's Not UNIX! MacOS (Arm64) FreeBSD OpenBSD NetBSD The New Technology Commentary -syscon ipv6 IPV6_PMTUDISC_DONT 0 0 0 0 0 0 0 0 # consensus -syscon ipv6 IPV6_RTHDR_LOOSE 0 0 0 0 0 0 0 0 # consensus -syscon ipv6 IPV6_RTHDR_TYPE_0 0 0 0 0 0 0 0 0 # consensus -syscon ipv6 IPV6_CHECKSUM 7 7 26 26 26 26 26 26 # bsd consensus -syscon ipv6 IPV6_JOIN_GROUP 20 20 12 12 12 12 12 12 # bsd consensus -syscon ipv6 IPV6_LEAVE_GROUP 21 21 13 13 13 13 13 13 # bsd consensus -syscon ipv6 IPV6_MULTICAST_HOPS 18 18 10 10 10 10 10 10 # bsd consensus -syscon ipv6 IPV6_MULTICAST_IF 17 17 9 9 9 9 9 9 # bsd consensus -syscon ipv6 IPV6_MULTICAST_LOOP 19 19 11 11 11 11 11 11 # bsd consensus -syscon ipv6 IPV6_UNICAST_HOPS 0x10 0x10 4 4 4 4 4 4 # bsd consensus -syscon ipv6 IPV6_V6ONLY 26 26 27 27 27 27 27 27 # bsd consensus -syscon ipv6 IPV6_RECVTCLASS 66 66 35 35 57 57 57 40 -syscon ipv6 IPV6_TCLASS 67 67 36 36 61 61 61 39 -syscon ipv6 IPV6_DONTFRAG 62 62 0 0 62 62 62 14 -syscon ipv6 IPV6_HOPLIMIT 52 52 0 0 47 47 47 21 -syscon ipv6 IPV6_HOPOPTS 54 54 0 0 49 49 49 1 -syscon ipv6 IPV6_PKTINFO 50 50 0 0 46 46 46 19 -syscon ipv6 IPV6_RECVRTHDR 56 56 0 0 38 38 38 38 -syscon ipv6 IPV6_RTHDR 57 57 0 0 51 51 51 0x20 -syscon ipv6 IPV6_DSTOPTS 59 59 0 0 50 50 50 0 -syscon ipv6 IPV6_IPSEC_POLICY 34 34 28 28 28 0 0 0 -syscon ipv6 IPV6_NEXTHOP 9 9 0 0 48 48 48 0 -syscon ipv6 IPV6_PATHMTU 61 61 0 0 44 44 44 0 -syscon ipv6 IPV6_RECVDSTOPTS 58 58 0 0 40 40 40 0 -syscon ipv6 IPV6_RECVHOPLIMIT 51 51 0 0 37 37 37 0 -syscon ipv6 IPV6_RECVHOPOPTS 53 53 0 0 39 39 39 0 -syscon ipv6 IPV6_RECVPATHMTU 60 60 0 0 43 43 43 0 -syscon ipv6 IPV6_RECVPKTINFO 49 49 0 0 36 36 36 0 -syscon ipv6 IPV6_RTHDRDSTOPTS 55 55 0 0 35 35 35 0 -syscon ipv6 IPV6_RTHDR_STRICT 1 1 1 1 1 0 0 0 -syscon ipv6 IPV6_ADD_MEMBERSHIP 20 20 0 0 0 0 0 12 # bsd consensus -syscon ipv6 IPV6_DROP_MEMBERSHIP 21 21 0 0 0 0 0 13 # bsd consensus -syscon ipv6 IPV6_HDRINCL 36 36 0 0 0 0 0 2 # bsd consensus -syscon ipv6 IPV6_MTU 24 24 0 0 0 0 0 72 # bsd consensus -syscon ipv6 IPV6_MTU_DISCOVER 23 23 0 0 0 0 0 71 # bsd consensus -syscon ipv6 IPV6_RECVERR 25 25 0 0 0 0 0 75 # bsd consensus -syscon ipv6 IPV6_2292DSTOPTS 4 4 23 23 0 0 0 0 -syscon ipv6 IPV6_2292HOPLIMIT 8 8 20 20 0 0 0 0 -syscon ipv6 IPV6_2292HOPOPTS 3 3 22 22 0 0 0 0 -syscon ipv6 IPV6_2292PKTINFO 2 2 19 19 0 0 0 0 -syscon ipv6 IPV6_2292PKTOPTIONS 6 6 25 25 0 0 0 0 -syscon ipv6 IPV6_2292RTHDR 5 5 24 24 0 0 0 0 -syscon ipv6 IPV6_AUTOFLOWLABEL 0 0 0 0 59 59 59 0 -syscon ipv6 IPV6_ADDRFORM 1 1 0 0 0 0 0 0 -syscon ipv6 IPV6_AUTHHDR 10 10 0 0 0 0 0 0 -syscon ipv6 IPV6_JOIN_ANYCAST 27 27 0 0 0 0 0 0 -syscon ipv6 IPV6_LEAVE_ANYCAST 28 28 0 0 0 0 0 0 -syscon ipv6 IPV6_PMTUDISC_DO 2 2 0 0 0 0 0 0 -syscon ipv6 IPV6_PMTUDISC_INTERFACE 4 4 0 0 0 0 0 0 -syscon ipv6 IPV6_PMTUDISC_OMIT 5 5 0 0 0 0 0 0 -syscon ipv6 IPV6_PMTUDISC_PROBE 3 3 0 0 0 0 0 0 -syscon ipv6 IPV6_PMTUDISC_WANT 1 1 0 0 0 0 0 0 -syscon ipv6 IPV6_ROUTER_ALERT 22 22 0 0 0 0 0 0 -syscon ipv6 IPV6_RXDSTOPTS 59 59 0 0 0 0 0 0 -syscon ipv6 IPV6_RXHOPOPTS 54 54 0 0 0 0 0 0 -syscon ipv6 IPV6_XFRM_POLICY 35 35 0 0 0 0 0 0 -syscon ipv6 IPV6_MINHOPCOUNT 0 0 0 0 0 65 65 0 -syscon ipv6 IPV6_ORIGDSTADDR 0 0 0 0 72 0 0 0 -syscon ipv6 IPV6_RECVORIGDSTADDR 0 0 0 0 72 0 0 0 -syscon ipv6 INET6_ADDRSTRLEN 46 46 46 46 46 46 46 65 # unix consensus -syscon icmp6 ICMP6_DST_UNREACH_NOROUTE 0 0 0 0 0 0 0 0 # consensus -syscon icmp6 ICMP6_PARAMPROB_HEADER 0 0 0 0 0 0 0 0 # consensus -syscon icmp6 ICMP6_TIME_EXCEED_TRANSIT 0 0 0 0 0 0 0 0 # consensus -syscon icmp6 ICMP6_DST_UNREACH_ADMIN 1 1 1 1 1 1 1 1 # consensus -syscon icmp6 ICMP6_PARAMPROB_NEXTHEADER 1 1 1 1 1 1 1 1 # consensus -syscon icmp6 ICMP6_TIME_EXCEED_REASSEMBLY 1 1 1 1 1 1 1 1 # consensus -syscon icmp6 ICMP6_DST_UNREACH 1 1 1 1 1 1 1 0 # unix consensus -syscon icmp6 ICMP6_FILTER 1 1 18 18 18 18 18 0 # bsd consensus -syscon icmp6 ICMP6_DST_UNREACH_BEYONDSCOPE 2 2 2 2 2 2 2 2 # consensus -syscon icmp6 ICMP6_PARAMPROB_OPTION 2 2 2 2 2 2 2 2 # consensus -syscon icmp6 ICMP6_PACKET_TOO_BIG 2 2 2 2 2 2 2 0 # unix consensus -syscon icmp6 ICMP6_DST_UNREACH_ADDR 3 3 3 3 3 3 3 3 # consensus -syscon icmp6 ICMP6_TIME_EXCEEDED 3 3 3 3 3 3 3 0 # unix consensus -syscon icmp6 ICMP6_DST_UNREACH_NOPORT 4 4 4 4 4 4 4 4 # consensus -syscon icmp6 ICMP6_PARAM_PROB 4 4 4 4 4 4 4 0 # unix consensus -syscon icmp6 ICMP6_RR_FLAGS_PREVDONE 8 8 8 8 8 8 8 0 # unix consensus -syscon icmp6 ICMP6_RR_FLAGS_SPECSITE 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0 # unix consensus -syscon icmp6 ICMP6_RR_PCOUSE_RAFLAGS_AUTO 0x10 0x10 0x40 0x40 0x40 0x40 0x40 0 # bsd consensus -syscon icmp6 ICMP6_RR_FLAGS_FORCEAPPLY 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0 # unix consensus -syscon icmp6 ICMP6_RR_PCOUSE_RAFLAGS_ONLINK 0x20 0x20 0x80 0x80 0x80 0x80 0x80 0 # bsd consensus -syscon icmp6 ICMP6_RR_FLAGS_REQRESULT 0x40 0x40 0x40 0x40 0x40 0x40 0x40 0 # unix consensus -syscon icmp6 ICMP6_RR_PCOUSE_FLAGS_DECRPLTIME 0x40 0x40 0x40 0x40 0x40 0x40 0x40 0 # unix consensus -syscon icmp6 ICMP6_INFOMSG_MASK 0x80 0x80 0x80 0x80 0x80 0x80 0x80 0x80 # consensus -syscon icmp6 ICMP6_ECHO_REQUEST 0x80 0x80 0x80 0x80 0x80 0x80 0x80 0 # unix consensus -syscon icmp6 ICMP6_RR_FLAGS_TEST 0x80 0x80 0x80 0x80 0x80 0x80 0x80 0 # unix consensus -syscon icmp6 ICMP6_RR_PCOUSE_FLAGS_DECRVLTIME 0x80 0x80 0x80 0x80 0x80 0x80 0x80 0 # unix consensus -syscon icmp6 ICMP6_ECHO_REPLY 129 129 129 129 129 129 129 0 # unix consensus -syscon icmp6 ICMP6_ROUTER_RENUMBERING 138 138 138 138 138 138 138 0 # unix consensus -syscon icmp6 ICMP6_RR_RESULT_FLAGS_FORBIDDEN 0x0100 0x0100 0x0100 0x0100 0x0100 0x0100 0x0100 0 # unix consensus -syscon icmp6 ICMP6_RR_RESULT_FLAGS_OOB 0x0200 0x0200 0x0200 0x0200 0x0200 0x0200 0x0200 0 # unix consensus - syscon misc FIFOTYPE 54 54 54 54 54 54 54 0 # unix consensus syscon misc GRPQUOTA 1 1 1 1 1 1 1 0 # unix consensus syscon misc IF_NAMESIZE 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0 # unix consensus diff --git a/libc/sysv/consts/INET6_ADDRSTRLEN.S b/libc/sysv/consts/INET6_ADDRSTRLEN.S deleted file mode 100644 index df458d2b1..000000000 --- a/libc/sysv/consts/INET6_ADDRSTRLEN.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,INET6_ADDRSTRLEN,46,46,46,46,46,46,46,65 diff --git a/libc/sysv/consts/INET_ADDRSTRLEN.S b/libc/sysv/consts/INET_ADDRSTRLEN.S deleted file mode 100644 index ae2997334..000000000 --- a/libc/sysv/consts/INET_ADDRSTRLEN.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,INET_ADDRSTRLEN,0x10,0x10,0x10,0x10,0x10,0x10,0x10,22 diff --git a/libc/sysv/consts/IPV6_2292DSTOPTS.S b/libc/sysv/consts/IPV6_2292DSTOPTS.S deleted file mode 100644 index 2a6dbbf2e..000000000 --- a/libc/sysv/consts/IPV6_2292DSTOPTS.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_2292DSTOPTS,4,4,23,23,0,0,0,0 diff --git a/libc/sysv/consts/IPV6_2292HOPLIMIT.S b/libc/sysv/consts/IPV6_2292HOPLIMIT.S deleted file mode 100644 index 26e86fd91..000000000 --- a/libc/sysv/consts/IPV6_2292HOPLIMIT.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_2292HOPLIMIT,8,8,20,20,0,0,0,0 diff --git a/libc/sysv/consts/IPV6_2292HOPOPTS.S b/libc/sysv/consts/IPV6_2292HOPOPTS.S deleted file mode 100644 index e10f84c01..000000000 --- a/libc/sysv/consts/IPV6_2292HOPOPTS.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_2292HOPOPTS,3,3,22,22,0,0,0,0 diff --git a/libc/sysv/consts/IPV6_2292PKTINFO.S b/libc/sysv/consts/IPV6_2292PKTINFO.S deleted file mode 100644 index 1673a96d6..000000000 --- a/libc/sysv/consts/IPV6_2292PKTINFO.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_2292PKTINFO,2,2,19,19,0,0,0,0 diff --git a/libc/sysv/consts/IPV6_2292PKTOPTIONS.S b/libc/sysv/consts/IPV6_2292PKTOPTIONS.S deleted file mode 100644 index 069cf9603..000000000 --- a/libc/sysv/consts/IPV6_2292PKTOPTIONS.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_2292PKTOPTIONS,6,6,25,25,0,0,0,0 diff --git a/libc/sysv/consts/IPV6_2292RTHDR.S b/libc/sysv/consts/IPV6_2292RTHDR.S deleted file mode 100644 index 1fa611ef1..000000000 --- a/libc/sysv/consts/IPV6_2292RTHDR.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_2292RTHDR,5,5,24,24,0,0,0,0 diff --git a/libc/sysv/consts/IPV6_ADDRFORM.S b/libc/sysv/consts/IPV6_ADDRFORM.S deleted file mode 100644 index dd171ca8f..000000000 --- a/libc/sysv/consts/IPV6_ADDRFORM.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_ADDRFORM,1,1,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IPV6_ADD_MEMBERSHIP.S b/libc/sysv/consts/IPV6_ADD_MEMBERSHIP.S deleted file mode 100644 index d65647e8b..000000000 --- a/libc/sysv/consts/IPV6_ADD_MEMBERSHIP.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_ADD_MEMBERSHIP,20,20,0,0,0,0,0,12 diff --git a/libc/sysv/consts/IPV6_AUTHHDR.S b/libc/sysv/consts/IPV6_AUTHHDR.S deleted file mode 100644 index 8e9919123..000000000 --- a/libc/sysv/consts/IPV6_AUTHHDR.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_AUTHHDR,10,10,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IPV6_AUTOFLOWLABEL.S b/libc/sysv/consts/IPV6_AUTOFLOWLABEL.S deleted file mode 100644 index d086a55b7..000000000 --- a/libc/sysv/consts/IPV6_AUTOFLOWLABEL.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_AUTOFLOWLABEL,0,0,0,0,59,59,59,0 diff --git a/libc/sysv/consts/IPV6_DROP_MEMBERSHIP.S b/libc/sysv/consts/IPV6_DROP_MEMBERSHIP.S deleted file mode 100644 index 3cc6ff63b..000000000 --- a/libc/sysv/consts/IPV6_DROP_MEMBERSHIP.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_DROP_MEMBERSHIP,21,21,0,0,0,0,0,13 diff --git a/libc/sysv/consts/IPV6_DSTOPTS.S b/libc/sysv/consts/IPV6_DSTOPTS.S deleted file mode 100644 index 6ca099353..000000000 --- a/libc/sysv/consts/IPV6_DSTOPTS.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_DSTOPTS,59,59,0,0,50,50,50,0 diff --git a/libc/sysv/consts/IPV6_HDRINCL.S b/libc/sysv/consts/IPV6_HDRINCL.S deleted file mode 100644 index a2efd7c08..000000000 --- a/libc/sysv/consts/IPV6_HDRINCL.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_HDRINCL,36,36,0,0,0,0,0,2 diff --git a/libc/sysv/consts/IPV6_IPSEC_POLICY.S b/libc/sysv/consts/IPV6_IPSEC_POLICY.S deleted file mode 100644 index d02507ea3..000000000 --- a/libc/sysv/consts/IPV6_IPSEC_POLICY.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_IPSEC_POLICY,34,34,28,28,28,0,0,0 diff --git a/libc/sysv/consts/IPV6_JOIN_ANYCAST.S b/libc/sysv/consts/IPV6_JOIN_ANYCAST.S deleted file mode 100644 index 7dc3a28cd..000000000 --- a/libc/sysv/consts/IPV6_JOIN_ANYCAST.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_JOIN_ANYCAST,27,27,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IPV6_LEAVE_ANYCAST.S b/libc/sysv/consts/IPV6_LEAVE_ANYCAST.S deleted file mode 100644 index 59bfa4c19..000000000 --- a/libc/sysv/consts/IPV6_LEAVE_ANYCAST.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_LEAVE_ANYCAST,28,28,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IPV6_MINHOPCOUNT.S b/libc/sysv/consts/IPV6_MINHOPCOUNT.S deleted file mode 100644 index 7cc084a51..000000000 --- a/libc/sysv/consts/IPV6_MINHOPCOUNT.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_MINHOPCOUNT,0,0,0,0,0,65,65,0 diff --git a/libc/sysv/consts/IPV6_MTU.S b/libc/sysv/consts/IPV6_MTU.S deleted file mode 100644 index 17264a0f5..000000000 --- a/libc/sysv/consts/IPV6_MTU.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_MTU,24,24,0,0,0,0,0,72 diff --git a/libc/sysv/consts/IPV6_MTU_DISCOVER.S b/libc/sysv/consts/IPV6_MTU_DISCOVER.S deleted file mode 100644 index c2bb09127..000000000 --- a/libc/sysv/consts/IPV6_MTU_DISCOVER.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_MTU_DISCOVER,23,23,0,0,0,0,0,71 diff --git a/libc/sysv/consts/IPV6_NEXTHOP.S b/libc/sysv/consts/IPV6_NEXTHOP.S deleted file mode 100644 index 66707028f..000000000 --- a/libc/sysv/consts/IPV6_NEXTHOP.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_NEXTHOP,9,9,0,0,48,48,48,0 diff --git a/libc/sysv/consts/IPV6_ORIGDSTADDR.S b/libc/sysv/consts/IPV6_ORIGDSTADDR.S deleted file mode 100644 index d4b63d6fb..000000000 --- a/libc/sysv/consts/IPV6_ORIGDSTADDR.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_ORIGDSTADDR,0,0,0,0,72,0,0,0 diff --git a/libc/sysv/consts/IPV6_PATHMTU.S b/libc/sysv/consts/IPV6_PATHMTU.S deleted file mode 100644 index 451946e08..000000000 --- a/libc/sysv/consts/IPV6_PATHMTU.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_PATHMTU,61,61,0,0,44,44,44,0 diff --git a/libc/sysv/consts/IPV6_PMTUDISC_DO.S b/libc/sysv/consts/IPV6_PMTUDISC_DO.S deleted file mode 100644 index 01bec78bd..000000000 --- a/libc/sysv/consts/IPV6_PMTUDISC_DO.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_PMTUDISC_DO,2,2,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IPV6_PMTUDISC_DONT.S b/libc/sysv/consts/IPV6_PMTUDISC_DONT.S deleted file mode 100644 index f9463aa4c..000000000 --- a/libc/sysv/consts/IPV6_PMTUDISC_DONT.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_PMTUDISC_DONT,0,0,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IPV6_PMTUDISC_INTERFACE.S b/libc/sysv/consts/IPV6_PMTUDISC_INTERFACE.S deleted file mode 100644 index cd2a558a8..000000000 --- a/libc/sysv/consts/IPV6_PMTUDISC_INTERFACE.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_PMTUDISC_INTERFACE,4,4,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IPV6_PMTUDISC_OMIT.S b/libc/sysv/consts/IPV6_PMTUDISC_OMIT.S deleted file mode 100644 index 99d88d940..000000000 --- a/libc/sysv/consts/IPV6_PMTUDISC_OMIT.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_PMTUDISC_OMIT,5,5,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IPV6_PMTUDISC_PROBE.S b/libc/sysv/consts/IPV6_PMTUDISC_PROBE.S deleted file mode 100644 index ab10f54f4..000000000 --- a/libc/sysv/consts/IPV6_PMTUDISC_PROBE.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_PMTUDISC_PROBE,3,3,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IPV6_PMTUDISC_WANT.S b/libc/sysv/consts/IPV6_PMTUDISC_WANT.S deleted file mode 100644 index e9bf56f99..000000000 --- a/libc/sysv/consts/IPV6_PMTUDISC_WANT.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_PMTUDISC_WANT,1,1,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IPV6_RECVDSTOPTS.S b/libc/sysv/consts/IPV6_RECVDSTOPTS.S deleted file mode 100644 index cd0aa3257..000000000 --- a/libc/sysv/consts/IPV6_RECVDSTOPTS.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_RECVDSTOPTS,58,58,0,0,40,40,40,0 diff --git a/libc/sysv/consts/IPV6_RECVERR.S b/libc/sysv/consts/IPV6_RECVERR.S deleted file mode 100644 index 1c36df28f..000000000 --- a/libc/sysv/consts/IPV6_RECVERR.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_RECVERR,25,25,0,0,0,0,0,75 diff --git a/libc/sysv/consts/IPV6_RECVHOPLIMIT.S b/libc/sysv/consts/IPV6_RECVHOPLIMIT.S deleted file mode 100644 index 2e7b97112..000000000 --- a/libc/sysv/consts/IPV6_RECVHOPLIMIT.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_RECVHOPLIMIT,51,51,0,0,37,37,37,0 diff --git a/libc/sysv/consts/IPV6_RECVHOPOPTS.S b/libc/sysv/consts/IPV6_RECVHOPOPTS.S deleted file mode 100644 index d2bb20708..000000000 --- a/libc/sysv/consts/IPV6_RECVHOPOPTS.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_RECVHOPOPTS,53,53,0,0,39,39,39,0 diff --git a/libc/sysv/consts/IPV6_RECVORIGDSTADDR.S b/libc/sysv/consts/IPV6_RECVORIGDSTADDR.S deleted file mode 100644 index c4e179301..000000000 --- a/libc/sysv/consts/IPV6_RECVORIGDSTADDR.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_RECVORIGDSTADDR,0,0,0,0,72,0,0,0 diff --git a/libc/sysv/consts/IPV6_RECVPATHMTU.S b/libc/sysv/consts/IPV6_RECVPATHMTU.S deleted file mode 100644 index 4a8fdc77d..000000000 --- a/libc/sysv/consts/IPV6_RECVPATHMTU.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_RECVPATHMTU,60,60,0,0,43,43,43,0 diff --git a/libc/sysv/consts/IPV6_RECVPKTINFO.S b/libc/sysv/consts/IPV6_RECVPKTINFO.S deleted file mode 100644 index 49141d5f1..000000000 --- a/libc/sysv/consts/IPV6_RECVPKTINFO.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_RECVPKTINFO,49,49,0,0,36,36,36,0 diff --git a/libc/sysv/consts/IPV6_ROUTER_ALERT.S b/libc/sysv/consts/IPV6_ROUTER_ALERT.S deleted file mode 100644 index ea8557cd9..000000000 --- a/libc/sysv/consts/IPV6_ROUTER_ALERT.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_ROUTER_ALERT,22,22,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IPV6_RTHDR.S b/libc/sysv/consts/IPV6_RTHDR.S index 7e464ebd8..eddbf9ed8 100644 --- a/libc/sysv/consts/IPV6_RTHDR.S +++ b/libc/sysv/consts/IPV6_RTHDR.S @@ -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 diff --git a/libc/sysv/consts/IPV6_RTHDRDSTOPTS.S b/libc/sysv/consts/IPV6_RTHDRDSTOPTS.S deleted file mode 100644 index 1df68a921..000000000 --- a/libc/sysv/consts/IPV6_RTHDRDSTOPTS.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_RTHDRDSTOPTS,55,55,0,0,35,35,35,0 diff --git a/libc/sysv/consts/IPV6_RTHDR_LOOSE.S b/libc/sysv/consts/IPV6_RTHDR_LOOSE.S deleted file mode 100644 index a61ea0a6e..000000000 --- a/libc/sysv/consts/IPV6_RTHDR_LOOSE.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_RTHDR_LOOSE,0,0,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IPV6_RTHDR_STRICT.S b/libc/sysv/consts/IPV6_RTHDR_STRICT.S deleted file mode 100644 index 52e7e5561..000000000 --- a/libc/sysv/consts/IPV6_RTHDR_STRICT.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_RTHDR_STRICT,1,1,1,1,1,0,0,0 diff --git a/libc/sysv/consts/IPV6_RTHDR_TYPE_0.S b/libc/sysv/consts/IPV6_RTHDR_TYPE_0.S deleted file mode 100644 index 79bbce89d..000000000 --- a/libc/sysv/consts/IPV6_RTHDR_TYPE_0.S +++ /dev/null @@ -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 diff --git a/libc/sysv/consts/IPV6_RXDSTOPTS.S b/libc/sysv/consts/IPV6_RXDSTOPTS.S deleted file mode 100644 index 81f8647a3..000000000 --- a/libc/sysv/consts/IPV6_RXDSTOPTS.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_RXDSTOPTS,59,59,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IPV6_RXHOPOPTS.S b/libc/sysv/consts/IPV6_RXHOPOPTS.S deleted file mode 100644 index a5a089d0f..000000000 --- a/libc/sysv/consts/IPV6_RXHOPOPTS.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_RXHOPOPTS,54,54,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IPV6_UNICAST_HOPS.S b/libc/sysv/consts/IPV6_UNICAST_HOPS.S index dd3c23fbe..40a3a4686 100644 --- a/libc/sysv/consts/IPV6_UNICAST_HOPS.S +++ b/libc/sysv/consts/IPV6_UNICAST_HOPS.S @@ -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 diff --git a/libc/sysv/consts/IPV6_XFRM_POLICY.S b/libc/sysv/consts/IPV6_XFRM_POLICY.S deleted file mode 100644 index bf31a4bd6..000000000 --- a/libc/sysv/consts/IPV6_XFRM_POLICY.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ipv6,IPV6_XFRM_POLICY,35,35,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IP_ADD_SOURCE_MEMBERSHIP.S b/libc/sysv/consts/IP_ADD_SOURCE_MEMBERSHIP.S deleted file mode 100644 index fc8e01943..000000000 --- a/libc/sysv/consts/IP_ADD_SOURCE_MEMBERSHIP.S +++ /dev/null @@ -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 diff --git a/libc/sysv/consts/IP_BIND_ADDRESS_NO_PORT.S b/libc/sysv/consts/IP_BIND_ADDRESS_NO_PORT.S deleted file mode 100644 index ac616ee14..000000000 --- a/libc/sysv/consts/IP_BIND_ADDRESS_NO_PORT.S +++ /dev/null @@ -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 diff --git a/libc/sysv/consts/IP_BLOCK_SOURCE.S b/libc/sysv/consts/IP_BLOCK_SOURCE.S deleted file mode 100644 index 3a00c226f..000000000 --- a/libc/sysv/consts/IP_BLOCK_SOURCE.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_BLOCK_SOURCE,38,38,72,72,72,0,0,17 diff --git a/libc/sysv/consts/IP_CHECKSUM.S b/libc/sysv/consts/IP_CHECKSUM.S deleted file mode 100644 index 3e1cb4251..000000000 --- a/libc/sysv/consts/IP_CHECKSUM.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_CHECKSUM,23,23,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IP_DEFAULT_MULTICAST_LOOP.S b/libc/sysv/consts/IP_DEFAULT_MULTICAST_LOOP.S deleted file mode 100644 index 7bc60ef5d..000000000 --- a/libc/sysv/consts/IP_DEFAULT_MULTICAST_LOOP.S +++ /dev/null @@ -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 diff --git a/libc/sysv/consts/IP_DEFAULT_MULTICAST_TTL.S b/libc/sysv/consts/IP_DEFAULT_MULTICAST_TTL.S deleted file mode 100644 index 2685d71c8..000000000 --- a/libc/sysv/consts/IP_DEFAULT_MULTICAST_TTL.S +++ /dev/null @@ -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 diff --git a/libc/sysv/consts/IP_DROP_SOURCE_MEMBERSHIP.S b/libc/sysv/consts/IP_DROP_SOURCE_MEMBERSHIP.S deleted file mode 100644 index 9e070555d..000000000 --- a/libc/sysv/consts/IP_DROP_SOURCE_MEMBERSHIP.S +++ /dev/null @@ -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 diff --git a/libc/sysv/consts/IP_FREEBIND.S b/libc/sysv/consts/IP_FREEBIND.S deleted file mode 100644 index db3eb4129..000000000 --- a/libc/sysv/consts/IP_FREEBIND.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_FREEBIND,15,15,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IP_IPSEC_POLICY.S b/libc/sysv/consts/IP_IPSEC_POLICY.S deleted file mode 100644 index d5b73607d..000000000 --- a/libc/sysv/consts/IP_IPSEC_POLICY.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_IPSEC_POLICY,0x10,0x10,21,21,21,0,0,0 diff --git a/libc/sysv/consts/IP_MAX_MEMBERSHIPS.S b/libc/sysv/consts/IP_MAX_MEMBERSHIPS.S deleted file mode 100644 index 648c49960..000000000 --- a/libc/sysv/consts/IP_MAX_MEMBERSHIPS.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_MAX_MEMBERSHIPS,20,20,0x0fff,0x0fff,0x0fff,0x0fff,0x0fff,20 diff --git a/libc/sysv/consts/IP_MINTTL.S b/libc/sysv/consts/IP_MINTTL.S deleted file mode 100644 index 5295aa259..000000000 --- a/libc/sysv/consts/IP_MINTTL.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_MINTTL,21,21,0,0,66,32,24,0 diff --git a/libc/sysv/consts/IP_MSFILTER.S b/libc/sysv/consts/IP_MSFILTER.S deleted file mode 100644 index 07628afaa..000000000 --- a/libc/sysv/consts/IP_MSFILTER.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_MSFILTER,41,41,74,74,74,0,0,0 diff --git a/libc/sysv/consts/IP_MTU_DISCOVER.S b/libc/sysv/consts/IP_MTU_DISCOVER.S deleted file mode 100644 index b86381b44..000000000 --- a/libc/sysv/consts/IP_MTU_DISCOVER.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_MTU_DISCOVER,10,10,0,0,0,0,0,71 diff --git a/libc/sysv/consts/IP_MULTICAST_ALL.S b/libc/sysv/consts/IP_MULTICAST_ALL.S deleted file mode 100644 index 58533ee80..000000000 --- a/libc/sysv/consts/IP_MULTICAST_ALL.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_MULTICAST_ALL,49,49,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IP_MULTICAST_IF.S b/libc/sysv/consts/IP_MULTICAST_IF.S index d1cdf8a7d..1e2e5e93c 100644 --- a/libc/sysv/consts/IP_MULTICAST_IF.S +++ b/libc/sysv/consts/IP_MULTICAST_IF.S @@ -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 diff --git a/libc/sysv/consts/IP_NODEFRAG.S b/libc/sysv/consts/IP_NODEFRAG.S deleted file mode 100644 index c70a3ba11..000000000 --- a/libc/sysv/consts/IP_NODEFRAG.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_NODEFRAG,22,22,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IP_ORIGDSTADDR.S b/libc/sysv/consts/IP_ORIGDSTADDR.S deleted file mode 100644 index 60293c97a..000000000 --- a/libc/sysv/consts/IP_ORIGDSTADDR.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_ORIGDSTADDR,20,20,0,0,27,0,0,0 diff --git a/libc/sysv/consts/IP_PASSSEC.S b/libc/sysv/consts/IP_PASSSEC.S deleted file mode 100644 index baa3afcfe..000000000 --- a/libc/sysv/consts/IP_PASSSEC.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_PASSSEC,18,18,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IP_PKTOPTIONS.S b/libc/sysv/consts/IP_PKTOPTIONS.S deleted file mode 100644 index fdeefe4d6..000000000 --- a/libc/sysv/consts/IP_PKTOPTIONS.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_PKTOPTIONS,9,9,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IP_PMTUDISC.S b/libc/sysv/consts/IP_PMTUDISC.S deleted file mode 100644 index f96b04640..000000000 --- a/libc/sysv/consts/IP_PMTUDISC.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_PMTUDISC,10,10,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IP_PMTUDISC_DO.S b/libc/sysv/consts/IP_PMTUDISC_DO.S deleted file mode 100644 index 1dfb7eff0..000000000 --- a/libc/sysv/consts/IP_PMTUDISC_DO.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_PMTUDISC_DO,2,2,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IP_PMTUDISC_DONT.S b/libc/sysv/consts/IP_PMTUDISC_DONT.S deleted file mode 100644 index 2eca2c25f..000000000 --- a/libc/sysv/consts/IP_PMTUDISC_DONT.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_PMTUDISC_DONT,0,0,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IP_PMTUDISC_INTERFACE.S b/libc/sysv/consts/IP_PMTUDISC_INTERFACE.S deleted file mode 100644 index bf21b44ec..000000000 --- a/libc/sysv/consts/IP_PMTUDISC_INTERFACE.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_PMTUDISC_INTERFACE,4,4,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IP_PMTUDISC_OMIT.S b/libc/sysv/consts/IP_PMTUDISC_OMIT.S deleted file mode 100644 index 737719692..000000000 --- a/libc/sysv/consts/IP_PMTUDISC_OMIT.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_PMTUDISC_OMIT,5,5,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IP_PMTUDISC_PROBE.S b/libc/sysv/consts/IP_PMTUDISC_PROBE.S deleted file mode 100644 index a8f3d6963..000000000 --- a/libc/sysv/consts/IP_PMTUDISC_PROBE.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_PMTUDISC_PROBE,3,3,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IP_PMTUDISC_WANT.S b/libc/sysv/consts/IP_PMTUDISC_WANT.S deleted file mode 100644 index 6e6a2a910..000000000 --- a/libc/sysv/consts/IP_PMTUDISC_WANT.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_PMTUDISC_WANT,1,1,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IP_RECVDSTADDR.S b/libc/sysv/consts/IP_RECVDSTADDR.S deleted file mode 100644 index f2c5257ba..000000000 --- a/libc/sysv/consts/IP_RECVDSTADDR.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_RECVDSTADDR,0,0,7,7,7,7,7,0 diff --git a/libc/sysv/consts/IP_RECVERR.S b/libc/sysv/consts/IP_RECVERR.S deleted file mode 100644 index 0e861735a..000000000 --- a/libc/sysv/consts/IP_RECVERR.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_RECVERR,11,11,0,0,0,0,0,75 diff --git a/libc/sysv/consts/IP_RECVOPTS.S b/libc/sysv/consts/IP_RECVOPTS.S deleted file mode 100644 index 76f152929..000000000 --- a/libc/sysv/consts/IP_RECVOPTS.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_RECVOPTS,6,6,5,5,5,5,5,0 diff --git a/libc/sysv/consts/IP_RECVORIGDSTADDR.S b/libc/sysv/consts/IP_RECVORIGDSTADDR.S deleted file mode 100644 index ebcad0265..000000000 --- a/libc/sysv/consts/IP_RECVORIGDSTADDR.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_RECVORIGDSTADDR,20,20,0,0,27,0,0,0 diff --git a/libc/sysv/consts/IP_RECVRETOPTS.S b/libc/sysv/consts/IP_RECVRETOPTS.S deleted file mode 100644 index 2eb706438..000000000 --- a/libc/sysv/consts/IP_RECVRETOPTS.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_RECVRETOPTS,7,7,6,6,6,6,6,0 diff --git a/libc/sysv/consts/IP_RETOPTS.S b/libc/sysv/consts/IP_RETOPTS.S deleted file mode 100644 index 8056e7551..000000000 --- a/libc/sysv/consts/IP_RETOPTS.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_RETOPTS,7,7,8,8,8,8,8,0 diff --git a/libc/sysv/consts/IP_ROUTER_ALERT.S b/libc/sysv/consts/IP_ROUTER_ALERT.S deleted file mode 100644 index f4306aef7..000000000 --- a/libc/sysv/consts/IP_ROUTER_ALERT.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_ROUTER_ALERT,5,5,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IP_TRANSPARENT.S b/libc/sysv/consts/IP_TRANSPARENT.S deleted file mode 100644 index 9dab2efa4..000000000 --- a/libc/sysv/consts/IP_TRANSPARENT.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_TRANSPARENT,19,19,0,0,0,0,0,0 diff --git a/libc/sysv/consts/IP_UNBLOCK_SOURCE.S b/libc/sysv/consts/IP_UNBLOCK_SOURCE.S deleted file mode 100644 index c33465f09..000000000 --- a/libc/sysv/consts/IP_UNBLOCK_SOURCE.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_UNBLOCK_SOURCE,37,37,73,73,73,0,0,18 diff --git a/libc/sysv/consts/IP_UNICAST_IF.S b/libc/sysv/consts/IP_UNICAST_IF.S deleted file mode 100644 index 8e6ffbb85..000000000 --- a/libc/sysv/consts/IP_UNICAST_IF.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_UNICAST_IF,50,50,0,0,0,0,0,31 diff --git a/libc/sysv/consts/IP_XFRM_POLICY.S b/libc/sysv/consts/IP_XFRM_POLICY.S deleted file mode 100644 index c5ac226bc..000000000 --- a/libc/sysv/consts/IP_XFRM_POLICY.S +++ /dev/null @@ -1,2 +0,0 @@ -#include "libc/sysv/consts/syscon.internal.h" -.syscon ip,IP_XFRM_POLICY,17,17,0,0,0,0,0,0 diff --git a/libc/sysv/consts/SO_BROADCAST.S b/libc/sysv/consts/SO_BROADCAST.S index 47cf8c307..7b8652b81 100644 --- a/libc/sysv/consts/SO_BROADCAST.S +++ b/libc/sysv/consts/SO_BROADCAST.S @@ -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 diff --git a/libc/sysv/consts/SO_DONTROUTE.S b/libc/sysv/consts/SO_DONTROUTE.S index 0b29ceb10..4bd9d3746 100644 --- a/libc/sysv/consts/SO_DONTROUTE.S +++ b/libc/sysv/consts/SO_DONTROUTE.S @@ -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 diff --git a/libc/sysv/consts/SO_LINGER.S b/libc/sysv/consts/SO_LINGER.S index 6b40dbf92..f839d09e0 100644 --- a/libc/sysv/consts/SO_LINGER.S +++ b/libc/sysv/consts/SO_LINGER.S @@ -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 diff --git a/libc/sysv/consts/SO_OOBINLINE.S b/libc/sysv/consts/SO_OOBINLINE.S index b7fa38130..0d3690b39 100644 --- a/libc/sysv/consts/SO_OOBINLINE.S +++ b/libc/sysv/consts/SO_OOBINLINE.S @@ -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 diff --git a/libc/sysv/consts/SO_REUSEPORT.S b/libc/sysv/consts/SO_REUSEPORT.S index c1b3e8dd0..ea4cdc97d 100644 --- a/libc/sysv/consts/SO_REUSEPORT.S +++ b/libc/sysv/consts/SO_REUSEPORT.S @@ -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 diff --git a/libc/sysv/consts/SO_USELOOPBACK.S b/libc/sysv/consts/SO_USELOOPBACK.S index c9b46d3f7..6b58c7841 100644 --- a/libc/sysv/consts/SO_USELOOPBACK.S +++ b/libc/sysv/consts/SO_USELOOPBACK.S @@ -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 diff --git a/libc/sysv/consts/icmp6.h b/libc/sysv/consts/icmp6.h index 43ce452b8..56a63774e 100644 --- a/libc/sysv/consts/icmp6.h +++ b/libc/sysv/consts/icmp6.h @@ -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; diff --git a/libc/sysv/consts/ip.h b/libc/sysv/consts/ip.h index 3d3c82b08..68c4d8b3f 100644 --- a/libc/sysv/consts/ip.h +++ b/libc/sysv/consts/ip.h @@ -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_ */ diff --git a/libc/sysv/consts/ipv6.h b/libc/sysv/consts/ipv6.h index 4e5c5471c..febc3389b 100644 --- a/libc/sysv/consts/ipv6.h +++ b/libc/sysv/consts/ipv6.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_ */ diff --git a/third_party/python/Modules/socketmodule.c b/third_party/python/Modules/socketmodule.c index 9f3db9bb4..03680235b 100644 --- a/third_party/python/Modules/socketmodule.c +++ b/third_party/python/Modules/socketmodule.c @@ -7015,12 +7015,6 @@ PyInit__socket(void) PyModule_AddIntMacro(m, IP_MULTICAST_LOOP); PyModule_AddIntMacro(m, IP_DEFAULT_MULTICAST_TTL); PyModule_AddIntMacro(m, IP_DEFAULT_MULTICAST_LOOP); - PyModule_AddIntMacro(m, IP_MAX_MEMBERSHIPS); - if (IP_RECVOPTS) PyModule_AddIntMacro(m, IP_RECVOPTS); - if (IP_RECVRETOPTS) PyModule_AddIntMacro(m, IP_RECVRETOPTS); - if (IP_RECVDSTADDR) PyModule_AddIntMacro(m, IP_RECVDSTADDR); - if (IP_RETOPTS) PyModule_AddIntMacro(m, IP_RETOPTS); - if (IP_TRANSPARENT) PyModule_AddIntMacro(m, IP_TRANSPARENT); #ifdef ENABLE_IPV6 /* IPv6 [gs]etsockopt options, defined in RFC2553 */