Blame include/uapi/linux/if_bridge.h

Packit Service 3880ab
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
Packit Service 3880ab
/*
Packit Service 3880ab
 *	Linux ethernet bridge
Packit Service 3880ab
 *
Packit Service 3880ab
 *	Authors:
Packit Service 3880ab
 *	Lennert Buytenhek		<buytenh@gnu.org>
Packit Service 3880ab
 *
Packit Service 3880ab
 *	This program is free software; you can redistribute it and/or
Packit Service 3880ab
 *	modify it under the terms of the GNU General Public License
Packit Service 3880ab
 *	as published by the Free Software Foundation; either version
Packit Service 3880ab
 *	2 of the License, or (at your option) any later version.
Packit Service 3880ab
 */
Packit Service 3880ab
Packit Service 3880ab
#ifndef _LINUX_IF_BRIDGE_H
Packit Service 3880ab
#define _LINUX_IF_BRIDGE_H
Packit Service 3880ab
Packit Service 3880ab
#include <linux/types.h>
Packit Service 3880ab
#include <linux/if_ether.h>
Packit Service 3880ab
#include <linux/in6.h>
Packit Service 3880ab
Packit Service 3880ab
#define SYSFS_BRIDGE_ATTR	"bridge"
Packit Service 3880ab
#define SYSFS_BRIDGE_FDB	"brforward"
Packit Service 3880ab
#define SYSFS_BRIDGE_PORT_SUBDIR "brif"
Packit Service 3880ab
#define SYSFS_BRIDGE_PORT_ATTR	"brport"
Packit Service 3880ab
#define SYSFS_BRIDGE_PORT_LINK	"bridge"
Packit Service 3880ab
Packit Service 3880ab
#define BRCTL_VERSION 1
Packit Service 3880ab
Packit Service 3880ab
#define BRCTL_GET_VERSION 0
Packit Service 3880ab
#define BRCTL_GET_BRIDGES 1
Packit Service 3880ab
#define BRCTL_ADD_BRIDGE 2
Packit Service 3880ab
#define BRCTL_DEL_BRIDGE 3
Packit Service 3880ab
#define BRCTL_ADD_IF 4
Packit Service 3880ab
#define BRCTL_DEL_IF 5
Packit Service 3880ab
#define BRCTL_GET_BRIDGE_INFO 6
Packit Service 3880ab
#define BRCTL_GET_PORT_LIST 7
Packit Service 3880ab
#define BRCTL_SET_BRIDGE_FORWARD_DELAY 8
Packit Service 3880ab
#define BRCTL_SET_BRIDGE_HELLO_TIME 9
Packit Service 3880ab
#define BRCTL_SET_BRIDGE_MAX_AGE 10
Packit Service 3880ab
#define BRCTL_SET_AGEING_TIME 11
Packit Service 3880ab
#define BRCTL_SET_GC_INTERVAL 12
Packit Service 3880ab
#define BRCTL_GET_PORT_INFO 13
Packit Service 3880ab
#define BRCTL_SET_BRIDGE_STP_STATE 14
Packit Service 3880ab
#define BRCTL_SET_BRIDGE_PRIORITY 15
Packit Service 3880ab
#define BRCTL_SET_PORT_PRIORITY 16
Packit Service 3880ab
#define BRCTL_SET_PATH_COST 17
Packit Service 3880ab
#define BRCTL_GET_FDB_ENTRIES 18
Packit Service 3880ab
Packit Service 3880ab
#define BR_STATE_DISABLED 0
Packit Service 3880ab
#define BR_STATE_LISTENING 1
Packit Service 3880ab
#define BR_STATE_LEARNING 2
Packit Service 3880ab
#define BR_STATE_FORWARDING 3
Packit Service 3880ab
#define BR_STATE_BLOCKING 4
Packit Service 3880ab
Packit Service 3880ab
struct __bridge_info {
Packit Service 3880ab
	__u64 designated_root;
Packit Service 3880ab
	__u64 bridge_id;
Packit Service 3880ab
	__u32 root_path_cost;
Packit Service 3880ab
	__u32 max_age;
Packit Service 3880ab
	__u32 hello_time;
Packit Service 3880ab
	__u32 forward_delay;
Packit Service 3880ab
	__u32 bridge_max_age;
Packit Service 3880ab
	__u32 bridge_hello_time;
Packit Service 3880ab
	__u32 bridge_forward_delay;
Packit Service 3880ab
	__u8 topology_change;
Packit Service 3880ab
	__u8 topology_change_detected;
Packit Service 3880ab
	__u8 root_port;
Packit Service 3880ab
	__u8 stp_enabled;
Packit Service 3880ab
	__u32 ageing_time;
Packit Service 3880ab
	__u32 gc_interval;
Packit Service 3880ab
	__u32 hello_timer_value;
Packit Service 3880ab
	__u32 tcn_timer_value;
Packit Service 3880ab
	__u32 topology_change_timer_value;
Packit Service 3880ab
	__u32 gc_timer_value;
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
struct __port_info {
Packit Service 3880ab
	__u64 designated_root;
Packit Service 3880ab
	__u64 designated_bridge;
Packit Service 3880ab
	__u16 port_id;
Packit Service 3880ab
	__u16 designated_port;
Packit Service 3880ab
	__u32 path_cost;
Packit Service 3880ab
	__u32 designated_cost;
Packit Service 3880ab
	__u8 state;
Packit Service 3880ab
	__u8 top_change_ack;
Packit Service 3880ab
	__u8 config_pending;
Packit Service 3880ab
	__u8 unused0;
Packit Service 3880ab
	__u32 message_age_timer_value;
Packit Service 3880ab
	__u32 forward_delay_timer_value;
Packit Service 3880ab
	__u32 hold_timer_value;
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
struct __fdb_entry {
Packit Service 3880ab
	__u8 mac_addr[ETH_ALEN];
Packit Service 3880ab
	__u8 port_no;
Packit Service 3880ab
	__u8 is_local;
Packit Service 3880ab
	__u32 ageing_timer_value;
Packit Service 3880ab
	__u8 port_hi;
Packit Service 3880ab
	__u8 pad0;
Packit Service 3880ab
	__u16 unused;
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
/* Bridge Flags */
Packit Service 3880ab
#define BRIDGE_FLAGS_MASTER	1	/* Bridge command to/from master */
Packit Service 3880ab
#define BRIDGE_FLAGS_SELF	2	/* Bridge command to/from lowerdev */
Packit Service 3880ab
Packit Service 3880ab
#define BRIDGE_MODE_VEB		0	/* Default loopback mode */
Packit Service 3880ab
#define BRIDGE_MODE_VEPA	1	/* 802.1Qbg defined VEPA mode */
Packit Service 3880ab
#define BRIDGE_MODE_UNDEF	0xFFFF  /* mode undefined */
Packit Service 3880ab
Packit Service 3880ab
/* Bridge management nested attributes
Packit Service 3880ab
 * [IFLA_AF_SPEC] = {
Packit Service 3880ab
 *     [IFLA_BRIDGE_FLAGS]
Packit Service 3880ab
 *     [IFLA_BRIDGE_MODE]
Packit Service 3880ab
 *     [IFLA_BRIDGE_VLAN_INFO]
Packit Service 3880ab
 * }
Packit Service 3880ab
 */
Packit Service 3880ab
enum {
Packit Service 3880ab
	IFLA_BRIDGE_FLAGS,
Packit Service 3880ab
	IFLA_BRIDGE_MODE,
Packit Service 3880ab
	IFLA_BRIDGE_VLAN_INFO,
Packit Service 3880ab
	IFLA_BRIDGE_VLAN_TUNNEL_INFO,
Packit Service 3880ab
	IFLA_BRIDGE_MRP,
Packit Bot 867fae
	IFLA_BRIDGE_CFM,
Packit Service 3880ab
	__IFLA_BRIDGE_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
#define IFLA_BRIDGE_MAX (__IFLA_BRIDGE_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
#define BRIDGE_VLAN_INFO_MASTER	(1<<0)	/* Operate on Bridge device as well */
Packit Service 3880ab
#define BRIDGE_VLAN_INFO_PVID	(1<<1)	/* VLAN is PVID, ingress untagged */
Packit Service 3880ab
#define BRIDGE_VLAN_INFO_UNTAGGED	(1<<2)	/* VLAN egresses untagged */
Packit Service 3880ab
#define BRIDGE_VLAN_INFO_RANGE_BEGIN	(1<<3) /* VLAN is start of vlan range */
Packit Service 3880ab
#define BRIDGE_VLAN_INFO_RANGE_END	(1<<4) /* VLAN is end of vlan range */
Packit Service 3880ab
#define BRIDGE_VLAN_INFO_BRENTRY	(1<<5) /* Global bridge VLAN entry */
Packit Service 3880ab
#define BRIDGE_VLAN_INFO_ONLY_OPTS	(1<<6) /* Skip create/delete/flags */
Packit Service 3880ab
Packit Service 3880ab
struct bridge_vlan_info {
Packit Service 3880ab
	__u16 flags;
Packit Service 3880ab
	__u16 vid;
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	IFLA_BRIDGE_VLAN_TUNNEL_UNSPEC,
Packit Service 3880ab
	IFLA_BRIDGE_VLAN_TUNNEL_ID,
Packit Service 3880ab
	IFLA_BRIDGE_VLAN_TUNNEL_VID,
Packit Service 3880ab
	IFLA_BRIDGE_VLAN_TUNNEL_FLAGS,
Packit Service 3880ab
	__IFLA_BRIDGE_VLAN_TUNNEL_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
#define IFLA_BRIDGE_VLAN_TUNNEL_MAX (__IFLA_BRIDGE_VLAN_TUNNEL_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
struct bridge_vlan_xstats {
Packit Service 3880ab
	__u64 rx_bytes;
Packit Service 3880ab
	__u64 rx_packets;
Packit Service 3880ab
	__u64 tx_bytes;
Packit Service 3880ab
	__u64 tx_packets;
Packit Service 3880ab
	__u16 vid;
Packit Service 3880ab
	__u16 flags;
Packit Service 3880ab
	__u32 pad2;
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	IFLA_BRIDGE_MRP_UNSPEC,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_INSTANCE,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_PORT_STATE,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_PORT_ROLE,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_RING_STATE,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_RING_ROLE,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_START_TEST,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_INFO,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_IN_ROLE,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_IN_STATE,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_START_IN_TEST,
Packit Service 3880ab
	__IFLA_BRIDGE_MRP_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
#define IFLA_BRIDGE_MRP_MAX (__IFLA_BRIDGE_MRP_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	IFLA_BRIDGE_MRP_INSTANCE_UNSPEC,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_INSTANCE_RING_ID,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_INSTANCE_P_IFINDEX,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_INSTANCE_S_IFINDEX,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_INSTANCE_PRIO,
Packit Service 3880ab
	__IFLA_BRIDGE_MRP_INSTANCE_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
#define IFLA_BRIDGE_MRP_INSTANCE_MAX (__IFLA_BRIDGE_MRP_INSTANCE_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	IFLA_BRIDGE_MRP_PORT_STATE_UNSPEC,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_PORT_STATE_STATE,
Packit Service 3880ab
	__IFLA_BRIDGE_MRP_PORT_STATE_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
#define IFLA_BRIDGE_MRP_PORT_STATE_MAX (__IFLA_BRIDGE_MRP_PORT_STATE_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	IFLA_BRIDGE_MRP_PORT_ROLE_UNSPEC,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_PORT_ROLE_ROLE,
Packit Service 3880ab
	__IFLA_BRIDGE_MRP_PORT_ROLE_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
#define IFLA_BRIDGE_MRP_PORT_ROLE_MAX (__IFLA_BRIDGE_MRP_PORT_ROLE_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	IFLA_BRIDGE_MRP_RING_STATE_UNSPEC,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_RING_STATE_RING_ID,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_RING_STATE_STATE,
Packit Service 3880ab
	__IFLA_BRIDGE_MRP_RING_STATE_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
#define IFLA_BRIDGE_MRP_RING_STATE_MAX (__IFLA_BRIDGE_MRP_RING_STATE_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	IFLA_BRIDGE_MRP_RING_ROLE_UNSPEC,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_RING_ROLE_RING_ID,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_RING_ROLE_ROLE,
Packit Service 3880ab
	__IFLA_BRIDGE_MRP_RING_ROLE_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
#define IFLA_BRIDGE_MRP_RING_ROLE_MAX (__IFLA_BRIDGE_MRP_RING_ROLE_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	IFLA_BRIDGE_MRP_START_TEST_UNSPEC,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_START_TEST_RING_ID,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_START_TEST_INTERVAL,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_START_TEST_MAX_MISS,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_START_TEST_PERIOD,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_START_TEST_MONITOR,
Packit Service 3880ab
	__IFLA_BRIDGE_MRP_START_TEST_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
#define IFLA_BRIDGE_MRP_START_TEST_MAX (__IFLA_BRIDGE_MRP_START_TEST_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	IFLA_BRIDGE_MRP_INFO_UNSPEC,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_INFO_RING_ID,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_INFO_P_IFINDEX,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_INFO_S_IFINDEX,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_INFO_PRIO,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_INFO_RING_STATE,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_INFO_RING_ROLE,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_INFO_TEST_INTERVAL,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_INFO_TEST_MAX_MISS,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_INFO_TEST_MONITOR,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_INFO_I_IFINDEX,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_INFO_IN_STATE,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_INFO_IN_ROLE,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_INFO_IN_TEST_INTERVAL,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_INFO_IN_TEST_MAX_MISS,
Packit Service 3880ab
	__IFLA_BRIDGE_MRP_INFO_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
#define IFLA_BRIDGE_MRP_INFO_MAX (__IFLA_BRIDGE_MRP_INFO_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	IFLA_BRIDGE_MRP_IN_STATE_UNSPEC,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_IN_STATE_IN_ID,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_IN_STATE_STATE,
Packit Service 3880ab
	__IFLA_BRIDGE_MRP_IN_STATE_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
#define IFLA_BRIDGE_MRP_IN_STATE_MAX (__IFLA_BRIDGE_MRP_IN_STATE_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	IFLA_BRIDGE_MRP_IN_ROLE_UNSPEC,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_IN_ROLE_RING_ID,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_IN_ROLE_IN_ID,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_IN_ROLE_ROLE,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_IN_ROLE_I_IFINDEX,
Packit Service 3880ab
	__IFLA_BRIDGE_MRP_IN_ROLE_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
#define IFLA_BRIDGE_MRP_IN_ROLE_MAX (__IFLA_BRIDGE_MRP_IN_ROLE_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	IFLA_BRIDGE_MRP_START_IN_TEST_UNSPEC,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_START_IN_TEST_IN_ID,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_START_IN_TEST_INTERVAL,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_START_IN_TEST_MAX_MISS,
Packit Service 3880ab
	IFLA_BRIDGE_MRP_START_IN_TEST_PERIOD,
Packit Service 3880ab
	__IFLA_BRIDGE_MRP_START_IN_TEST_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
#define IFLA_BRIDGE_MRP_START_IN_TEST_MAX (__IFLA_BRIDGE_MRP_START_IN_TEST_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
struct br_mrp_instance {
Packit Service 3880ab
	__u32 ring_id;
Packit Service 3880ab
	__u32 p_ifindex;
Packit Service 3880ab
	__u32 s_ifindex;
Packit Service 3880ab
	__u16 prio;
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
struct br_mrp_ring_state {
Packit Service 3880ab
	__u32 ring_id;
Packit Service 3880ab
	__u32 ring_state;
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
struct br_mrp_ring_role {
Packit Service 3880ab
	__u32 ring_id;
Packit Service 3880ab
	__u32 ring_role;
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
struct br_mrp_start_test {
Packit Service 3880ab
	__u32 ring_id;
Packit Service 3880ab
	__u32 interval;
Packit Service 3880ab
	__u32 max_miss;
Packit Service 3880ab
	__u32 period;
Packit Service 3880ab
	__u32 monitor;
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
struct br_mrp_in_state {
Packit Service 3880ab
	__u32 in_state;
Packit Service 3880ab
	__u16 in_id;
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
struct br_mrp_in_role {
Packit Service 3880ab
	__u32 ring_id;
Packit Service 3880ab
	__u32 in_role;
Packit Service 3880ab
	__u32 i_ifindex;
Packit Service 3880ab
	__u16 in_id;
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
struct br_mrp_start_in_test {
Packit Service 3880ab
	__u32 interval;
Packit Service 3880ab
	__u32 max_miss;
Packit Service 3880ab
	__u32 period;
Packit Service 3880ab
	__u16 in_id;
Packit Service 3880ab
};
Packit Service 3880ab
Packit Bot 867fae
enum {
Packit Bot 867fae
	IFLA_BRIDGE_CFM_UNSPEC,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_CREATE,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_DELETE,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_CONFIG,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_CONFIG,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_PEER_MEP_ADD,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_PEER_MEP_REMOVE,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_RDI,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_CCM_TX,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_CREATE_INFO,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_CONFIG_INFO,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_CONFIG_INFO,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_RDI_INFO,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_CCM_TX_INFO,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_PEER_MEP_INFO,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_STATUS_INFO,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_PEER_STATUS_INFO,
Packit Bot 867fae
	__IFLA_BRIDGE_CFM_MAX,
Packit Bot 867fae
};
Packit Bot 867fae
Packit Bot 867fae
#define IFLA_BRIDGE_CFM_MAX (__IFLA_BRIDGE_CFM_MAX - 1)
Packit Bot 867fae
Packit Bot 867fae
enum {
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_CREATE_UNSPEC,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_CREATE_INSTANCE,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_CREATE_DOMAIN,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_CREATE_DIRECTION,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_CREATE_IFINDEX,
Packit Bot 867fae
	__IFLA_BRIDGE_CFM_MEP_CREATE_MAX,
Packit Bot 867fae
};
Packit Bot 867fae
Packit Bot 867fae
#define IFLA_BRIDGE_CFM_MEP_CREATE_MAX (__IFLA_BRIDGE_CFM_MEP_CREATE_MAX - 1)
Packit Bot 867fae
Packit Bot 867fae
enum {
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_DELETE_UNSPEC,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_DELETE_INSTANCE,
Packit Bot 867fae
	__IFLA_BRIDGE_CFM_MEP_DELETE_MAX,
Packit Bot 867fae
};
Packit Bot 867fae
Packit Bot 867fae
#define IFLA_BRIDGE_CFM_MEP_DELETE_MAX (__IFLA_BRIDGE_CFM_MEP_DELETE_MAX - 1)
Packit Bot 867fae
Packit Bot 867fae
enum {
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_CONFIG_UNSPEC,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_CONFIG_INSTANCE,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_CONFIG_UNICAST_MAC,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_CONFIG_MDLEVEL,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_CONFIG_MEPID,
Packit Bot 867fae
	__IFLA_BRIDGE_CFM_MEP_CONFIG_MAX,
Packit Bot 867fae
};
Packit Bot 867fae
Packit Bot 867fae
#define IFLA_BRIDGE_CFM_MEP_CONFIG_MAX (__IFLA_BRIDGE_CFM_MEP_CONFIG_MAX - 1)
Packit Bot 867fae
Packit Bot 867fae
enum {
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_CONFIG_UNSPEC,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_CONFIG_INSTANCE,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_CONFIG_ENABLE,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_CONFIG_EXP_INTERVAL,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_CONFIG_EXP_MAID,
Packit Bot 867fae
	__IFLA_BRIDGE_CFM_CC_CONFIG_MAX,
Packit Bot 867fae
};
Packit Bot 867fae
Packit Bot 867fae
#define IFLA_BRIDGE_CFM_CC_CONFIG_MAX (__IFLA_BRIDGE_CFM_CC_CONFIG_MAX - 1)
Packit Bot 867fae
Packit Bot 867fae
enum {
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_PEER_MEP_UNSPEC,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_PEER_MEP_INSTANCE,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_PEER_MEPID,
Packit Bot 867fae
	__IFLA_BRIDGE_CFM_CC_PEER_MEP_MAX,
Packit Bot 867fae
};
Packit Bot 867fae
Packit Bot 867fae
#define IFLA_BRIDGE_CFM_CC_PEER_MEP_MAX (__IFLA_BRIDGE_CFM_CC_PEER_MEP_MAX - 1)
Packit Bot 867fae
Packit Bot 867fae
enum {
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_RDI_UNSPEC,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_RDI_INSTANCE,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_RDI_RDI,
Packit Bot 867fae
	__IFLA_BRIDGE_CFM_CC_RDI_MAX,
Packit Bot 867fae
};
Packit Bot 867fae
Packit Bot 867fae
#define IFLA_BRIDGE_CFM_CC_RDI_MAX (__IFLA_BRIDGE_CFM_CC_RDI_MAX - 1)
Packit Bot 867fae
Packit Bot 867fae
enum {
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_CCM_TX_UNSPEC,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_CCM_TX_INSTANCE,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_CCM_TX_DMAC,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_CCM_TX_SEQ_NO_UPDATE,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_CCM_TX_PERIOD,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_CCM_TX_IF_TLV,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_CCM_TX_IF_TLV_VALUE,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_CCM_TX_PORT_TLV,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_CCM_TX_PORT_TLV_VALUE,
Packit Bot 867fae
	__IFLA_BRIDGE_CFM_CC_CCM_TX_MAX,
Packit Bot 867fae
};
Packit Bot 867fae
Packit Bot 867fae
#define IFLA_BRIDGE_CFM_CC_CCM_TX_MAX (__IFLA_BRIDGE_CFM_CC_CCM_TX_MAX - 1)
Packit Bot 867fae
Packit Bot 867fae
enum {
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_STATUS_UNSPEC,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_STATUS_INSTANCE,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_STATUS_OPCODE_UNEXP_SEEN,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_STATUS_VERSION_UNEXP_SEEN,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_MEP_STATUS_RX_LEVEL_LOW_SEEN,
Packit Bot 867fae
	__IFLA_BRIDGE_CFM_MEP_STATUS_MAX,
Packit Bot 867fae
};
Packit Bot 867fae
Packit Bot 867fae
#define IFLA_BRIDGE_CFM_MEP_STATUS_MAX (__IFLA_BRIDGE_CFM_MEP_STATUS_MAX - 1)
Packit Bot 867fae
Packit Bot 867fae
enum {
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_PEER_STATUS_UNSPEC,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_PEER_STATUS_INSTANCE,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_PEER_STATUS_PEER_MEPID,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_PEER_STATUS_CCM_DEFECT,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_PEER_STATUS_RDI,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_PEER_STATUS_PORT_TLV_VALUE,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_PEER_STATUS_IF_TLV_VALUE,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_PEER_STATUS_SEEN,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_PEER_STATUS_TLV_SEEN,
Packit Bot 867fae
	IFLA_BRIDGE_CFM_CC_PEER_STATUS_SEQ_UNEXP_SEEN,
Packit Bot 867fae
	__IFLA_BRIDGE_CFM_CC_PEER_STATUS_MAX,
Packit Bot 867fae
};
Packit Bot 867fae
Packit Bot 867fae
#define IFLA_BRIDGE_CFM_CC_PEER_STATUS_MAX (__IFLA_BRIDGE_CFM_CC_PEER_STATUS_MAX - 1)
Packit Bot 867fae
Packit Service 3880ab
struct bridge_stp_xstats {
Packit Service 3880ab
	__u64 transition_blk;
Packit Service 3880ab
	__u64 transition_fwd;
Packit Service 3880ab
	__u64 rx_bpdu;
Packit Service 3880ab
	__u64 tx_bpdu;
Packit Service 3880ab
	__u64 rx_tcn;
Packit Service 3880ab
	__u64 tx_tcn;
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
/* Bridge vlan RTM header */
Packit Service 3880ab
struct br_vlan_msg {
Packit Service 3880ab
	__u8 family;
Packit Service 3880ab
	__u8 reserved1;
Packit Service 3880ab
	__u16 reserved2;
Packit Service 3880ab
	__u32 ifindex;
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	BRIDGE_VLANDB_DUMP_UNSPEC,
Packit Service 3880ab
	BRIDGE_VLANDB_DUMP_FLAGS,
Packit Service 3880ab
	__BRIDGE_VLANDB_DUMP_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
#define BRIDGE_VLANDB_DUMP_MAX (__BRIDGE_VLANDB_DUMP_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
/* flags used in BRIDGE_VLANDB_DUMP_FLAGS attribute to affect dumps */
Packit Service 3880ab
#define BRIDGE_VLANDB_DUMPF_STATS	(1 << 0) /* Include stats in the dump */
Packit Service 3880ab
Packit Service 3880ab
/* Bridge vlan RTM attributes
Packit Service 3880ab
 * [BRIDGE_VLANDB_ENTRY] = {
Packit Service 3880ab
 *     [BRIDGE_VLANDB_ENTRY_INFO]
Packit Service 3880ab
 *     ...
Packit Service 3880ab
 * }
Packit Service 3880ab
 */
Packit Service 3880ab
enum {
Packit Service 3880ab
	BRIDGE_VLANDB_UNSPEC,
Packit Service 3880ab
	BRIDGE_VLANDB_ENTRY,
Packit Service 3880ab
	__BRIDGE_VLANDB_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
#define BRIDGE_VLANDB_MAX (__BRIDGE_VLANDB_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	BRIDGE_VLANDB_ENTRY_UNSPEC,
Packit Service 3880ab
	BRIDGE_VLANDB_ENTRY_INFO,
Packit Service 3880ab
	BRIDGE_VLANDB_ENTRY_RANGE,
Packit Service 3880ab
	BRIDGE_VLANDB_ENTRY_STATE,
Packit Service 3880ab
	BRIDGE_VLANDB_ENTRY_TUNNEL_INFO,
Packit Service 3880ab
	BRIDGE_VLANDB_ENTRY_STATS,
Packit Service 3880ab
	__BRIDGE_VLANDB_ENTRY_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
#define BRIDGE_VLANDB_ENTRY_MAX (__BRIDGE_VLANDB_ENTRY_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
/* [BRIDGE_VLANDB_ENTRY] = {
Packit Service 3880ab
 *     [BRIDGE_VLANDB_ENTRY_TUNNEL_INFO] = {
Packit Service 3880ab
 *         [BRIDGE_VLANDB_TINFO_ID]
Packit Service 3880ab
 *         ...
Packit Service 3880ab
 *     }
Packit Service 3880ab
 * }
Packit Service 3880ab
 */
Packit Service 3880ab
enum {
Packit Service 3880ab
	BRIDGE_VLANDB_TINFO_UNSPEC,
Packit Service 3880ab
	BRIDGE_VLANDB_TINFO_ID,
Packit Service 3880ab
	BRIDGE_VLANDB_TINFO_CMD,
Packit Service 3880ab
	__BRIDGE_VLANDB_TINFO_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
#define BRIDGE_VLANDB_TINFO_MAX (__BRIDGE_VLANDB_TINFO_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
/* [BRIDGE_VLANDB_ENTRY] = {
Packit Service 3880ab
 *     [BRIDGE_VLANDB_ENTRY_STATS] = {
Packit Service 3880ab
 *         [BRIDGE_VLANDB_STATS_RX_BYTES]
Packit Service 3880ab
 *         ...
Packit Service 3880ab
 *     }
Packit Service 3880ab
 *     ...
Packit Service 3880ab
 * }
Packit Service 3880ab
 */
Packit Service 3880ab
enum {
Packit Service 3880ab
	BRIDGE_VLANDB_STATS_UNSPEC,
Packit Service 3880ab
	BRIDGE_VLANDB_STATS_RX_BYTES,
Packit Service 3880ab
	BRIDGE_VLANDB_STATS_RX_PACKETS,
Packit Service 3880ab
	BRIDGE_VLANDB_STATS_TX_BYTES,
Packit Service 3880ab
	BRIDGE_VLANDB_STATS_TX_PACKETS,
Packit Service 3880ab
	BRIDGE_VLANDB_STATS_PAD,
Packit Service 3880ab
	__BRIDGE_VLANDB_STATS_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
#define BRIDGE_VLANDB_STATS_MAX (__BRIDGE_VLANDB_STATS_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
/* Bridge multicast database attributes
Packit Service 3880ab
 * [MDBA_MDB] = {
Packit Service 3880ab
 *     [MDBA_MDB_ENTRY] = {
Packit Service 3880ab
 *         [MDBA_MDB_ENTRY_INFO] {
Packit Service 3880ab
 *		struct br_mdb_entry
Packit Service 3880ab
 *		[MDBA_MDB_EATTR attributes]
Packit Service 3880ab
 *         }
Packit Service 3880ab
 *     }
Packit Service 3880ab
 * }
Packit Service 3880ab
 * [MDBA_ROUTER] = {
Packit Service 3880ab
 *    [MDBA_ROUTER_PORT] = {
Packit Service 3880ab
 *        u32 ifindex
Packit Service 3880ab
 *        [MDBA_ROUTER_PATTR attributes]
Packit Service 3880ab
 *    }
Packit Service 3880ab
 * }
Packit Service 3880ab
 */
Packit Service 3880ab
enum {
Packit Service 3880ab
	MDBA_UNSPEC,
Packit Service 3880ab
	MDBA_MDB,
Packit Service 3880ab
	MDBA_ROUTER,
Packit Service 3880ab
	__MDBA_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
#define MDBA_MAX (__MDBA_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	MDBA_MDB_UNSPEC,
Packit Service 3880ab
	MDBA_MDB_ENTRY,
Packit Service 3880ab
	__MDBA_MDB_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
#define MDBA_MDB_MAX (__MDBA_MDB_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	MDBA_MDB_ENTRY_UNSPEC,
Packit Service 3880ab
	MDBA_MDB_ENTRY_INFO,
Packit Service 3880ab
	__MDBA_MDB_ENTRY_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
#define MDBA_MDB_ENTRY_MAX (__MDBA_MDB_ENTRY_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
/* per mdb entry additional attributes */
Packit Service 3880ab
enum {
Packit Service 3880ab
	MDBA_MDB_EATTR_UNSPEC,
Packit Service 3880ab
	MDBA_MDB_EATTR_TIMER,
Packit Bot 867fae
	MDBA_MDB_EATTR_SRC_LIST,
Packit Bot 867fae
	MDBA_MDB_EATTR_GROUP_MODE,
Packit Bot 867fae
	MDBA_MDB_EATTR_SOURCE,
Packit Bot 867fae
	MDBA_MDB_EATTR_RTPROT,
Packit Service 3880ab
	__MDBA_MDB_EATTR_MAX
Packit Service 3880ab
};
Packit Service 3880ab
#define MDBA_MDB_EATTR_MAX (__MDBA_MDB_EATTR_MAX - 1)
Packit Service 3880ab
Packit Bot 867fae
/* per mdb entry source */
Packit Bot 867fae
enum {
Packit Bot 867fae
	MDBA_MDB_SRCLIST_UNSPEC,
Packit Bot 867fae
	MDBA_MDB_SRCLIST_ENTRY,
Packit Bot 867fae
	__MDBA_MDB_SRCLIST_MAX
Packit Bot 867fae
};
Packit Bot 867fae
#define MDBA_MDB_SRCLIST_MAX (__MDBA_MDB_SRCLIST_MAX - 1)
Packit Bot 867fae
Packit Bot 867fae
/* per mdb entry per source attributes
Packit Bot 867fae
 * these are embedded in MDBA_MDB_SRCLIST_ENTRY
Packit Bot 867fae
 */
Packit Bot 867fae
enum {
Packit Bot 867fae
	MDBA_MDB_SRCATTR_UNSPEC,
Packit Bot 867fae
	MDBA_MDB_SRCATTR_ADDRESS,
Packit Bot 867fae
	MDBA_MDB_SRCATTR_TIMER,
Packit Bot 867fae
	__MDBA_MDB_SRCATTR_MAX
Packit Bot 867fae
};
Packit Bot 867fae
#define MDBA_MDB_SRCATTR_MAX (__MDBA_MDB_SRCATTR_MAX - 1)
Packit Bot 867fae
Packit Service 3880ab
/* multicast router types */
Packit Service 3880ab
enum {
Packit Service 3880ab
	MDB_RTR_TYPE_DISABLED,
Packit Service 3880ab
	MDB_RTR_TYPE_TEMP_QUERY,
Packit Service 3880ab
	MDB_RTR_TYPE_PERM,
Packit Service 3880ab
	MDB_RTR_TYPE_TEMP
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	MDBA_ROUTER_UNSPEC,
Packit Service 3880ab
	MDBA_ROUTER_PORT,
Packit Service 3880ab
	__MDBA_ROUTER_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
#define MDBA_ROUTER_MAX (__MDBA_ROUTER_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
/* router port attributes */
Packit Service 3880ab
enum {
Packit Service 3880ab
	MDBA_ROUTER_PATTR_UNSPEC,
Packit Service 3880ab
	MDBA_ROUTER_PATTR_TIMER,
Packit Service 3880ab
	MDBA_ROUTER_PATTR_TYPE,
Packit Service 3880ab
	__MDBA_ROUTER_PATTR_MAX
Packit Service 3880ab
};
Packit Service 3880ab
#define MDBA_ROUTER_PATTR_MAX (__MDBA_ROUTER_PATTR_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
struct br_port_msg {
Packit Service 3880ab
	__u8  family;
Packit Service 3880ab
	__u32 ifindex;
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
struct br_mdb_entry {
Packit Service 3880ab
	__u32 ifindex;
Packit Service 3880ab
#define MDB_TEMPORARY 0
Packit Service 3880ab
#define MDB_PERMANENT 1
Packit Service 3880ab
	__u8 state;
Packit Service 3880ab
#define MDB_FLAGS_OFFLOAD	(1 << 0)
Packit Service 3880ab
#define MDB_FLAGS_FAST_LEAVE	(1 << 1)
Packit Bot 867fae
#define MDB_FLAGS_STAR_EXCL	(1 << 2)
Packit Bot 867fae
#define MDB_FLAGS_BLOCKED	(1 << 3)
Packit Service 3880ab
	__u8 flags;
Packit Service 3880ab
	__u16 vid;
Packit Service 3880ab
	struct {
Packit Service 3880ab
		union {
Packit Service 3880ab
			__be32	ip4;
Packit Service 3880ab
			struct in6_addr ip6;
Packit Bot 867fae
			unsigned char mac_addr[ETH_ALEN];
Packit Service 3880ab
		} u;
Packit Service 3880ab
		__be16		proto;
Packit Service 3880ab
	} addr;
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	MDBA_SET_ENTRY_UNSPEC,
Packit Service 3880ab
	MDBA_SET_ENTRY,
Packit Bot 867fae
	MDBA_SET_ENTRY_ATTRS,
Packit Service 3880ab
	__MDBA_SET_ENTRY_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
#define MDBA_SET_ENTRY_MAX (__MDBA_SET_ENTRY_MAX - 1)
Packit Service 3880ab
Packit Bot 867fae
/* [MDBA_SET_ENTRY_ATTRS] = {
Packit Bot 867fae
 *    [MDBE_ATTR_xxx]
Packit Bot 867fae
 *    ...
Packit Bot 867fae
 * }
Packit Bot 867fae
 */
Packit Bot 867fae
enum {
Packit Bot 867fae
	MDBE_ATTR_UNSPEC,
Packit Bot 867fae
	MDBE_ATTR_SOURCE,
Packit Bot 867fae
	__MDBE_ATTR_MAX,
Packit Bot 867fae
};
Packit Bot 867fae
#define MDBE_ATTR_MAX (__MDBE_ATTR_MAX - 1)
Packit Bot 867fae
Packit Service 3880ab
/* Embedded inside LINK_XSTATS_TYPE_BRIDGE */
Packit Service 3880ab
enum {
Packit Service 3880ab
	BRIDGE_XSTATS_UNSPEC,
Packit Service 3880ab
	BRIDGE_XSTATS_VLAN,
Packit Service 3880ab
	BRIDGE_XSTATS_MCAST,
Packit Service 3880ab
	BRIDGE_XSTATS_PAD,
Packit Service 3880ab
	BRIDGE_XSTATS_STP,
Packit Service 3880ab
	__BRIDGE_XSTATS_MAX
Packit Service 3880ab
};
Packit Service 3880ab
#define BRIDGE_XSTATS_MAX (__BRIDGE_XSTATS_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	BR_MCAST_DIR_RX,
Packit Service 3880ab
	BR_MCAST_DIR_TX,
Packit Service 3880ab
	BR_MCAST_DIR_SIZE
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
/* IGMP/MLD statistics */
Packit Service 3880ab
struct br_mcast_stats {
Packit Service 3880ab
	__u64 igmp_v1queries[BR_MCAST_DIR_SIZE];
Packit Service 3880ab
	__u64 igmp_v2queries[BR_MCAST_DIR_SIZE];
Packit Service 3880ab
	__u64 igmp_v3queries[BR_MCAST_DIR_SIZE];
Packit Service 3880ab
	__u64 igmp_leaves[BR_MCAST_DIR_SIZE];
Packit Service 3880ab
	__u64 igmp_v1reports[BR_MCAST_DIR_SIZE];
Packit Service 3880ab
	__u64 igmp_v2reports[BR_MCAST_DIR_SIZE];
Packit Service 3880ab
	__u64 igmp_v3reports[BR_MCAST_DIR_SIZE];
Packit Service 3880ab
	__u64 igmp_parse_errors;
Packit Service 3880ab
Packit Service 3880ab
	__u64 mld_v1queries[BR_MCAST_DIR_SIZE];
Packit Service 3880ab
	__u64 mld_v2queries[BR_MCAST_DIR_SIZE];
Packit Service 3880ab
	__u64 mld_leaves[BR_MCAST_DIR_SIZE];
Packit Service 3880ab
	__u64 mld_v1reports[BR_MCAST_DIR_SIZE];
Packit Service 3880ab
	__u64 mld_v2reports[BR_MCAST_DIR_SIZE];
Packit Service 3880ab
	__u64 mld_parse_errors;
Packit Service 3880ab
Packit Service 3880ab
	__u64 mcast_bytes[BR_MCAST_DIR_SIZE];
Packit Service 3880ab
	__u64 mcast_packets[BR_MCAST_DIR_SIZE];
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
/* bridge boolean options
Packit Service 3880ab
 * BR_BOOLOPT_NO_LL_LEARN - disable learning from link-local packets
Packit Service 3880ab
 *
Packit Service 3880ab
 * IMPORTANT: if adding a new option do not forget to handle
Packit Service 3880ab
 *            it in br_boolopt_toggle/get and bridge sysfs
Packit Service 3880ab
 */
Packit Service 3880ab
enum br_boolopt_id {
Packit Service 3880ab
	BR_BOOLOPT_NO_LL_LEARN,
Packit Service 3880ab
	BR_BOOLOPT_MAX
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
/* struct br_boolopt_multi - change multiple bridge boolean options
Packit Service 3880ab
 *
Packit Service 3880ab
 * @optval: new option values (bit per option)
Packit Service 3880ab
 * @optmask: options to change (bit per option)
Packit Service 3880ab
 */
Packit Service 3880ab
struct br_boolopt_multi {
Packit Service 3880ab
	__u32 optval;
Packit Service 3880ab
	__u32 optmask;
Packit Service 3880ab
};
Packit Service 3880ab
#endif /* _LINUX_IF_BRIDGE_H */