| 1 | # Generated by h2py from /usr/include/netinet/in.h
|
|---|
| 2 |
|
|---|
| 3 | # Included from sys/cdefs.h
|
|---|
| 4 | def __P(protos): return protos
|
|---|
| 5 |
|
|---|
| 6 | def __STRING(x): return #x
|
|---|
| 7 |
|
|---|
| 8 | def __XSTRING(x): return __STRING(x)
|
|---|
| 9 |
|
|---|
| 10 | def __P(protos): return ()
|
|---|
| 11 |
|
|---|
| 12 | def __STRING(x): return "x"
|
|---|
| 13 |
|
|---|
| 14 | def __aligned(x): return __attribute__((__aligned__(x)))
|
|---|
| 15 |
|
|---|
| 16 | def __section(x): return __attribute__((__section__(x)))
|
|---|
| 17 |
|
|---|
| 18 | def __aligned(x): return __attribute__((__aligned__(x)))
|
|---|
| 19 |
|
|---|
| 20 | def __section(x): return __attribute__((__section__(x)))
|
|---|
| 21 |
|
|---|
| 22 | def __nonnull(x): return __attribute__((__nonnull__(x)))
|
|---|
| 23 |
|
|---|
| 24 | def __predict_true(exp): return __builtin_expect((exp), 1)
|
|---|
| 25 |
|
|---|
| 26 | def __predict_false(exp): return __builtin_expect((exp), 0)
|
|---|
| 27 |
|
|---|
| 28 | def __predict_true(exp): return (exp)
|
|---|
| 29 |
|
|---|
| 30 | def __predict_false(exp): return (exp)
|
|---|
| 31 |
|
|---|
| 32 | def __FBSDID(s): return __IDSTRING(__CONCAT(__rcsid_,__LINE__),s)
|
|---|
| 33 |
|
|---|
| 34 | def __RCSID(s): return __IDSTRING(__CONCAT(__rcsid_,__LINE__),s)
|
|---|
| 35 |
|
|---|
| 36 | def __RCSID_SOURCE(s): return __IDSTRING(__CONCAT(__rcsid_source_,__LINE__),s)
|
|---|
| 37 |
|
|---|
| 38 | def __SCCSID(s): return __IDSTRING(__CONCAT(__sccsid_,__LINE__),s)
|
|---|
| 39 |
|
|---|
| 40 | def __COPYRIGHT(s): return __IDSTRING(__CONCAT(__copyright_,__LINE__),s)
|
|---|
| 41 |
|
|---|
| 42 | _POSIX_C_SOURCE = 199009
|
|---|
| 43 | _POSIX_C_SOURCE = 199209
|
|---|
| 44 | __XSI_VISIBLE = 600
|
|---|
| 45 | _POSIX_C_SOURCE = 200112
|
|---|
| 46 | __XSI_VISIBLE = 500
|
|---|
| 47 | _POSIX_C_SOURCE = 199506
|
|---|
| 48 | _POSIX_C_SOURCE = 198808
|
|---|
| 49 | __POSIX_VISIBLE = 200112
|
|---|
| 50 | __ISO_C_VISIBLE = 1999
|
|---|
| 51 | __POSIX_VISIBLE = 199506
|
|---|
| 52 | __ISO_C_VISIBLE = 1990
|
|---|
| 53 | __POSIX_VISIBLE = 199309
|
|---|
| 54 | __ISO_C_VISIBLE = 1990
|
|---|
| 55 | __POSIX_VISIBLE = 199209
|
|---|
| 56 | __ISO_C_VISIBLE = 1990
|
|---|
| 57 | __POSIX_VISIBLE = 199009
|
|---|
| 58 | __ISO_C_VISIBLE = 1990
|
|---|
| 59 | __POSIX_VISIBLE = 198808
|
|---|
| 60 | __ISO_C_VISIBLE = 0
|
|---|
| 61 | __POSIX_VISIBLE = 0
|
|---|
| 62 | __XSI_VISIBLE = 0
|
|---|
| 63 | __BSD_VISIBLE = 0
|
|---|
| 64 | __ISO_C_VISIBLE = 1990
|
|---|
| 65 | __POSIX_VISIBLE = 0
|
|---|
| 66 | __XSI_VISIBLE = 0
|
|---|
| 67 | __BSD_VISIBLE = 0
|
|---|
| 68 | __ISO_C_VISIBLE = 1999
|
|---|
| 69 | __POSIX_VISIBLE = 200112
|
|---|
| 70 | __XSI_VISIBLE = 600
|
|---|
| 71 | __BSD_VISIBLE = 1
|
|---|
| 72 | __ISO_C_VISIBLE = 1999
|
|---|
| 73 |
|
|---|
| 74 | # Included from sys/_types.h
|
|---|
| 75 |
|
|---|
| 76 | # Included from machine/_types.h
|
|---|
| 77 |
|
|---|
| 78 | # Included from machine/endian.h
|
|---|
| 79 | _QUAD_HIGHWORD = 1
|
|---|
| 80 | _QUAD_LOWWORD = 0
|
|---|
| 81 | _LITTLE_ENDIAN = 1234
|
|---|
| 82 | _BIG_ENDIAN = 4321
|
|---|
| 83 | _PDP_ENDIAN = 3412
|
|---|
| 84 | _BYTE_ORDER = _LITTLE_ENDIAN
|
|---|
| 85 | LITTLE_ENDIAN = _LITTLE_ENDIAN
|
|---|
| 86 | BIG_ENDIAN = _BIG_ENDIAN
|
|---|
| 87 | PDP_ENDIAN = _PDP_ENDIAN
|
|---|
| 88 | BYTE_ORDER = _BYTE_ORDER
|
|---|
| 89 | __INTEL_COMPILER_with_FreeBSD_endian = 1
|
|---|
| 90 | __INTEL_COMPILER_with_FreeBSD_endian = 1
|
|---|
| 91 | def __word_swap_int_var(x): return \
|
|---|
| 92 |
|
|---|
| 93 | def __word_swap_int_const(x): return \
|
|---|
| 94 |
|
|---|
| 95 | def __word_swap_int(x): return __word_swap_int_var(x)
|
|---|
| 96 |
|
|---|
| 97 | def __byte_swap_int_var(x): return \
|
|---|
| 98 |
|
|---|
| 99 | def __byte_swap_int_var(x): return \
|
|---|
| 100 |
|
|---|
| 101 | def __byte_swap_int_const(x): return \
|
|---|
| 102 |
|
|---|
| 103 | def __byte_swap_int(x): return __byte_swap_int_var(x)
|
|---|
| 104 |
|
|---|
| 105 | def __byte_swap_word_var(x): return \
|
|---|
| 106 |
|
|---|
| 107 | def __byte_swap_word_const(x): return \
|
|---|
| 108 |
|
|---|
| 109 | def __byte_swap_word(x): return __byte_swap_word_var(x)
|
|---|
| 110 |
|
|---|
| 111 | def __htonl(x): return __bswap32(x)
|
|---|
| 112 |
|
|---|
| 113 | def __htons(x): return __bswap16(x)
|
|---|
| 114 |
|
|---|
| 115 | def __ntohl(x): return __bswap32(x)
|
|---|
| 116 |
|
|---|
| 117 | def __ntohs(x): return __bswap16(x)
|
|---|
| 118 |
|
|---|
| 119 | IPPROTO_IP = 0
|
|---|
| 120 | IPPROTO_ICMP = 1
|
|---|
| 121 | IPPROTO_TCP = 6
|
|---|
| 122 | IPPROTO_UDP = 17
|
|---|
| 123 | def htonl(x): return __htonl(x)
|
|---|
| 124 |
|
|---|
| 125 | def htons(x): return __htons(x)
|
|---|
| 126 |
|
|---|
| 127 | def ntohl(x): return __ntohl(x)
|
|---|
| 128 |
|
|---|
| 129 | def ntohs(x): return __ntohs(x)
|
|---|
| 130 |
|
|---|
| 131 | IPPROTO_RAW = 255
|
|---|
| 132 | INET_ADDRSTRLEN = 16
|
|---|
| 133 | IPPROTO_HOPOPTS = 0
|
|---|
| 134 | IPPROTO_IGMP = 2
|
|---|
| 135 | IPPROTO_GGP = 3
|
|---|
| 136 | IPPROTO_IPV4 = 4
|
|---|
| 137 | IPPROTO_IPIP = IPPROTO_IPV4
|
|---|
| 138 | IPPROTO_ST = 7
|
|---|
| 139 | IPPROTO_EGP = 8
|
|---|
| 140 | IPPROTO_PIGP = 9
|
|---|
| 141 | IPPROTO_RCCMON = 10
|
|---|
| 142 | IPPROTO_NVPII = 11
|
|---|
| 143 | IPPROTO_PUP = 12
|
|---|
| 144 | IPPROTO_ARGUS = 13
|
|---|
| 145 | IPPROTO_EMCON = 14
|
|---|
| 146 | IPPROTO_XNET = 15
|
|---|
| 147 | IPPROTO_CHAOS = 16
|
|---|
| 148 | IPPROTO_MUX = 18
|
|---|
| 149 | IPPROTO_MEAS = 19
|
|---|
| 150 | IPPROTO_HMP = 20
|
|---|
| 151 | IPPROTO_PRM = 21
|
|---|
| 152 | IPPROTO_IDP = 22
|
|---|
| 153 | IPPROTO_TRUNK1 = 23
|
|---|
| 154 | IPPROTO_TRUNK2 = 24
|
|---|
| 155 | IPPROTO_LEAF1 = 25
|
|---|
| 156 | IPPROTO_LEAF2 = 26
|
|---|
| 157 | IPPROTO_RDP = 27
|
|---|
| 158 | IPPROTO_IRTP = 28
|
|---|
| 159 | IPPROTO_TP = 29
|
|---|
| 160 | IPPROTO_BLT = 30
|
|---|
| 161 | IPPROTO_NSP = 31
|
|---|
| 162 | IPPROTO_INP = 32
|
|---|
| 163 | IPPROTO_SEP = 33
|
|---|
| 164 | IPPROTO_3PC = 34
|
|---|
| 165 | IPPROTO_IDPR = 35
|
|---|
| 166 | IPPROTO_XTP = 36
|
|---|
| 167 | IPPROTO_DDP = 37
|
|---|
| 168 | IPPROTO_CMTP = 38
|
|---|
| 169 | IPPROTO_TPXX = 39
|
|---|
| 170 | IPPROTO_IL = 40
|
|---|
| 171 | IPPROTO_IPV6 = 41
|
|---|
| 172 | IPPROTO_SDRP = 42
|
|---|
| 173 | IPPROTO_ROUTING = 43
|
|---|
| 174 | IPPROTO_FRAGMENT = 44
|
|---|
| 175 | IPPROTO_IDRP = 45
|
|---|
| 176 | IPPROTO_RSVP = 46
|
|---|
|
|---|