unsigned short iftype;
struct ether_addr mac_address;
struct ether_addr permanent_mac_address;
+ uint32_t master;
uint32_t mtu;
uint32_t min_mtu;
uint32_t max_mtu;
return log_oom();
}
+ (void) sd_netlink_message_read_u32(m, IFLA_MASTER, &info->master);
+
/* fill kind info */
(void) decode_netdev(m, info);
return table_log_add_error(r);
}
+ if (info->master > 0) {
+ r = table_add_many(table,
+ TABLE_EMPTY,
+ TABLE_STRING, "Master:",
+ TABLE_IFINDEX, info->master);
+ if (r < 0)
+ return table_log_add_error(r);
+ }
+
if (streq_ptr(info->netdev_kind, "bridge")) {
r = table_add_many(table,
TABLE_EMPTY,