Searched refs:ifi (Results 1 - 11 of 11) sorted by relevance

/systemd/src/nspawn/
H A Dnspawn-network.c283 int ifi; local
285 ifi = (int) if_nametoindex(name);
286 if (ifi <= 0)
289 sprintf(ifi_str, "n%i", ifi);
299 return ifi;
323 int ifi; local
325 ifi = parse_interface(udev, *i);
326 if (ifi < 0)
327 return ifi;
329 r = sd_rtnl_message_new_link(rtnl, &m, RTM_SETLINK, ifi);
369 int ifi; local
455 int ifi; local
[all...]
H A Dnspawn.c3316 int ifi = 0; local
3477 ifi = r;
3484 ifi = r;
3507 ifi,
/systemd/src/libsystemd/sd-netlink/
H A Drtnl-message.c356 struct ifinfomsg *ifi; local
363 ifi = NLMSG_DATA(m->hdr);
365 ifi->ifi_flags = flags;
366 ifi->ifi_change = change;
372 struct ifinfomsg *ifi; local
378 ifi = NLMSG_DATA(m->hdr);
380 ifi->ifi_type = type;
386 struct ifinfomsg *ifi; local
392 ifi = NLMSG_DATA(m->hdr);
394 ifi
401 struct ifinfomsg *ifi; local
590 struct ifinfomsg *ifi; local
605 struct ifinfomsg *ifi; local
620 struct ifinfomsg *ifi; local
641 struct ifinfomsg *ifi; local
[all...]
H A Dlocal-addresses.c86 int ifi, family; local
98 r = sd_rtnl_message_addr_get_ifindex(m, &ifi);
101 if (ifindex > 0 && ifi != ifindex)
152 a->ifindex = ifi;
201 uint32_t ifi; local
227 r = sd_netlink_message_read_u32(m, RTA_OIF, &ifi);
230 if (ifindex > 0 && (int) ifi != ifindex)
263 a->ifindex = ifi;
/systemd/src/resolve/
H A Dresolved-dns-answer.h104 #define _DNS_ANSWER_FOREACH_IFINDEX(q, kk, ifi, a) \
107 (ifi) = ((a) && (a)->n_rrs > 0) ? (a)->items[0].ifindex : 0; \
113 (ifi) = ((UNIQ_T(i, q) < (a)->n_rrs) ? (a)->items[UNIQ_T(i, q)].ifindex : 0))
130 #define _DNS_ANSWER_FOREACH_FULL(q, kk, ifi, fl, a) \
133 (ifi) = ((a) && (a)->n_rrs > 0) ? (a)->items[0].ifindex : 0; \
140 (ifi) = ((UNIQ_T(i, q) < (a)->n_rrs) ? (a)->items[UNIQ_T(i, q)].ifindex : 0), \
H A Dresolve-tool.c308 int ifi = 0; local
313 if (parse_ifindex(percent+1, &ifi) < 0) {
314 ifi = if_nametoindex(percent+1);
315 if (ifi <= 0)
327 *ifindex = ifi;
1011 int ifi; local
1013 if (parse_ifindex(optarg, &ifi) >= 0)
1014 arg_ifindex = ifi;
1016 ifi = if_nametoindex(optarg);
1017 if (ifi <
[all...]
/systemd/src/basic/
H A Dparse-util.c94 int ifi, r; local
96 r = safe_atoi(s, &ifi);
99 if (ifi <= 0)
102 *ret = ifi;
/systemd/src/machine/
H A Dmachine.c322 int ifi; local
334 if (parse_ifindex(word, &ifi) < 0)
342 ni[nr++] = ifi;
H A Dmachinectl.c391 static int print_addresses(sd_bus *bus, const char *name, int ifi, const char *prefix, const char *prefix2) { argument
431 if (family == AF_INET6 && ifi > 0)
432 printf("%%%i", ifi);
522 int ifi = -1; local
579 if (ifi < 0)
580 ifi = i->netif[c];
582 ifi = 0;
590 print_addresses(bus, i->name, ifi,
/systemd/src/libsystemd/sd-login/
H A Dsd-login.c929 int ifi; local
933 if (parse_ifindex(buf, &ifi) < 0)
941 ni[nr++] = ifi;
/systemd/src/network/
H A Dnetworkctl.c326 int ifi, fam; local
356 r = sd_rtnl_message_neigh_get_ifindex(m, &ifi);
362 if (ifindex > 0 && ifi != ifindex)

Completed in 2881 milliseconds