]>
Commit | Line | Data |
---|---|---|
e2be04c7 | 1 | /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ |
607ca46e DH |
2 | /* |
3 | * Linux ethernet bridge | |
4 | * | |
5 | * Authors: | |
6 | * Lennert Buytenhek <buytenh@gnu.org> | |
7 | * | |
8 | * This program is free software; you can redistribute it and/or | |
9 | * modify it under the terms of the GNU General Public License | |
10 | * as published by the Free Software Foundation; either version | |
11 | * 2 of the License, or (at your option) any later version. | |
12 | */ | |
13 | ||
14 | #ifndef _UAPI_LINUX_IF_BRIDGE_H | |
15 | #define _UAPI_LINUX_IF_BRIDGE_H | |
16 | ||
17 | #include <linux/types.h> | |
e216975a | 18 | #include <linux/if_ether.h> |
66f1c448 | 19 | #include <linux/in6.h> |
607ca46e DH |
20 | |
21 | #define SYSFS_BRIDGE_ATTR "bridge" | |
22 | #define SYSFS_BRIDGE_FDB "brforward" | |
23 | #define SYSFS_BRIDGE_PORT_SUBDIR "brif" | |
24 | #define SYSFS_BRIDGE_PORT_ATTR "brport" | |
25 | #define SYSFS_BRIDGE_PORT_LINK "bridge" | |
26 | ||
27 | #define BRCTL_VERSION 1 | |
28 | ||
29 | #define BRCTL_GET_VERSION 0 | |
30 | #define BRCTL_GET_BRIDGES 1 | |
31 | #define BRCTL_ADD_BRIDGE 2 | |
32 | #define BRCTL_DEL_BRIDGE 3 | |
33 | #define BRCTL_ADD_IF 4 | |
34 | #define BRCTL_DEL_IF 5 | |
35 | #define BRCTL_GET_BRIDGE_INFO 6 | |
36 | #define BRCTL_GET_PORT_LIST 7 | |
37 | #define BRCTL_SET_BRIDGE_FORWARD_DELAY 8 | |
38 | #define BRCTL_SET_BRIDGE_HELLO_TIME 9 | |
39 | #define BRCTL_SET_BRIDGE_MAX_AGE 10 | |
40 | #define BRCTL_SET_AGEING_TIME 11 | |
41 | #define BRCTL_SET_GC_INTERVAL 12 | |
42 | #define BRCTL_GET_PORT_INFO 13 | |
43 | #define BRCTL_SET_BRIDGE_STP_STATE 14 | |
44 | #define BRCTL_SET_BRIDGE_PRIORITY 15 | |
45 | #define BRCTL_SET_PORT_PRIORITY 16 | |
46 | #define BRCTL_SET_PATH_COST 17 | |
47 | #define BRCTL_GET_FDB_ENTRIES 18 | |
48 | ||
49 | #define BR_STATE_DISABLED 0 | |
50 | #define BR_STATE_LISTENING 1 | |
51 | #define BR_STATE_LEARNING 2 | |
52 | #define BR_STATE_FORWARDING 3 | |
53 | #define BR_STATE_BLOCKING 4 | |
54 | ||
55 | struct __bridge_info { | |
56 | __u64 designated_root; | |
57 | __u64 bridge_id; | |
58 | __u32 root_path_cost; | |
59 | __u32 max_age; | |
60 | __u32 hello_time; | |
61 | __u32 forward_delay; | |
62 | __u32 bridge_max_age; | |
63 | __u32 bridge_hello_time; | |
64 | __u32 bridge_forward_delay; | |
65 | __u8 topology_change; | |
66 | __u8 topology_change_detected; | |
67 | __u8 root_port; | |
68 | __u8 stp_enabled; | |
69 | __u32 ageing_time; | |
70 | __u32 gc_interval; | |
71 | __u32 hello_timer_value; | |
72 | __u32 tcn_timer_value; | |
73 | __u32 topology_change_timer_value; | |
74 | __u32 gc_timer_value; | |
75 | }; | |
76 | ||
77 | struct __port_info { | |
78 | __u64 designated_root; | |
79 | __u64 designated_bridge; | |
80 | __u16 port_id; | |
81 | __u16 designated_port; | |
82 | __u32 path_cost; | |
83 | __u32 designated_cost; | |
84 | __u8 state; | |
85 | __u8 top_change_ack; | |
86 | __u8 config_pending; | |
87 | __u8 unused0; | |
88 | __u32 message_age_timer_value; | |
89 | __u32 forward_delay_timer_value; | |
90 | __u32 hold_timer_value; | |
91 | }; | |
92 | ||
93 | struct __fdb_entry { | |
e216975a | 94 | __u8 mac_addr[ETH_ALEN]; |
607ca46e DH |
95 | __u8 port_no; |
96 | __u8 is_local; | |
97 | __u32 ageing_timer_value; | |
98 | __u8 port_hi; | |
99 | __u8 pad0; | |
100 | __u16 unused; | |
101 | }; | |
102 | ||
2469ffd7 JF |
103 | /* Bridge Flags */ |
104 | #define BRIDGE_FLAGS_MASTER 1 /* Bridge command to/from master */ | |
105 | #define BRIDGE_FLAGS_SELF 2 /* Bridge command to/from lowerdev */ | |
607ca46e | 106 | |
2469ffd7 JF |
107 | #define BRIDGE_MODE_VEB 0 /* Default loopback mode */ |
108 | #define BRIDGE_MODE_VEPA 1 /* 802.1Qbg defined VEPA mode */ | |
fc0bdbbc | 109 | #define BRIDGE_MODE_UNDEF 0xFFFF /* mode undefined */ |
2469ffd7 JF |
110 | |
111 | /* Bridge management nested attributes | |
112 | * [IFLA_AF_SPEC] = { | |
113 | * [IFLA_BRIDGE_FLAGS] | |
114 | * [IFLA_BRIDGE_MODE] | |
407af329 | 115 | * [IFLA_BRIDGE_VLAN_INFO] |
2469ffd7 JF |
116 | * } |
117 | */ | |
118 | enum { | |
119 | IFLA_BRIDGE_FLAGS, | |
120 | IFLA_BRIDGE_MODE, | |
407af329 | 121 | IFLA_BRIDGE_VLAN_INFO, |
b3c7ef0a | 122 | IFLA_BRIDGE_VLAN_TUNNEL_INFO, |
4714d137 | 123 | IFLA_BRIDGE_MRP, |
2469ffd7 JF |
124 | __IFLA_BRIDGE_MAX, |
125 | }; | |
126 | #define IFLA_BRIDGE_MAX (__IFLA_BRIDGE_MAX - 1) | |
ee07c6e7 | 127 | |
407af329 | 128 | #define BRIDGE_VLAN_INFO_MASTER (1<<0) /* Operate on Bridge device as well */ |
552406c4 | 129 | #define BRIDGE_VLAN_INFO_PVID (1<<1) /* VLAN is PVID, ingress untagged */ |
35e03f3a | 130 | #define BRIDGE_VLAN_INFO_UNTAGGED (1<<2) /* VLAN egresses untagged */ |
bdced7ef RP |
131 | #define BRIDGE_VLAN_INFO_RANGE_BEGIN (1<<3) /* VLAN is start of vlan range */ |
132 | #define BRIDGE_VLAN_INFO_RANGE_END (1<<4) /* VLAN is end of vlan range */ | |
2594e906 | 133 | #define BRIDGE_VLAN_INFO_BRENTRY (1<<5) /* Global bridge VLAN entry */ |
a5d29ae2 | 134 | #define BRIDGE_VLAN_INFO_ONLY_OPTS (1<<6) /* Skip create/delete/flags */ |
407af329 VY |
135 | |
136 | struct bridge_vlan_info { | |
9f89ec82 CW |
137 | __u16 flags; |
138 | __u16 vid; | |
407af329 VY |
139 | }; |
140 | ||
b3c7ef0a RP |
141 | enum { |
142 | IFLA_BRIDGE_VLAN_TUNNEL_UNSPEC, | |
143 | IFLA_BRIDGE_VLAN_TUNNEL_ID, | |
144 | IFLA_BRIDGE_VLAN_TUNNEL_VID, | |
145 | IFLA_BRIDGE_VLAN_TUNNEL_FLAGS, | |
146 | __IFLA_BRIDGE_VLAN_TUNNEL_MAX, | |
147 | }; | |
148 | ||
149 | #define IFLA_BRIDGE_VLAN_TUNNEL_MAX (__IFLA_BRIDGE_VLAN_TUNNEL_MAX - 1) | |
150 | ||
a60c0903 NA |
151 | struct bridge_vlan_xstats { |
152 | __u64 rx_bytes; | |
153 | __u64 rx_packets; | |
154 | __u64 tx_bytes; | |
155 | __u64 tx_packets; | |
156 | __u16 vid; | |
61ba1a2d | 157 | __u16 flags; |
a60c0903 NA |
158 | __u32 pad2; |
159 | }; | |
160 | ||
4714d137 HV |
161 | enum { |
162 | IFLA_BRIDGE_MRP_UNSPEC, | |
163 | IFLA_BRIDGE_MRP_INSTANCE, | |
164 | IFLA_BRIDGE_MRP_PORT_STATE, | |
165 | IFLA_BRIDGE_MRP_PORT_ROLE, | |
166 | IFLA_BRIDGE_MRP_RING_STATE, | |
167 | IFLA_BRIDGE_MRP_RING_ROLE, | |
168 | IFLA_BRIDGE_MRP_START_TEST, | |
169 | __IFLA_BRIDGE_MRP_MAX, | |
170 | }; | |
171 | ||
20f6a05e HV |
172 | #define IFLA_BRIDGE_MRP_MAX (__IFLA_BRIDGE_MRP_MAX - 1) |
173 | ||
174 | enum { | |
175 | IFLA_BRIDGE_MRP_INSTANCE_UNSPEC, | |
176 | IFLA_BRIDGE_MRP_INSTANCE_RING_ID, | |
177 | IFLA_BRIDGE_MRP_INSTANCE_P_IFINDEX, | |
178 | IFLA_BRIDGE_MRP_INSTANCE_S_IFINDEX, | |
179 | __IFLA_BRIDGE_MRP_INSTANCE_MAX, | |
180 | }; | |
181 | ||
182 | #define IFLA_BRIDGE_MRP_INSTANCE_MAX (__IFLA_BRIDGE_MRP_INSTANCE_MAX - 1) | |
183 | ||
184 | enum { | |
185 | IFLA_BRIDGE_MRP_PORT_STATE_UNSPEC, | |
186 | IFLA_BRIDGE_MRP_PORT_STATE_STATE, | |
187 | __IFLA_BRIDGE_MRP_PORT_STATE_MAX, | |
188 | }; | |
189 | ||
190 | #define IFLA_BRIDGE_MRP_PORT_STATE_MAX (__IFLA_BRIDGE_MRP_PORT_STATE_MAX - 1) | |
191 | ||
192 | enum { | |
193 | IFLA_BRIDGE_MRP_PORT_ROLE_UNSPEC, | |
194 | IFLA_BRIDGE_MRP_PORT_ROLE_ROLE, | |
195 | __IFLA_BRIDGE_MRP_PORT_ROLE_MAX, | |
196 | }; | |
197 | ||
198 | #define IFLA_BRIDGE_MRP_PORT_ROLE_MAX (__IFLA_BRIDGE_MRP_PORT_ROLE_MAX - 1) | |
199 | ||
200 | enum { | |
201 | IFLA_BRIDGE_MRP_RING_STATE_UNSPEC, | |
202 | IFLA_BRIDGE_MRP_RING_STATE_RING_ID, | |
203 | IFLA_BRIDGE_MRP_RING_STATE_STATE, | |
204 | __IFLA_BRIDGE_MRP_RING_STATE_MAX, | |
205 | }; | |
206 | ||
207 | #define IFLA_BRIDGE_MRP_RING_STATE_MAX (__IFLA_BRIDGE_MRP_RING_STATE_MAX - 1) | |
208 | ||
209 | enum { | |
210 | IFLA_BRIDGE_MRP_RING_ROLE_UNSPEC, | |
211 | IFLA_BRIDGE_MRP_RING_ROLE_RING_ID, | |
212 | IFLA_BRIDGE_MRP_RING_ROLE_ROLE, | |
213 | __IFLA_BRIDGE_MRP_RING_ROLE_MAX, | |
214 | }; | |
215 | ||
216 | #define IFLA_BRIDGE_MRP_RING_ROLE_MAX (__IFLA_BRIDGE_MRP_RING_ROLE_MAX - 1) | |
217 | ||
218 | enum { | |
219 | IFLA_BRIDGE_MRP_START_TEST_UNSPEC, | |
220 | IFLA_BRIDGE_MRP_START_TEST_RING_ID, | |
221 | IFLA_BRIDGE_MRP_START_TEST_INTERVAL, | |
222 | IFLA_BRIDGE_MRP_START_TEST_MAX_MISS, | |
223 | IFLA_BRIDGE_MRP_START_TEST_PERIOD, | |
224 | __IFLA_BRIDGE_MRP_START_TEST_MAX, | |
225 | }; | |
226 | ||
227 | #define IFLA_BRIDGE_MRP_START_TEST_MAX (__IFLA_BRIDGE_MRP_START_TEST_MAX - 1) | |
228 | ||
4714d137 HV |
229 | struct br_mrp_instance { |
230 | __u32 ring_id; | |
231 | __u32 p_ifindex; | |
232 | __u32 s_ifindex; | |
233 | }; | |
234 | ||
4714d137 HV |
235 | struct br_mrp_ring_state { |
236 | __u32 ring_id; | |
237 | __u32 ring_state; | |
238 | }; | |
239 | ||
240 | struct br_mrp_ring_role { | |
241 | __u32 ring_id; | |
242 | __u32 ring_role; | |
243 | }; | |
244 | ||
245 | struct br_mrp_start_test { | |
246 | __u32 ring_id; | |
247 | __u32 interval; | |
248 | __u32 max_miss; | |
249 | __u32 period; | |
250 | }; | |
251 | ||
de179966 VD |
252 | struct bridge_stp_xstats { |
253 | __u64 transition_blk; | |
254 | __u64 transition_fwd; | |
255 | __u64 rx_bpdu; | |
256 | __u64 tx_bpdu; | |
257 | __u64 rx_tcn; | |
258 | __u64 tx_tcn; | |
259 | }; | |
260 | ||
8dcea187 NA |
261 | /* Bridge vlan RTM header */ |
262 | struct br_vlan_msg { | |
263 | __u8 family; | |
264 | __u8 reserved1; | |
265 | __u16 reserved2; | |
266 | __u32 ifindex; | |
267 | }; | |
268 | ||
56d09976 NA |
269 | enum { |
270 | BRIDGE_VLANDB_DUMP_UNSPEC, | |
271 | BRIDGE_VLANDB_DUMP_FLAGS, | |
272 | __BRIDGE_VLANDB_DUMP_MAX, | |
273 | }; | |
274 | #define BRIDGE_VLANDB_DUMP_MAX (__BRIDGE_VLANDB_DUMP_MAX - 1) | |
275 | ||
276 | /* flags used in BRIDGE_VLANDB_DUMP_FLAGS attribute to affect dumps */ | |
277 | #define BRIDGE_VLANDB_DUMPF_STATS (1 << 0) /* Include stats in the dump */ | |
278 | ||
8dcea187 NA |
279 | /* Bridge vlan RTM attributes |
280 | * [BRIDGE_VLANDB_ENTRY] = { | |
281 | * [BRIDGE_VLANDB_ENTRY_INFO] | |
282 | * ... | |
283 | * } | |
284 | */ | |
285 | enum { | |
286 | BRIDGE_VLANDB_UNSPEC, | |
287 | BRIDGE_VLANDB_ENTRY, | |
288 | __BRIDGE_VLANDB_MAX, | |
289 | }; | |
290 | #define BRIDGE_VLANDB_MAX (__BRIDGE_VLANDB_MAX - 1) | |
291 | ||
292 | enum { | |
293 | BRIDGE_VLANDB_ENTRY_UNSPEC, | |
294 | BRIDGE_VLANDB_ENTRY_INFO, | |
0ab55879 | 295 | BRIDGE_VLANDB_ENTRY_RANGE, |
a580c76d | 296 | BRIDGE_VLANDB_ENTRY_STATE, |
fa388f29 | 297 | BRIDGE_VLANDB_ENTRY_TUNNEL_INFO, |
56d09976 | 298 | BRIDGE_VLANDB_ENTRY_STATS, |
8dcea187 NA |
299 | __BRIDGE_VLANDB_ENTRY_MAX, |
300 | }; | |
301 | #define BRIDGE_VLANDB_ENTRY_MAX (__BRIDGE_VLANDB_ENTRY_MAX - 1) | |
302 | ||
fa388f29 NA |
303 | /* [BRIDGE_VLANDB_ENTRY] = { |
304 | * [BRIDGE_VLANDB_ENTRY_TUNNEL_INFO] = { | |
305 | * [BRIDGE_VLANDB_TINFO_ID] | |
306 | * ... | |
307 | * } | |
308 | * } | |
309 | */ | |
310 | enum { | |
311 | BRIDGE_VLANDB_TINFO_UNSPEC, | |
312 | BRIDGE_VLANDB_TINFO_ID, | |
c443758b | 313 | BRIDGE_VLANDB_TINFO_CMD, |
fa388f29 NA |
314 | __BRIDGE_VLANDB_TINFO_MAX, |
315 | }; | |
316 | #define BRIDGE_VLANDB_TINFO_MAX (__BRIDGE_VLANDB_TINFO_MAX - 1) | |
317 | ||
56d09976 NA |
318 | /* [BRIDGE_VLANDB_ENTRY] = { |
319 | * [BRIDGE_VLANDB_ENTRY_STATS] = { | |
320 | * [BRIDGE_VLANDB_STATS_RX_BYTES] | |
321 | * ... | |
322 | * } | |
323 | * ... | |
324 | * } | |
325 | */ | |
326 | enum { | |
327 | BRIDGE_VLANDB_STATS_UNSPEC, | |
328 | BRIDGE_VLANDB_STATS_RX_BYTES, | |
329 | BRIDGE_VLANDB_STATS_RX_PACKETS, | |
330 | BRIDGE_VLANDB_STATS_TX_BYTES, | |
331 | BRIDGE_VLANDB_STATS_TX_PACKETS, | |
332 | BRIDGE_VLANDB_STATS_PAD, | |
333 | __BRIDGE_VLANDB_STATS_MAX, | |
334 | }; | |
335 | #define BRIDGE_VLANDB_STATS_MAX (__BRIDGE_VLANDB_STATS_MAX - 1) | |
336 | ||
ee07c6e7 CW |
337 | /* Bridge multicast database attributes |
338 | * [MDBA_MDB] = { | |
339 | * [MDBA_MDB_ENTRY] = { | |
21257156 NA |
340 | * [MDBA_MDB_ENTRY_INFO] { |
341 | * struct br_mdb_entry | |
342 | * [MDBA_MDB_EATTR attributes] | |
343 | * } | |
ee07c6e7 CW |
344 | * } |
345 | * } | |
346 | * [MDBA_ROUTER] = { | |
59f78f9f NA |
347 | * [MDBA_ROUTER_PORT] = { |
348 | * u32 ifindex | |
349 | * [MDBA_ROUTER_PATTR attributes] | |
350 | * } | |
ee07c6e7 CW |
351 | * } |
352 | */ | |
353 | enum { | |
354 | MDBA_UNSPEC, | |
355 | MDBA_MDB, | |
356 | MDBA_ROUTER, | |
357 | __MDBA_MAX, | |
358 | }; | |
359 | #define MDBA_MAX (__MDBA_MAX - 1) | |
360 | ||
361 | enum { | |
362 | MDBA_MDB_UNSPEC, | |
363 | MDBA_MDB_ENTRY, | |
364 | __MDBA_MDB_MAX, | |
365 | }; | |
366 | #define MDBA_MDB_MAX (__MDBA_MDB_MAX - 1) | |
367 | ||
368 | enum { | |
369 | MDBA_MDB_ENTRY_UNSPEC, | |
370 | MDBA_MDB_ENTRY_INFO, | |
371 | __MDBA_MDB_ENTRY_MAX, | |
372 | }; | |
373 | #define MDBA_MDB_ENTRY_MAX (__MDBA_MDB_ENTRY_MAX - 1) | |
374 | ||
21257156 NA |
375 | /* per mdb entry additional attributes */ |
376 | enum { | |
377 | MDBA_MDB_EATTR_UNSPEC, | |
378 | MDBA_MDB_EATTR_TIMER, | |
379 | __MDBA_MDB_EATTR_MAX | |
380 | }; | |
381 | #define MDBA_MDB_EATTR_MAX (__MDBA_MDB_EATTR_MAX - 1) | |
382 | ||
7f0aec7a NA |
383 | /* multicast router types */ |
384 | enum { | |
385 | MDB_RTR_TYPE_DISABLED, | |
386 | MDB_RTR_TYPE_TEMP_QUERY, | |
387 | MDB_RTR_TYPE_PERM, | |
a55d8246 | 388 | MDB_RTR_TYPE_TEMP |
7f0aec7a NA |
389 | }; |
390 | ||
ee07c6e7 CW |
391 | enum { |
392 | MDBA_ROUTER_UNSPEC, | |
393 | MDBA_ROUTER_PORT, | |
394 | __MDBA_ROUTER_MAX, | |
395 | }; | |
396 | #define MDBA_ROUTER_MAX (__MDBA_ROUTER_MAX - 1) | |
397 | ||
59f78f9f NA |
398 | /* router port attributes */ |
399 | enum { | |
400 | MDBA_ROUTER_PATTR_UNSPEC, | |
401 | MDBA_ROUTER_PATTR_TIMER, | |
402 | MDBA_ROUTER_PATTR_TYPE, | |
403 | __MDBA_ROUTER_PATTR_MAX | |
404 | }; | |
405 | #define MDBA_ROUTER_PATTR_MAX (__MDBA_ROUTER_PATTR_MAX - 1) | |
406 | ||
ee07c6e7 | 407 | struct br_port_msg { |
cfd56754 | 408 | __u8 family; |
ee07c6e7 CW |
409 | __u32 ifindex; |
410 | }; | |
411 | ||
412 | struct br_mdb_entry { | |
413 | __u32 ifindex; | |
ccb1c31a AW |
414 | #define MDB_TEMPORARY 0 |
415 | #define MDB_PERMANENT 1 | |
416 | __u8 state; | |
157ede67 | 417 | #define MDB_FLAGS_OFFLOAD (1 << 0) |
3247b272 | 418 | #define MDB_FLAGS_FAST_LEAVE (1 << 1) |
157ede67 | 419 | __u8 flags; |
74fe61f1 | 420 | __u16 vid; |
ee07c6e7 CW |
421 | struct { |
422 | union { | |
423 | __be32 ip4; | |
424 | struct in6_addr ip6; | |
425 | } u; | |
426 | __be16 proto; | |
427 | } addr; | |
428 | }; | |
429 | ||
cfd56754 CW |
430 | enum { |
431 | MDBA_SET_ENTRY_UNSPEC, | |
432 | MDBA_SET_ENTRY, | |
433 | __MDBA_SET_ENTRY_MAX, | |
434 | }; | |
435 | #define MDBA_SET_ENTRY_MAX (__MDBA_SET_ENTRY_MAX - 1) | |
436 | ||
a60c0903 NA |
437 | /* Embedded inside LINK_XSTATS_TYPE_BRIDGE */ |
438 | enum { | |
439 | BRIDGE_XSTATS_UNSPEC, | |
440 | BRIDGE_XSTATS_VLAN, | |
1080ab95 NA |
441 | BRIDGE_XSTATS_MCAST, |
442 | BRIDGE_XSTATS_PAD, | |
de179966 | 443 | BRIDGE_XSTATS_STP, |
a60c0903 NA |
444 | __BRIDGE_XSTATS_MAX |
445 | }; | |
446 | #define BRIDGE_XSTATS_MAX (__BRIDGE_XSTATS_MAX - 1) | |
447 | ||
1080ab95 NA |
448 | enum { |
449 | BR_MCAST_DIR_RX, | |
450 | BR_MCAST_DIR_TX, | |
451 | BR_MCAST_DIR_SIZE | |
452 | }; | |
453 | ||
454 | /* IGMP/MLD statistics */ | |
455 | struct br_mcast_stats { | |
a65056ec NA |
456 | __u64 igmp_v1queries[BR_MCAST_DIR_SIZE]; |
457 | __u64 igmp_v2queries[BR_MCAST_DIR_SIZE]; | |
458 | __u64 igmp_v3queries[BR_MCAST_DIR_SIZE]; | |
1080ab95 NA |
459 | __u64 igmp_leaves[BR_MCAST_DIR_SIZE]; |
460 | __u64 igmp_v1reports[BR_MCAST_DIR_SIZE]; | |
461 | __u64 igmp_v2reports[BR_MCAST_DIR_SIZE]; | |
462 | __u64 igmp_v3reports[BR_MCAST_DIR_SIZE]; | |
463 | __u64 igmp_parse_errors; | |
464 | ||
a65056ec NA |
465 | __u64 mld_v1queries[BR_MCAST_DIR_SIZE]; |
466 | __u64 mld_v2queries[BR_MCAST_DIR_SIZE]; | |
1080ab95 NA |
467 | __u64 mld_leaves[BR_MCAST_DIR_SIZE]; |
468 | __u64 mld_v1reports[BR_MCAST_DIR_SIZE]; | |
469 | __u64 mld_v2reports[BR_MCAST_DIR_SIZE]; | |
470 | __u64 mld_parse_errors; | |
471 | ||
472 | __u64 mcast_bytes[BR_MCAST_DIR_SIZE]; | |
473 | __u64 mcast_packets[BR_MCAST_DIR_SIZE]; | |
474 | }; | |
a428afe8 NA |
475 | |
476 | /* bridge boolean options | |
70e4272b NA |
477 | * BR_BOOLOPT_NO_LL_LEARN - disable learning from link-local packets |
478 | * | |
a428afe8 NA |
479 | * IMPORTANT: if adding a new option do not forget to handle |
480 | * it in br_boolopt_toggle/get and bridge sysfs | |
481 | */ | |
482 | enum br_boolopt_id { | |
70e4272b | 483 | BR_BOOLOPT_NO_LL_LEARN, |
a428afe8 NA |
484 | BR_BOOLOPT_MAX |
485 | }; | |
486 | ||
487 | /* struct br_boolopt_multi - change multiple bridge boolean options | |
488 | * | |
489 | * @optval: new option values (bit per option) | |
490 | * @optmask: options to change (bit per option) | |
491 | */ | |
492 | struct br_boolopt_multi { | |
493 | __u32 optval; | |
494 | __u32 optmask; | |
495 | }; | |
607ca46e | 496 | #endif /* _UAPI_LINUX_IF_BRIDGE_H */ |