/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-message-rtnl.c | 476 struct ifinfomsg *ifi; in sd_rtnl_message_link_set_flags() local 483 ifi = NLMSG_DATA(m->hdr); in sd_rtnl_message_link_set_flags() 485 ifi->ifi_flags = flags; in sd_rtnl_message_link_set_flags() 486 ifi->ifi_change = change; in sd_rtnl_message_link_set_flags() 492 struct ifinfomsg *ifi; in sd_rtnl_message_link_set_type() local 498 ifi = NLMSG_DATA(m->hdr); in sd_rtnl_message_link_set_type() 500 ifi->ifi_type = type; in sd_rtnl_message_link_set_type() 506 struct ifinfomsg *ifi; in sd_rtnl_message_link_set_family() local 512 ifi = NLMSG_DATA(m->hdr); in sd_rtnl_message_link_set_family() 514 ifi->ifi_family = family; in sd_rtnl_message_link_set_family() [all …]
|
/systemd-251/src/shared/ |
D | local-addresses.c | 98 int ifi, family; in local_addresses() local 110 r = sd_rtnl_message_addr_get_ifindex(m, &ifi); in local_addresses() 113 if (ifindex > 0 && ifi != ifindex) in local_addresses() 164 a->ifindex = ifi; in local_addresses() 253 uint32_t ifi = 0, metric = 0; in local_gateways() local 297 r = sd_netlink_message_read_u32(m, RTA_OIF, &ifi); in local_gateways() 301 if (ifi <= 0) in local_gateways() 303 if (ifindex > 0 && (int) ifi != ifindex) in local_gateways() 312 r = add_local_gateway(&list, &n_list, af, ifi, metric, &via); in local_gateways() 326 r = add_local_gateway(&list, &n_list, af, ifi, metric, &via); in local_gateways() [all …]
|
/systemd-251/src/nspawn/ |
D | nspawn-network.c | 508 int ifi; in move_network_interfaces() local 510 ifi = rtnl_resolve_interface_or_warn(&rtnl, *i); in move_network_interfaces() 511 if (ifi < 0) in move_network_interfaces() 512 return ifi; in move_network_interfaces() 514 r = sd_rtnl_message_new_link(rtnl, &m, RTM_SETLINK, ifi); in move_network_interfaces() 546 int ifi; in setup_macvlan() local 548 ifi = rtnl_resolve_interface_or_warn(&rtnl, *i); in setup_macvlan() 549 if (ifi < 0) in setup_macvlan() 550 return ifi; in setup_macvlan() 560 r = sd_netlink_message_append_u32(m, IFLA_LINK, ifi); in setup_macvlan() [all …]
|
D | nspawn.c | 4754 int ifi = 0, r; in run_container() local 5005 ifi = r; in run_container() 5013 ifi = r; in run_container() 5020 ifi = r; in run_container() 5077 ifi, in run_container()
|
/systemd-251/src/basic/ |
D | parse-util.c | 94 int ifi, r; in parse_ifindex() local 98 r = safe_atoi(s, &ifi); in parse_ifindex() 101 if (ifi <= 0) in parse_ifindex() 104 return ifi; in parse_ifindex()
|
D | socket-util.h | 309 int socket_set_unicast_if(int fd, int af, int ifi);
|
D | socket-util.c | 1353 int socket_set_unicast_if(int fd, int af, int ifi) { in socket_set_unicast_if() argument 1354 be32_t ifindex_be = htobe32(ifi); in socket_set_unicast_if()
|
/systemd-251/src/resolve/ |
D | resolved-dns-answer.h | 115 #define _DNS_ANSWER_FOREACH_IFINDEX(kk, ifi, a, i) \ argument 119 (kk = i.item->rr, ifi = i.item->ifindex, true); )
|
D | resolvectl.c | 109 int ifi; in ifname_mangle() local 117 ifi = rtnl_resolve_interface(NULL, iface); in ifname_mangle() 118 if (ifi < 0) { in ifname_mangle() 119 if (ifi == -ENODEV && arg_ifindex_permissive) { in ifname_mangle() 124 return log_error_errno(ifi, "Failed to resolve interface \"%s\": %m", iface); in ifname_mangle() 127 if (arg_ifindex > 0 && arg_ifindex != ifi) in ifname_mangle() 130 arg_ifindex = ifi; in ifname_mangle() 1558 char ifi[DECIMAL_STR_MAX(int)], ifname[IF_NAMESIZE]; in status_ifindex() local 1572 xsprintf(ifi, "%i", ifindex); in status_ifindex() 1573 r = sd_bus_path_encode("/org/freedesktop/resolve1/link", ifi, &p); in status_ifindex()
|
/systemd-251/src/udev/ |
D | udevadm-info.c | 185 int i, ifi; in print_record() local 230 if (sd_device_get_ifindex(device, &ifi) >= 0) in print_record() 231 printf("%sI: %s%i%s\n", prefix, ansi_highlight_cyan(), ifi, ansi_normal()); in print_record()
|
/systemd-251/src/nss-resolve/ |
D | nss-resolve.c | 97 int *ifi = userdata; in json_dispatch_ifindex() local 101 assert(ifi); in json_dispatch_ifindex() 110 *ifi = (int) t; in json_dispatch_ifindex()
|
/systemd-251/src/machine/ |
D | machinectl.c | 162 int ifi, in call_get_addresses() argument 205 if (family == AF_INET6 && ifi > 0) in call_get_addresses() 206 xsprintf(buf_ifi, "%%%i", ifi); in call_get_addresses() 511 int ifi = -1; in print_machine_status_info() local 566 if (ifi < 0) in print_machine_status_info() 567 ifi = i->netif[c]; in print_machine_status_info() 569 ifi = 0; in print_machine_status_info() 577 if (call_get_addresses(bus, i->name, ifi, in print_machine_status_info()
|
/systemd-251/src/network/ |
D | networkctl.c | 937 int ifi, fam; in get_gateway_description() local 967 r = sd_rtnl_message_neigh_get_ifindex(m, &ifi); in get_gateway_description() 973 if (ifindex > 0 && ifi != ifindex) in get_gateway_description()
|