]>
git.saurik.com Git - apple/xnu.git/blob - tools/lldbmacros/netdefines.py
1 def enum(*sequential
, **named
):
2 enums
= dict(zip(sequential
, range(len(sequential
))), **named
)
3 reverse
= dict((value
, key
) for key
, value
in enums
.iteritems())
4 enums
['reverse_mapping'] = reverse
5 return type('Enum', (), enums
)
44 dlil_if_flags_strings
= ["DLIF_INUSE",
49 if_capenable_strings
= ["RXCSUM",
66 if_flags_strings
= ["UP",
71 "NOTRAILERS (deprecated)",
84 if_refflags_strings
= ["IFRF_EMBRYONIC",
89 if_eflags_strings
= ["AUTOCONFIGURING",
94 "DVR_REENTRY_OK (deprecated)",
118 "REUSE (deprecated)",
119 "INUSE (deprecated)",
130 CTRACE_STACK_SIZE
= 8
132 IFMA_TRACE_HIST_SIZE
= 32
133 RTD_TRACE_HIST_SIZE
= 4
134 INIFA_TRACE_HIST_SIZE
= 32
135 IN6IFA_TRACE_HIST_SIZE
= 32
136 INM_TRACE_HIST_SIZE
= 32
137 IF_REF_TRACE_HIST_SIZE
= 8
138 NDPR_TRACE_HIST_SIZE
= 32
139 NDDR_TRACE_HIST_SIZE
= 32
140 IMO_TRACE_HIST_SIZE
= 32
141 IM6O_TRACE_HIST_SIZE
= 32
144 INP_RECVRETOPTS
= 0x02
145 INP_RECVDSTADDR
= 0x04
153 INP_RECV_ANYIF
= 0x400
154 INP_INADDR_ANY
= 0x800
156 INP_UDP_NOCKSUM
= 0x2000
157 INP_BOUND_IF
= 0x4000
158 IN6P_IPV6_V6ONLY
= 0x008000
159 IN6P_PKTINFO
= 0x010000
160 IN6P_HOPLIMIT
= 0x020000
161 IN6P_HOPOPTS
= 0x040000
162 IN6P_DSTOPTS
= 0x080000
163 IN6P_RTHDR
= 0x100000
164 IN6P_RTHDRDSTOPTS
= 0x200000
165 IN6P_TCLASS
= 0x400000
166 IN6P_AUTOFLOWLABEL
= 0x800000
167 IN6P_BINDV6ONLY
= 0x10000000
168 IN6P_RFC2292
= 0x02000000
169 IN6P_MTU
= 0x04000000
170 INP_PKTINFO
= 0x08000000
171 INP_FLOW_SUSPENDED
= 0x10000000
172 INP_NO_IFT_CELLULAR
= 0x20000000
173 INP_FLOW_CONTROLLED
= 0x40000000
174 INP_FC_FEEDBACK
= 0x80000000
175 INPCB_STATE_INUSE
= 0x1
176 INPCB_STATE_CACHED
= 0x2
177 INPCB_STATE_DEAD
= 0x3
179 INP2_TIMEWAIT
= 0x00000001
180 INP2_IN_FCTREE
= 0x00000002
181 INP2_WANT_APP_POLICY
= 0x00000004
183 N_TIME_WAIT_SLOTS
= 128