]> git.saurik.com Git - apple/xnu.git/blob - tools/lldbmacros/netdefines.py
xnu-3789.21.4.tar.gz
[apple/xnu.git] / tools / lldbmacros / netdefines.py
1 if_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
13 if_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
31 if_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
65 AF_INET = 2
66 AF_INET6 = 30
67 AF_LINK = 18
68
69 INP_IPV4 = 0x1
70 INP_IPV6 = 0x2
71
72 CTRACE_STACK_SIZE = 8
73
74 IFMA_TRACE_HIST_SIZE = 32
75 RTD_TRACE_HIST_SIZE = 4
76 INIFA_TRACE_HIST_SIZE = 32
77 IN6IFA_TRACE_HIST_SIZE = 32
78 INM_TRACE_HIST_SIZE = 32
79 IF_REF_TRACE_HIST_SIZE = 8
80 NDPR_TRACE_HIST_SIZE = 32
81 NDDR_TRACE_HIST_SIZE = 32
82 IMO_TRACE_HIST_SIZE = 32
83 IM6O_TRACE_HIST_SIZE = 32
84
85 INP_RECVOPTS = 0x01
86 INP_RECVRETOPTS = 0x02
87 INP_RECVDSTADDR = 0x04
88 INP_HDRINCL = 0x08
89 INP_HIGHPORT = 0x10
90 INP_LOWPORT = 0x20
91 INP_ANONPORT = 0x40
92 INP_RECVIF = 0x80
93 INP_MTUDISC = 0x100
94 INP_STRIPHDR = 0x200
95 INP_RECV_ANYIF = 0x400
96 INP_INADDR_ANY = 0x800
97 INP_RECVTTL = 0x1000
98 INP_UDP_NOCKSUM = 0x2000
99 INP_BOUND_IF = 0x4000
100 IN6P_IPV6_V6ONLY = 0x008000
101 IN6P_PKTINFO = 0x010000
102 IN6P_HOPLIMIT = 0x020000
103 IN6P_HOPOPTS = 0x040000
104 IN6P_DSTOPTS = 0x080000
105 IN6P_RTHDR = 0x100000
106 IN6P_RTHDRDSTOPTS = 0x200000
107 IN6P_TCLASS = 0x400000
108 IN6P_AUTOFLOWLABEL = 0x800000
109 IN6P_BINDV6ONLY = 0x10000000
110 IN6P_RFC2292 = 0x02000000
111 IN6P_MTU = 0x04000000
112 INP_PKTINFO = 0x08000000
113 INP_FLOW_SUSPENDED = 0x10000000
114 INP_NO_IFT_CELLULAR = 0x20000000
115 INP_FLOW_CONTROLLED = 0x40000000
116 INP_FC_FEEDBACK = 0x80000000
117 INPCB_STATE_INUSE = 0x1
118 INPCB_STATE_CACHED = 0x2
119 INPCB_STATE_DEAD = 0x3
120
121 INP2_TIMEWAIT = 0x00000001
122 INP2_IN_FCTREE = 0x00000002
123 INP2_WANT_APP_POLICY = 0x00000004
124
125 N_TIME_WAIT_SLOTS = 128