Lines Matching refs:info

12         _cleanup_(link_info_clear) LinkInfo info = LINK_INFO_NULL;  in test_link_info_one()
19 assert_se(link_info_get(&rtnl, ifindex, &info) >= 0); in test_link_info_one()
24 log_debug("iftype: %"PRIu16" (%s)", info.iftype, strna(arphrd_to_name(info.iftype))); in test_link_info_one()
27 assert_se(u == info.iftype); in test_link_info_one()
30 assert_se(u == info.iftype); in test_link_info_one()
33 log_debug("hardware address length: %zu", info.hw_addr.length); in test_link_info_one()
36 assert_se(u == info.hw_addr.length); in test_link_info_one()
39 assert_se(u == info.hw_addr.length); in test_link_info_one()
42 log_debug("hardware address: %s", HW_ADDR_TO_STR(&info.hw_addr)); in test_link_info_one()
44 assert_se(streq(s, HW_ADDR_TO_STR(&info.hw_addr))); in test_link_info_one()
46 assert_se(streq(s, HW_ADDR_TO_STR(&info.hw_addr))); in test_link_info_one()
49 log_debug("broadcast address: %s", HW_ADDR_TO_STR(&info.broadcast)); in test_link_info_one()
51 assert_se(streq(s, HW_ADDR_TO_STR(&info.broadcast))); in test_link_info_one()
53 assert_se(streq(s, HW_ADDR_TO_STR(&info.broadcast))); in test_link_info_one()
56 log_debug("ifname: %s", info.ifname); in test_link_info_one()
58 assert_se(streq(s, info.ifname)); in test_link_info_one()
60 assert_se(streq(s, info.ifname)); in test_link_info_one()
63 log_debug("mtu: %"PRIu32, info.mtu); in test_link_info_one()
66 assert_se(u == info.mtu); in test_link_info_one()
69 assert_se(u == info.mtu); in test_link_info_one()
72 log_debug("iflink: %"PRIu32, info.iflink); in test_link_info_one()
75 assert_se(u == info.iflink); in test_link_info_one()
78 assert_se(u == info.iflink); in test_link_info_one()
81 log_debug("link_mode: %"PRIu8, info.link_mode); in test_link_info_one()
84 assert_se(u == info.link_mode); in test_link_info_one()
87 assert_se(u == info.link_mode); in test_link_info_one()
90 log_debug("ifalias: %s", strna(info.ifalias)); in test_link_info_one()
92 assert_se(streq(s, strempty(info.ifalias))); in test_link_info_one()
94 assert_se(streq(s, strempty(info.ifalias))); in test_link_info_one()
97 log_debug("netdev_group: %"PRIu32, info.group); in test_link_info_one()
100 assert_se(u == info.group); in test_link_info_one()
103 assert_se(u == info.group); in test_link_info_one()
107 info.phys_port_id_supported ? "supported" : "unsupported"); in test_link_info_one()
115 info.phys_switch_id_supported ? "supported" : "unsupported"); in test_link_info_one()
123 strna(info.phys_port_name), in test_link_info_one()
124 info.phys_port_name_supported ? "supported" : "unsupported"); in test_link_info_one()
129 if (info.phys_port_name_supported) { in test_link_info_one()
130 assert_se(streq_ptr(s, info.phys_port_name)); in test_link_info_one()
131 assert_se(streq_ptr(t, info.phys_port_name)); in test_link_info_one()