History

bridge: netlink: export root id

Add IFLA_BR_ROOT_ID and export br->designated_root via netlink. For this purpose add struct ifla_bridge_id that would represent struct bridge_id.

Nikolay Aleksandrov committed 11 years ago

Commit 5127c811 parent 79102282 files · +14 −1Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/if_link.h+6−0
@@ -233,11 +233,17 @@ enum { · 232 unmodified lines
233 IFLA_BR_VLAN_FILTERING,233 IFLA_BR_VLAN_FILTERING,
234 IFLA_BR_VLAN_PROTOCOL,234 IFLA_BR_VLAN_PROTOCOL,
235 IFLA_BR_GROUP_FWD_MASK,235 IFLA_BR_GROUP_FWD_MASK,
236 IFLA_BR_ROOT_ID,
236 __IFLA_BR_MAX,237 __IFLA_BR_MAX,
237};238};
238 239
239#define IFLA_BR_MAX (__IFLA_BR_MAX - 1)240#define IFLA_BR_MAX (__IFLA_BR_MAX - 1)
240 241
242struct ifla_bridge_id {
243 __u8 prio[2];
244 __u8 addr[6]; /* ETH_ALEN */
245};
246
241enum {247enum {
242 BRIDGE_MODE_UNSPEC,248 BRIDGE_MODE_UNSPEC,
243 BRIDGE_MODE_HAIRPIN,249 BRIDGE_MODE_HAIRPIN,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t