1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35 #ifndef _SYS_SOCKIO_H_
36 #define _SYS_SOCKIO_H_
37
38 #include <sys/ioccom.h>
39
40
41 #define SIOCSHIWAT _IOW('s', 0, int)
42 #define SIOCGHIWAT _IOR('s', 1, int)
43 #define SIOCSLOWAT _IOW('s', 2, int)
44 #define SIOCGLOWAT _IOR('s', 3, int)
45 #define SIOCATMARK _IOR('s', 7, int)
46 #define SIOCSPGRP _IOW('s', 8, int)
47 #define SIOCGPGRP _IOR('s', 9, int)
48
49 #define SIOCSIFADDR _IOW('i', 12, struct ifreq)
50 #define OSIOCGIFADDR _IOWR('i', 13, struct ifreq)
51 #define SIOCGIFADDR _IOWR('i', 33, struct ifreq)
52 #define SIOCSIFDSTADDR _IOW('i', 14, struct ifreq)
53 #define OSIOCGIFDSTADDR _IOWR('i', 15, struct ifreq)
54 #define SIOCGIFDSTADDR _IOWR('i', 34, struct ifreq)
55 #define SIOCSIFFLAGS _IOW('i', 16, struct ifreq)
56 #define SIOCGIFFLAGS _IOWR('i', 17, struct ifreq)
57 #define OSIOCGIFBRDADDR _IOWR('i', 18, struct ifreq)
58 #define SIOCGIFBRDADDR _IOWR('i', 35, struct ifreq)
59 #define SIOCSIFBRDADDR _IOW('i', 19, struct ifreq)
60 #define OSIOCGIFCONF _IOWR('i', 20, struct ifconf)
61 #define SIOCGIFCONF _IOWR('i', 36, struct ifconf)
62 #define OSIOCGIFNETMASK _IOWR('i', 21, struct ifreq)
63 #define SIOCGIFNETMASK _IOWR('i', 37, struct ifreq)
64 #define SIOCSIFNETMASK _IOW('i', 22, struct ifreq)
65 #define SIOCGIFMETRIC _IOWR('i', 23, struct ifreq)
66 #define SIOCSIFMETRIC _IOW('i', 24, struct ifreq)
67 #define SIOCDIFADDR _IOW('i', 25, struct ifreq)
68 #define SIOCAIFADDR _IOW('i', 26, struct ifaliasreq)
69 #define SIOCGIFDATA _IOWR('i', 27, struct ifreq)
70 #define SIOCSIFLLADDR _IOW('i', 31, struct ifreq)
71
72
73
74 #define SIOCALIFADDR _IOW('i', 28, struct if_laddrreq)
75 #define SIOCGLIFADDR _IOWR('i', 29, struct if_laddrreq)
76 #define SIOCDLIFADDR _IOW('i', 30, struct if_laddrreq)
77
78 #define SIOCADDMULTI _IOW('i', 49, struct ifreq)
79 #define SIOCDELMULTI _IOW('i', 50, struct ifreq)
80 #define SIOCGETVIFCNT _IOWR('u', 51, struct sioc_vif_req)
81 #define SIOCGETSGCNT _IOWR('u', 52, struct sioc_sg_req)
82
83 #define SIOCSIFMEDIA _IOWR('i', 53, struct ifreq)
84 #define SIOCGIFMEDIA _IOWR('i', 54, struct ifmediareq)
85
86 #define SIOCSIFGENERIC _IOW('i', 57, struct ifreq)
87 #define SIOCGIFGENERIC _IOWR('i', 58, struct ifreq)
88
89 #define SIOCSIFPHYADDR _IOW('i', 70, struct ifaliasreq)
90 #define SIOCGIFPSRCADDR _IOWR('i', 71, struct ifreq)
91 #define SIOCGIFPDSTADDR _IOWR('i', 72, struct ifreq)
92 #define SIOCDIFPHYADDR _IOW('i', 73, struct ifreq)
93 #define SIOCSLIFPHYADDR _IOW('i', 74, struct if_laddrreq)
94 #define SIOCGLIFPHYADDR _IOWR('i', 75, struct if_laddrreq)
95
96 #define SIOCBRDGADD _IOW('i', 60, struct ifbreq)
97 #define SIOCBRDGGSIFS _IOWR('i', 60, struct ifbreq)
98 #define SIOCBRDGDEL _IOW('i', 61, struct ifbreq)
99 #define SIOCBRDGGIFFLGS _IOWR('i', 62, struct ifbreq)
100 #define SIOCBRDGSIFFLGS _IOW('i', 63, struct ifbreq)
101 #define SIOCBRDGSCACHE _IOW('i', 64, struct ifbrparam)
102 #define SIOCBRDGGCACHE _IOWR('i', 65, struct ifbrparam)
103 #define SIOCBRDGADDS _IOW('i', 65, struct ifbreq)
104 #define SIOCBRDGIFS _IOWR('i', 66, struct ifbreq)
105 #define SIOCBRDGDELS _IOW('i', 66, struct ifbreq)
106 #define SIOCBRDGRTS _IOWR('i', 67, struct ifbaconf)
107 #define SIOCBRDGSADDR _IOWR('i', 68, struct ifbareq)
108 #define SIOCBRDGSTO _IOW('i', 69, struct ifbrparam)
109 #define SIOCBRDGGTO _IOWR('i', 70, struct ifbrparam)
110 #define SIOCBRDGDADDR _IOW('i', 71, struct ifbareq)
111 #define SIOCBRDGFLUSH _IOW('i', 72, struct ifbreq)
112
113 #define SIOCBRDGARL _IOW('i', 77, struct ifbrlreq)
114 #define SIOCBRDGFRL _IOW('i', 78, struct ifbrlreq)
115 #define SIOCBRDGGRL _IOWR('i', 79, struct ifbrlconf)
116 #define SIOCBRDGGPRI _IOWR('i', 80, struct ifbrparam)
117 #define SIOCBRDGSPRI _IOW('i', 80, struct ifbrparam)
118 #define SIOCBRDGGHT _IOWR('i', 81, struct ifbrparam)
119 #define SIOCBRDGSHT _IOW('i', 81, struct ifbrparam)
120 #define SIOCBRDGGFD _IOWR('i', 82, struct ifbrparam)
121 #define SIOCBRDGSFD _IOW('i', 82, struct ifbrparam)
122 #define SIOCBRDGGMA _IOWR('i', 83, struct ifbrparam)
123 #define SIOCBRDGSMA _IOW('i', 83, struct ifbrparam)
124 #define SIOCBRDGSIFPRIO _IOW('i', 84, struct ifbreq)
125 #define SIOCBRDGSIFCOST _IOW('i', 85, struct ifbreq)
126
127 #define SIOCBRDGGPARAM _IOWR('i', 88, struct ifbropreq)
128 #define SIOCBRDGSTXHC _IOW('i', 89, struct ifbrparam)
129 #define SIOCBRDGSPROTO _IOW('i', 90, struct ifbrparam)
130 #define SIOCBRDGS
131
132 #define GRESADDRS _IOW('i', 101, struct ifreq)
133 #define GRESADDRD _IOW('i', 102, struct ifreq)
134 #define GREGADDRS _IOWR('i', 103, struct ifreq)
135 #define GREGADDRD _IOWR('i', 104, struct ifreq)
136 #define GRESPROTO _IOW('i', 105, struct ifreq)
137 #define GREGPROTO _IOWR('i', 106, struct ifreq)
138
139 #define SIOCSIFMTU _IOW('i', 127, struct ifreq)
140 #define SIOCGIFMTU _IOWR('i', 126, struct ifreq)
141 #define SIOCSIFASYNCMAP _IOW('i', 125, struct ifreq)
142 #define SIOCGIFASYNCMAP _IOWR('i', 124, struct ifreq)
143
144 #define SIOCIFCREATE _IOW('i', 122, struct ifreq)
145 #define SIOCIFDESTROY _IOW('i', 121, struct ifreq)
146 #define SIOCIFGCLONERS _IOWR('i', 120, struct if_clonereq)
147
148 #define SIOCAIFGROUP _IOW('i', 135, struct ifgroupreq)
149 #define SIOCGIFGROUP _IOWR('i', 136, struct ifgroupreq)
150 #define SIOCDIFGROUP _IOW('i', 137, struct ifgroupreq)
151 #define SIOCGIFGMEMB _IOWR('i', 138, struct ifgroupreq)
152 #define SIOCGIFGATTR _IOWR('i', 139, struct ifgroupreq)
153 #define SIOCSIFGATTR _IOW('i', 140, struct ifgroupreq)
154
155 #define SIOCSIFDESCR _IOW('i', 128, struct ifreq)
156 #define SIOCGIFDESCR _IOWR('i', 129, struct ifreq)
157
158 #define SIOCSIFRTLABEL _IOW('i', 130, struct ifreq)
159 #define SIOCGIFRTLABEL _IOWR('i', 131, struct ifreq)
160
161 #define SIOCSIFTIMESLOT _IOW('i', 133, struct ifreq)
162 #define SIOCGIFTIMESLOT _IOWR('i', 134, struct ifreq)
163
164 #define SIOCSETVLANPRIO _IOW('i', 143, struct ifreq)
165 #define SIOCGETVLANPRIO _IOWR('i', 144, struct ifreq)
166
167 #define SIOCSVH _IOWR('i', 245, struct ifreq)
168 #define SIOCGVH _IOWR('i', 246, struct ifreq)
169
170 #define SIOCSETPFSYNC _IOW('i', 247, struct ifreq)
171 #define SIOCGETPFSYNC _IOWR('i', 248, struct ifreq)
172
173 #endif