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
233233 IFLA_BR_VLAN_FILTERING,
234234 IFLA_BR_VLAN_PROTOCOL,
235235 IFLA_BR_GROUP_FWD_MASK,
236+ IFLA_BR_ROOT_ID,
236237 __IFLA_BR_MAX,
237238 };
238239
239240 #define IFLA_BR_MAX (__IFLA_BR_MAX - 1)
240241
242+struct ifla_bridge_id {
243+ __u8 prio[2];
244+ __u8 addr[6]; /* ETH_ALEN */
245+};
246+
241247 enum {
242248 BRIDGE_MODE_UNSPEC,
243249 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