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