cosmopolitan/libc/sysv/consts/ipproto.h
Justine Tunney afc58a8b41
Upgrade cosmopolitan gcc and binutils to 2.35.2
This change upgrades to the latest portcosmo gcc patch
6728fe1a25185560603ca312a8d4352af2a4e515 which lets us avoid needing to
define __tmpcosmo_FOO constants. We're now using an appropriate binutils
version for GCC 11. The older binutils sometimes wasn't able to print
backtraces, due to not being able to find a .debug_ranges section.

This is breaking change for /opt/cosmos libraries :'( due to this weird
"error: need linked-to section for --gc-sections" that pops up.

Please run `make clean` in the monorepo before rebuilding.
2023-06-18 00:54:14 -07:00

78 lines
2.4 KiB
C

#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_IPPROTO_H_
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_IPPROTO_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
extern const int IPPROTO_AH;
extern const int IPPROTO_BEETPH;
extern const int IPPROTO_COMP;
extern const int IPPROTO_DCCP;
extern const int IPPROTO_DSTOPTS;
extern const int IPPROTO_EGP;
extern const int IPPROTO_ENCAP;
extern const int IPPROTO_ESP;
extern const int IPPROTO_FRAGMENT;
extern const int IPPROTO_GRE;
extern const int IPPROTO_HOPOPTS;
extern const int IPPROTO_ICMP;
extern const int IPPROTO_ICMPV6;
extern const int IPPROTO_IDP;
extern const int IPPROTO_IGMP;
extern const int IPPROTO_IP;
extern const int IPPROTO_IPIP;
extern const int IPPROTO_IPV6;
extern const int IPPROTO_MAX;
extern const int IPPROTO_MH;
extern const int IPPROTO_MPLS;
extern const int IPPROTO_MTP;
extern const int IPPROTO_NONE;
extern const int IPPROTO_PIM;
extern const int IPPROTO_PUP;
extern const int IPPROTO_RAW;
extern const int IPPROTO_ROUTING;
extern const int IPPROTO_RSVP;
extern const int IPPROTO_SCTP;
extern const int IPPROTO_TCP;
extern const int IPPROTO_TP;
extern const int IPPROTO_UDP;
extern const int IPPROTO_UDPLITE;
#define IPPROTO_IP 0
#define IPPROTO_ICMP 1
#define IPPROTO_TCP 6
#define IPPROTO_UDP 17
#define IPPROTO_RAW 255
#define IPPROTO_MAX 263 /* xxx */
#define IPPROTO_AH IPPROTO_AH
#define IPPROTO_BEETPH IPPROTO_BEETPH
#define IPPROTO_COMP IPPROTO_COMP
#define IPPROTO_DCCP IPPROTO_DCCP
#define IPPROTO_DSTOPTS IPPROTO_DSTOPTS
#define IPPROTO_EGP IPPROTO_EGP
#define IPPROTO_ENCAP IPPROTO_ENCAP
#define IPPROTO_ESP IPPROTO_ESP
#define IPPROTO_FRAGMENT IPPROTO_FRAGMENT
#define IPPROTO_GRE IPPROTO_GRE
#define IPPROTO_HOPOPTS IPPROTO_HOPOPTS
#define IPPROTO_ICMPV6 IPPROTO_ICMPV6
#define IPPROTO_IDP IPPROTO_IDP
#define IPPROTO_IGMP IPPROTO_IGMP
#define IPPROTO_IPIP IPPROTO_IPIP
#define IPPROTO_IPV6 IPPROTO_IPV6
#define IPPROTO_MH IPPROTO_MH
#define IPPROTO_MPLS IPPROTO_MPLS
#define IPPROTO_MTP IPPROTO_MTP
#define IPPROTO_NONE IPPROTO_NONE
#define IPPROTO_PIM IPPROTO_PIM
#define IPPROTO_PUP IPPROTO_PUP
#define IPPROTO_ROUTING IPPROTO_ROUTING
#define IPPROTO_RSVP IPPROTO_RSVP
#define IPPROTO_SCTP IPPROTO_SCTP
#define IPPROTO_TP IPPROTO_TP
#define IPPROTO_UDPLITE IPPROTO_UDPLITE
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_IPPROTO_H_ */