]> git.saurik.com Git - apple/xnu.git/blame - tools/lldbmacros/netdefines.py
xnu-4903.270.47.tar.gz
[apple/xnu.git] / tools / lldbmacros / netdefines.py
CommitLineData
39236c6e
A
1if_capenable_strings = ["RXCSUM",
2 "TXCSUM",
3 "VLAN_MTU",
4 "VLAN_HWTAGGING",
5 "JUMBO_MTU",
6 "TSO4",
7 "TSO6",
8 "LRO",
9 "AV",
cc8bc92a
A
10 "TXSTATUS",
11 "CHANNEL_IO",
12 "HW_TIMESTAMP",
13 "SW_TIMESTAMP",
14 "CSUM_PARTIAL",
15 "CSUM_ZERO_INVERT"
39236c6e
A
16 ]
17
18if_flags_strings = ["UP",
19 "BROADCAST",
20 "DEBUG",
21 "LOOPBACK",
22 "POINTOPOINT",
23 "NOTRAILERS (deprecated)",
24 "RUNNING",
25 "NOARP",
26 "PROMISC",
27 "ALLMULTI",
28 "OACTIVE",
29 "SIMPLEX",
30 "LINK0",
31 "LINK1",
32 "LINK2-ALTPHYS",
33 "MULTICAST"
34 ]
35
36if_eflags_strings = ["AUTOCONFIGURING",
37 "unused",
38 "unused",
39 "unused",
40 "unused",
41 "DVR_REENTRY_OK (deprecated)",
42 "ACCEPT_RTADV",
43 "TXSTART",
44 "RXPOLL",
45 "VLAN",
46 "BOND",
47 "ARPLL",
48 "NOWINDOWSCALE",
49 "NOAUTOIPV6LL",
50 "unused",
51 "IPV4_ROUTER",
52 "IPV6_ROUTER",
53 "LOCALNET_PRIVATE",
54 "IPV6_ND6ALT",
55 "RESTRICTED_RECV",
56 "AWDL",
57 "NOACKPRI",
58 "unused",
59 "unused",
60 "unused",
61 "unused",
62 "unused",
63 "unused",
64 "SENDLIST",
65 "REUSE (deprecated)",
66 "INUSE (deprecated)",
67 "UPDOWNCHANGE"
68 ]
69
70AF_INET = 2
71AF_INET6 = 30
72AF_LINK = 18
73
74INP_IPV4 = 0x1
75INP_IPV6 = 0x2
76
77CTRACE_STACK_SIZE = 8
78
79IFMA_TRACE_HIST_SIZE = 32
80RTD_TRACE_HIST_SIZE = 4
81INIFA_TRACE_HIST_SIZE = 32
82IN6IFA_TRACE_HIST_SIZE = 32
83INM_TRACE_HIST_SIZE = 32
84IF_REF_TRACE_HIST_SIZE = 8
85NDPR_TRACE_HIST_SIZE = 32
86NDDR_TRACE_HIST_SIZE = 32
87IMO_TRACE_HIST_SIZE = 32
88IM6O_TRACE_HIST_SIZE = 32
89
90INP_RECVOPTS = 0x01
91INP_RECVRETOPTS = 0x02
92INP_RECVDSTADDR = 0x04
93INP_HDRINCL = 0x08
94INP_HIGHPORT = 0x10
95INP_LOWPORT = 0x20
96INP_ANONPORT = 0x40
97INP_RECVIF = 0x80
98INP_MTUDISC = 0x100
99INP_STRIPHDR = 0x200
100INP_RECV_ANYIF = 0x400
101INP_INADDR_ANY = 0x800
102INP_RECVTTL = 0x1000
103INP_UDP_NOCKSUM = 0x2000
104INP_BOUND_IF = 0x4000
105IN6P_IPV6_V6ONLY = 0x008000
106IN6P_PKTINFO = 0x010000
107IN6P_HOPLIMIT = 0x020000
108IN6P_HOPOPTS = 0x040000
109IN6P_DSTOPTS = 0x080000
110IN6P_RTHDR = 0x100000
111IN6P_RTHDRDSTOPTS = 0x200000
112IN6P_TCLASS = 0x400000
113IN6P_AUTOFLOWLABEL = 0x800000
114IN6P_BINDV6ONLY = 0x10000000
115IN6P_RFC2292 = 0x02000000
116IN6P_MTU = 0x04000000
117INP_PKTINFO = 0x08000000
118INP_FLOW_SUSPENDED = 0x10000000
119INP_NO_IFT_CELLULAR = 0x20000000
120INP_FLOW_CONTROLLED = 0x40000000
121INP_FC_FEEDBACK = 0x80000000
122INPCB_STATE_INUSE = 0x1
123INPCB_STATE_CACHED = 0x2
124INPCB_STATE_DEAD = 0x3
125
126INP2_TIMEWAIT = 0x00000001
127INP2_IN_FCTREE = 0x00000002
fe8ab488 128INP2_WANT_APP_POLICY = 0x00000004
39236c6e
A
129
130N_TIME_WAIT_SLOTS = 128