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