Lines Matching refs:info

377 static int decode_netdev(sd_netlink_message *m, LinkInfo *info) {  in decode_netdev()  argument
381 assert(info); in decode_netdev()
387 r = sd_netlink_message_read_string_strdup(m, IFLA_INFO_KIND, &info->netdev_kind); in decode_netdev()
397 if (streq(info->netdev_kind, "bridge")) { in decode_netdev()
398 (void) sd_netlink_message_read_u32(m, IFLA_BR_FORWARD_DELAY, &info->forward_delay); in decode_netdev()
399 (void) sd_netlink_message_read_u32(m, IFLA_BR_HELLO_TIME, &info->hello_time); in decode_netdev()
400 (void) sd_netlink_message_read_u32(m, IFLA_BR_MAX_AGE, &info->max_age); in decode_netdev()
401 (void) sd_netlink_message_read_u32(m, IFLA_BR_AGEING_TIME, &info->ageing_time); in decode_netdev()
402 (void) sd_netlink_message_read_u32(m, IFLA_BR_STP_STATE, &info->stp_state); in decode_netdev()
403 (void) sd_netlink_message_read_u32(m, IFLA_BRPORT_COST, &info->cost); in decode_netdev()
404 (void) sd_netlink_message_read_u16(m, IFLA_BR_PRIORITY, &info->priority); in decode_netdev()
405 … (void) sd_netlink_message_read_u8(m, IFLA_BR_MCAST_IGMP_VERSION, &info->mcast_igmp_version); in decode_netdev()
406 (void) sd_netlink_message_read_u8(m, IFLA_BRPORT_STATE, &info->port_state); in decode_netdev()
407 } if (streq(info->netdev_kind, "bond")) { in decode_netdev()
408 (void) sd_netlink_message_read_u8(m, IFLA_BOND_MODE, &info->mode); in decode_netdev()
409 (void) sd_netlink_message_read_u32(m, IFLA_BOND_MIIMON, &info->miimon); in decode_netdev()
410 (void) sd_netlink_message_read_u32(m, IFLA_BOND_DOWNDELAY, &info->downdelay); in decode_netdev()
411 (void) sd_netlink_message_read_u32(m, IFLA_BOND_UPDELAY, &info->updelay); in decode_netdev()
412 } else if (streq(info->netdev_kind, "vxlan")) { in decode_netdev()
413 (void) sd_netlink_message_read_u32(m, IFLA_VXLAN_ID, &info->vxlan_info.vni); in decode_netdev()
415 … r = sd_netlink_message_read_in_addr(m, IFLA_VXLAN_GROUP, &info->vxlan_info.group.in); in decode_netdev()
417 info->vxlan_info.group_family = AF_INET; in decode_netdev()
419 … r = sd_netlink_message_read_in6_addr(m, IFLA_VXLAN_GROUP6, &info->vxlan_info.group.in6); in decode_netdev()
421 info->vxlan_info.group_family = AF_INET6; in decode_netdev()
424 … r = sd_netlink_message_read_in_addr(m, IFLA_VXLAN_LOCAL, &info->vxlan_info.local.in); in decode_netdev()
426 info->vxlan_info.local_family = AF_INET; in decode_netdev()
428 … r = sd_netlink_message_read_in6_addr(m, IFLA_VXLAN_LOCAL6, &info->vxlan_info.local.in6); in decode_netdev()
430 info->vxlan_info.local_family = AF_INET6; in decode_netdev()
433 (void) sd_netlink_message_read_u32(m, IFLA_VXLAN_LINK, &info->vxlan_info.link); in decode_netdev()
434 (void) sd_netlink_message_read_u16(m, IFLA_VXLAN_PORT, &info->vxlan_info.dest_port); in decode_netdev()
435 (void) sd_netlink_message_read_u8(m, IFLA_VXLAN_PROXY, &info->vxlan_info.proxy); in decode_netdev()
436 … (void) sd_netlink_message_read_u8(m, IFLA_VXLAN_LEARNING, &info->vxlan_info.learning); in decode_netdev()
437 (void) sd_netlink_message_read_u8(m, IFLA_VXLAN_RSC, &info->vxlan_info.rsc); in decode_netdev()
438 (void) sd_netlink_message_read_u8(m, IFLA_VXLAN_L3MISS, &info->vxlan_info.l3miss); in decode_netdev()
439 (void) sd_netlink_message_read_u8(m, IFLA_VXLAN_L2MISS, &info->vxlan_info.l2miss); in decode_netdev()
440 (void) sd_netlink_message_read_u8(m, IFLA_VXLAN_TOS, &info->vxlan_info.tos); in decode_netdev()
441 (void) sd_netlink_message_read_u8(m, IFLA_VXLAN_TTL, &info->vxlan_info.ttl); in decode_netdev()
442 } else if (streq(info->netdev_kind, "vlan")) in decode_netdev()
443 (void) sd_netlink_message_read_u16(m, IFLA_VLAN_ID, &info->vlan_id); in decode_netdev()
444 else if (STR_IN_SET(info->netdev_kind, "ipip", "sit")) { in decode_netdev()
445 (void) sd_netlink_message_read_in_addr(m, IFLA_IPTUN_LOCAL, &info->local.in); in decode_netdev()
446 (void) sd_netlink_message_read_in_addr(m, IFLA_IPTUN_REMOTE, &info->remote.in); in decode_netdev()
447 } else if (streq(info->netdev_kind, "geneve")) { in decode_netdev()
448 (void) sd_netlink_message_read_u32(m, IFLA_GENEVE_ID, &info->vni); in decode_netdev()
450 r = sd_netlink_message_read_in_addr(m, IFLA_GENEVE_REMOTE, &info->remote.in); in decode_netdev()
452 info->has_tunnel_ipv4 = true; in decode_netdev()
454 … (void) sd_netlink_message_read_in6_addr(m, IFLA_GENEVE_REMOTE6, &info->remote.in6); in decode_netdev()
456 (void) sd_netlink_message_read_u8(m, IFLA_GENEVE_TTL, &info->ttl); in decode_netdev()
457 (void) sd_netlink_message_read_u8(m, IFLA_GENEVE_TTL_INHERIT, &info->inherit); in decode_netdev()
458 (void) sd_netlink_message_read_u8(m, IFLA_GENEVE_TOS, &info->tos); in decode_netdev()
459 (void) sd_netlink_message_read_u8(m, IFLA_GENEVE_DF, &info->df); in decode_netdev()
460 (void) sd_netlink_message_read_u8(m, IFLA_GENEVE_UDP_CSUM, &info->csum); in decode_netdev()
461 … (void) sd_netlink_message_read_u8(m, IFLA_GENEVE_UDP_ZERO_CSUM6_TX, &info->csum6_tx); in decode_netdev()
462 … (void) sd_netlink_message_read_u8(m, IFLA_GENEVE_UDP_ZERO_CSUM6_RX, &info->csum6_rx); in decode_netdev()
463 (void) sd_netlink_message_read_u16(m, IFLA_GENEVE_PORT, &info->tunnel_port); in decode_netdev()
464 (void) sd_netlink_message_read_u32(m, IFLA_GENEVE_LABEL, &info->label); in decode_netdev()
465 } else if (STR_IN_SET(info->netdev_kind, "gre", "gretap", "erspan")) { in decode_netdev()
466 (void) sd_netlink_message_read_in_addr(m, IFLA_GRE_LOCAL, &info->local.in); in decode_netdev()
467 (void) sd_netlink_message_read_in_addr(m, IFLA_GRE_REMOTE, &info->remote.in); in decode_netdev()
468 } else if (STR_IN_SET(info->netdev_kind, "ip6gre", "ip6gretap", "ip6erspan")) { in decode_netdev()
469 (void) sd_netlink_message_read_in6_addr(m, IFLA_GRE_LOCAL, &info->local.in6); in decode_netdev()
470 (void) sd_netlink_message_read_in6_addr(m, IFLA_GRE_REMOTE, &info->remote.in6); in decode_netdev()
471 } else if (streq(info->netdev_kind, "vti")) { in decode_netdev()
472 (void) sd_netlink_message_read_in_addr(m, IFLA_VTI_LOCAL, &info->local.in); in decode_netdev()
473 (void) sd_netlink_message_read_in_addr(m, IFLA_VTI_REMOTE, &info->remote.in); in decode_netdev()
474 } else if (streq(info->netdev_kind, "vti6")) { in decode_netdev()
475 (void) sd_netlink_message_read_in6_addr(m, IFLA_VTI_LOCAL, &info->local.in6); in decode_netdev()
476 (void) sd_netlink_message_read_in6_addr(m, IFLA_VTI_REMOTE, &info->remote.in6); in decode_netdev()
477 } else if (STR_IN_SET(info->netdev_kind, "macvlan", "macvtap")) in decode_netdev()
478 (void) sd_netlink_message_read_u32(m, IFLA_MACVLAN_MODE, &info->macvlan_mode); in decode_netdev()
479 else if (streq(info->netdev_kind, "ipvlan")) { in decode_netdev()
480 (void) sd_netlink_message_read_u16(m, IFLA_IPVLAN_MODE, &info->ipvlan_mode); in decode_netdev()
481 (void) sd_netlink_message_read_u16(m, IFLA_IPVLAN_FLAGS, &info->ipvlan_flags); in decode_netdev()
490 static int decode_link(sd_netlink_message *m, LinkInfo *info, char **patterns, bool matched_pattern… in decode_link() argument
497 assert(info); in decode_link()
541 r = sd_rtnl_message_link_get_type(m, &info->iftype); in decode_link()
545 strscpy(info->name, sizeof info->name, name); in decode_link()
546 info->ifindex = ifindex; in decode_link()
547 info->alternative_names = TAKE_PTR(altnames); in decode_link()
549 info->has_hw_address = in decode_link()
550 netlink_message_read_hw_addr(m, IFLA_ADDRESS, &info->hw_address) >= 0 && in decode_link()
551 info->hw_address.length > 0; in decode_link()
553 info->has_permanent_hw_address = in decode_link()
554 … (netlink_message_read_hw_addr(m, IFLA_PERM_ADDRESS, &info->permanent_hw_address) >= 0 || in decode_link()
555 … ethtool_get_permanent_hw_addr(NULL, info->name, &info->permanent_hw_address) >= 0) && in decode_link()
556 !hw_addr_is_null(&info->permanent_hw_address) && in decode_link()
557 !hw_addr_equal(&info->permanent_hw_address, &info->hw_address); in decode_link()
559 (void) sd_netlink_message_read_u32(m, IFLA_MTU, &info->mtu); in decode_link()
560 (void) sd_netlink_message_read_u32(m, IFLA_MIN_MTU, &info->min_mtu); in decode_link()
561 (void) sd_netlink_message_read_u32(m, IFLA_MAX_MTU, &info->max_mtu); in decode_link()
563 info->has_rx_queues = in decode_link()
564 sd_netlink_message_read_u32(m, IFLA_NUM_RX_QUEUES, &info->rx_queues) >= 0 && in decode_link()
565 info->rx_queues > 0; in decode_link()
567 info->has_tx_queues = in decode_link()
568 sd_netlink_message_read_u32(m, IFLA_NUM_TX_QUEUES, &info->tx_queues) >= 0 && in decode_link()
569 info->tx_queues > 0; in decode_link()
571 if (sd_netlink_message_read(m, IFLA_STATS64, sizeof info->stats64, &info->stats64) >= 0) in decode_link()
572 info->has_stats64 = true; in decode_link()
573 else if (sd_netlink_message_read(m, IFLA_STATS, sizeof info->stats, &info->stats) >= 0) in decode_link()
574 info->has_stats = true; in decode_link()
578 info->qdisc = strdup(qdisc); in decode_link()
579 if (!info->qdisc) in decode_link()
583 (void) sd_netlink_message_read_u32(m, IFLA_MASTER, &info->master); in decode_link()
589 … r = sd_netlink_message_read_u8(m, IFLA_INET6_ADDR_GEN_MODE, &info->addr_gen_mode); in decode_link()
590 if (r >= 0 && IN_SET(info->addr_gen_mode, in decode_link()
595 info->has_ipv6_address_generation_mode = true; in decode_link()
603 (void) decode_netdev(m, info); in decode_link()
1426 info->has_stats64 ? TABLE_UINT64 : TABLE_UINT32, \
1427info->has_stats64 ? (void*) &info->stats64.val_name : (void*) &info->stats.val_name); \
1431 static int dump_statistics(Table *table, const LinkInfo *info) { in dump_statistics() argument
1437 if (!info->has_stats64 && !info->has_stats) in dump_statistics()
1489 static int show_logs(const LinkInfo *info) { in show_logs() argument
1504 if (info) { in show_logs()
1509 xsprintf(m1, "_KERNEL_DEVICE=n%i", info->ifindex); in show_logs()
1511 m2 = strjoina("INTERFACE=", info->name); in show_logs()
1513 m3 = strjoina("DEVICE=", info->name); in show_logs()
1549 const LinkInfo *info) { in link_status_one() argument
1563 assert(info); in link_status_one()
1565 (void) sd_network_link_get_operational_state(info->ifindex, &operational_state); in link_status_one()
1566 …operational_state_to_color(info->name, operational_state, &on_color_operational, &off_color_operat… in link_status_one()
1568 (void) sd_network_link_get_online_state(info->ifindex, &online_state); in link_status_one()
1571 r = sd_network_link_get_setup_state(info->ifindex, &setup_state); in link_status_one()
1576 (void) sd_network_link_get_dns(info->ifindex, &dns); in link_status_one()
1577 (void) sd_network_link_get_search_domains(info->ifindex, &search_domains); in link_status_one()
1578 (void) sd_network_link_get_route_domains(info->ifindex, &route_domains); in link_status_one()
1579 (void) sd_network_link_get_ntp(info->ifindex, &ntp); in link_status_one()
1580 (void) sd_network_link_get_sip(info->ifindex, &sip); in link_status_one()
1582 if (info->sd_device) { in link_status_one()
1583 (void) sd_device_get_property_value(info->sd_device, "ID_NET_LINK_FILE", &link); in link_status_one()
1584 (void) sd_device_get_property_value(info->sd_device, "ID_NET_DRIVER", &driver); in link_status_one()
1585 (void) sd_device_get_property_value(info->sd_device, "ID_PATH", &path); in link_status_one()
1587 … if (sd_device_get_property_value(info->sd_device, "ID_VENDOR_FROM_DATABASE", &vendor) < 0) in link_status_one()
1588 (void) sd_device_get_property_value(info->sd_device, "ID_VENDOR", &vendor); in link_status_one()
1590 … if (sd_device_get_property_value(info->sd_device, "ID_MODEL_FROM_DATABASE", &model) < 0) in link_status_one()
1591 (void) sd_device_get_property_value(info->sd_device, "ID_MODEL", &model); in link_status_one()
1594 r = net_get_type_string(info->sd_device, info->iftype, &t); in link_status_one()
1598 (void) sd_network_link_get_network_file(info->ifindex, &network); in link_status_one()
1600 (void) sd_network_link_get_carrier_bound_to(info->ifindex, &carrier_bound_to); in link_status_one()
1601 (void) sd_network_link_get_carrier_bound_by(info->ifindex, &carrier_bound_by); in link_status_one()
1604 xsprintf(lease_file, "/run/systemd/netif/leases/%i", info->ifindex); in link_status_one()
1628 r = table_add_cell_stringf(table, &cell, "%i: %s", info->ifindex, info->name); in link_status_one()
1647 TABLE_STRING, strna(info->netdev_kind), in link_status_one()
1666 strv_sort(info->alternative_names); in link_status_one()
1667 r = dump_list(table, "Alternative Names:", info->alternative_names); in link_status_one()
1704 if (info->has_hw_address) { in link_status_one()
1705 r = dump_hw_address(table, hwdb, "Hardware Address:", &info->hw_address); in link_status_one()
1710 if (info->has_permanent_hw_address) { in link_status_one()
1711 … r = dump_hw_address(table, hwdb, "Permanent Hardware Address:", &info->permanent_hw_address); in link_status_one()
1716 if (info->mtu > 0) { in link_status_one()
1719 xsprintf(min_str, "%" PRIu32, info->min_mtu); in link_status_one()
1720 xsprintf(max_str, "%" PRIu32, info->max_mtu); in link_status_one()
1728 info->mtu, in link_status_one()
1729 info->min_mtu > 0 || info->max_mtu > 0 ? " (" : "", in link_status_one()
1730 info->min_mtu > 0 ? "min: " : "", in link_status_one()
1731 info->min_mtu > 0 ? min_str : "", in link_status_one()
1732 info->min_mtu > 0 && info->max_mtu > 0 ? ", " : "", in link_status_one()
1733 info->max_mtu > 0 ? "max: " : "", in link_status_one()
1734 info->max_mtu > 0 ? max_str : "", in link_status_one()
1735 info->min_mtu > 0 || info->max_mtu > 0 ? ")" : ""); in link_status_one()
1740 if (info->qdisc) { in link_status_one()
1744 TABLE_STRING, info->qdisc); in link_status_one()
1749 if (info->master > 0) { in link_status_one()
1753 TABLE_IFINDEX, info->master); in link_status_one()
1758 if (info->has_ipv6_address_generation_mode) { in link_status_one()
1771 TABLE_STRING, mode_table[info->addr_gen_mode]); in link_status_one()
1776 if (streq_ptr(info->netdev_kind, "bridge")) { in link_status_one()
1780 TABLE_TIMESPAN_MSEC, jiffies_to_usec(info->forward_delay), in link_status_one()
1783 TABLE_TIMESPAN_MSEC, jiffies_to_usec(info->hello_time), in link_status_one()
1786 TABLE_TIMESPAN_MSEC, jiffies_to_usec(info->max_age), in link_status_one()
1789 TABLE_TIMESPAN_MSEC, jiffies_to_usec(info->ageing_time), in link_status_one()
1792 TABLE_UINT16, info->priority, in link_status_one()
1795 TABLE_BOOLEAN, info->stp_state > 0, in link_status_one()
1798 TABLE_UINT8, info->mcast_igmp_version, in link_status_one()
1801 TABLE_UINT32, info->cost); in link_status_one()
1805 if (info->port_state <= BR_STATE_BLOCKING) in link_status_one()
1809 TABLE_STRING, bridge_state_to_string(info->port_state)); in link_status_one()
1810 } else if (streq_ptr(info->netdev_kind, "bond")) { in link_status_one()
1814 TABLE_STRING, bond_mode_to_string(info->mode), in link_status_one()
1817 TABLE_TIMESPAN_MSEC, info->miimon * USEC_PER_MSEC, in link_status_one()
1820 TABLE_TIMESPAN_MSEC, info->updelay * USEC_PER_MSEC, in link_status_one()
1823 TABLE_TIMESPAN_MSEC, info->downdelay * USEC_PER_MSEC); in link_status_one()
1827 } else if (streq_ptr(info->netdev_kind, "vxlan")) { in link_status_one()
1830 if (info->vxlan_info.vni > 0) { in link_status_one()
1834 TABLE_UINT32, info->vxlan_info.vni); in link_status_one()
1839 if (IN_SET(info->vxlan_info.group_family, AF_INET, AF_INET6)) { in link_status_one()
1842 … r = in_addr_is_multicast(info->vxlan_info.group_family, &info->vxlan_info.group); in link_status_one()
1851info->vxlan_info.group_family == AF_INET ? TABLE_IN_ADDR : TABLE_IN6_ADDR, in link_status_one()
1852 &info->vxlan_info.group); in link_status_one()
1857 if (IN_SET(info->vxlan_info.local_family, AF_INET, AF_INET6)) { in link_status_one()
1861info->vxlan_info.local_family == AF_INET ? TABLE_IN_ADDR : TABLE_IN6_ADDR, in link_status_one()
1862 &info->vxlan_info.local); in link_status_one()
1867 if (info->vxlan_info.dest_port > 0) { in link_status_one()
1871 TABLE_UINT16, be16toh(info->vxlan_info.dest_port)); in link_status_one()
1876 if (info->vxlan_info.link > 0) { in link_status_one()
1880 TABLE_IFINDEX, info->vxlan_info.link); in link_status_one()
1888 TABLE_BOOLEAN, info->vxlan_info.learning); in link_status_one()
1895 TABLE_BOOLEAN, info->vxlan_info.rsc); in link_status_one()
1902 TABLE_BOOLEAN, info->vxlan_info.l3miss); in link_status_one()
1909 TABLE_BOOLEAN, info->vxlan_info.l2miss); in link_status_one()
1913 if (info->vxlan_info.tos > 1) { in link_status_one()
1917 TABLE_UINT8, info->vxlan_info.tos); in link_status_one()
1922 if (info->vxlan_info.ttl > 0) in link_status_one()
1923 xsprintf(ttl, "%" PRIu8, info->vxlan_info.ttl); in link_status_one()
1933 } else if (streq_ptr(info->netdev_kind, "vlan") && info->vlan_id > 0) { in link_status_one()
1937 TABLE_UINT16, info->vlan_id); in link_status_one()
1940 … } else if (STRPTR_IN_SET(info->netdev_kind, "ipip", "sit", "gre", "gretap", "erspan", "vti")) { in link_status_one()
1941 if (in_addr_is_set(AF_INET, &info->local)) { in link_status_one()
1945 TABLE_IN_ADDR, &info->local); in link_status_one()
1950 if (in_addr_is_set(AF_INET, &info->remote)) { in link_status_one()
1954 TABLE_IN_ADDR, &info->remote); in link_status_one()
1958 } else if (STRPTR_IN_SET(info->netdev_kind, "ip6gre", "ip6gretap", "ip6erspan", "vti6")) { in link_status_one()
1959 if (in_addr_is_set(AF_INET6, &info->local)) { in link_status_one()
1963 TABLE_IN6_ADDR, &info->local); in link_status_one()
1968 if (in_addr_is_set(AF_INET6, &info->remote)) { in link_status_one()
1972 TABLE_IN6_ADDR, &info->remote); in link_status_one()
1976 } else if (streq_ptr(info->netdev_kind, "geneve")) { in link_status_one()
1980 TABLE_UINT32, info->vni); in link_status_one()
1984 if (info->has_tunnel_ipv4 && in_addr_is_set(AF_INET, &info->remote)) { in link_status_one()
1988 TABLE_IN_ADDR, &info->remote); in link_status_one()
1991 } else if (in_addr_is_set(AF_INET6, &info->remote)) { in link_status_one()
1995 TABLE_IN6_ADDR, &info->remote); in link_status_one()
2000 if (info->ttl > 0) { in link_status_one()
2004 TABLE_UINT8, info->ttl); in link_status_one()
2009 if (info->tos > 0) { in link_status_one()
2013 TABLE_UINT8, info->tos); in link_status_one()
2021 TABLE_UINT16, info->tunnel_port); in link_status_one()
2028 TABLE_STRING, geneve_df_to_string(info->inherit)); in link_status_one()
2032 if (info->df > 0) { in link_status_one()
2036 TABLE_UINT8, info->df); in link_status_one()
2044 TABLE_BOOLEAN, info->csum); in link_status_one()
2051 TABLE_BOOLEAN, info->csum6_tx); in link_status_one()
2058 TABLE_BOOLEAN, info->csum6_rx); in link_status_one()
2062 if (info->label > 0) { in link_status_one()
2066 TABLE_UINT32, info->label); in link_status_one()
2070 } else if (STRPTR_IN_SET(info->netdev_kind, "macvlan", "macvtap")) { in link_status_one()
2074 TABLE_STRING, macvlan_mode_to_string(info->macvlan_mode)); in link_status_one()
2077 } else if (streq_ptr(info->netdev_kind, "ipvlan")) { in link_status_one()
2080 if (info->ipvlan_flags & IPVLAN_F_PRIVATE) in link_status_one()
2082 else if (info->ipvlan_flags & IPVLAN_F_VEPA) in link_status_one()
2089 s = strjoin(ipvlan_mode_to_string(info->ipvlan_mode), " (", p, ")"); in link_status_one()
2101 if (info->has_wlan_link_info) { in link_status_one()
2110 if (info->ssid) in link_status_one()
2111 esc = cescape(info->ssid); in link_status_one()
2115 ETHER_ADDR_TO_STR(&info->bssid)); in link_status_one()
2120 if (info->has_bitrates) { in link_status_one()
2127 FORMAT_BYTES_FULL(info->tx_bitrate, 0), in link_status_one()
2128 FORMAT_BYTES_FULL(info->rx_bitrate, 0)); in link_status_one()
2133 if (info->has_tx_queues || info->has_rx_queues) { in link_status_one()
2139 … r = table_add_cell_stringf(table, NULL, "%" PRIu32 "/%" PRIu32, info->tx_queues, info->rx_queues); in link_status_one()
2144 if (info->has_ethtool_link_info) { in link_status_one()
2145 const char *duplex = duplex_to_string(info->duplex); in link_status_one()
2146 const char *port = port_to_string(info->port); in link_status_one()
2148 if (IN_SET(info->autonegotiation, AUTONEG_DISABLE, AUTONEG_ENABLE)) { in link_status_one()
2152 TABLE_BOOLEAN, info->autonegotiation == AUTONEG_ENABLE); in link_status_one()
2157 if (info->speed > 0) { in link_status_one()
2161 TABLE_BPS, info->speed); in link_status_one()
2185 r = dump_addresses(rtnl, lease, table, info->ifindex); in link_status_one()
2188 r = dump_gateways(rtnl, hwdb, table, info->ifindex); in link_status_one()
2213 r = sd_network_link_get_activation_policy(info->ifindex, &activation_policy); in link_status_one()
2223 r = sd_network_link_get_required_for_online(info->ifindex); in link_status_one()
2264 r = sd_network_link_get_dhcp6_client_iaid_string(info->ifindex, &iaid); in link_status_one()
2274 r = sd_network_link_get_dhcp6_client_duid_string(info->ifindex, &duid); in link_status_one()
2284 r = dump_lldp_neighbors(table, "Connected To:", info->ifindex); in link_status_one()
2288 r = dump_dhcp_leases(table, "Offered DHCP leases:", bus, info); in link_status_one()
2292 r = dump_statistics(table, info); in link_status_one()
2300 return show_logs(info); in link_status_one()