/systemd/src/libsystemd/sd-netlink/ |
H A D | local-addresses.h | 28 int family, ifindex; member in struct:local_address 34 int local_addresses(sd_netlink *rtnl, int ifindex, int af, struct local_address **ret); 36 int local_gateways(sd_netlink *rtnl, int ifindex, int af, struct local_address **ret);
|
H A D | local-addresses.c | 48 if (a->ifindex < b->ifindex) 50 if (a->ifindex > b->ifindex) 56 int local_addresses(sd_netlink *context, int ifindex, int af, struct local_address **ret) { argument 101 if (ifindex > 0 && ifi != ifindex) 125 if (ifindex == 0 && (a->scope == RT_SCOPE_HOST || a->scope == RT_SCOPE_NOWHERE)) 152 a->ifindex = ifi; 167 int local_gateways(sd_netlink *context, int ifindex, in argument [all...] |
H A D | netlink-util.c | 25 int rtnl_set_link_name(sd_netlink **rtnl, int ifindex, const char *name) { argument 30 assert(ifindex > 0); 39 r = sd_rtnl_message_new_link(*rtnl, &message, RTM_SETLINK, ifindex); 54 int rtnl_set_link_properties(sd_netlink **rtnl, int ifindex, const char *alias, argument 60 assert(ifindex > 0); 71 r = sd_rtnl_message_new_link(*rtnl, &message, RTM_SETLINK, ifindex);
|
H A D | rtnl-message.c | 529 int sd_rtnl_message_addr_get_ifindex(sd_netlink_message *m, int *ifindex) { argument 535 assert_return(ifindex, -EINVAL); 539 *ifindex = ifa->ifa_index; 589 int sd_rtnl_message_link_get_ifindex(sd_netlink_message *m, int *ifindex) { argument 595 assert_return(ifindex, -EINVAL); 599 *ifindex = ifi->ifi_index;
|
/systemd/src/network/ |
H A D | networkd-wait-online-link.h | 30 int ifindex; member in struct:Link 38 int link_new(Manager *m, Link **ret, int ifindex, const char *ifname);
|
H A D | networkd-wait-online-link.c | 27 int link_new(Manager *m, Link **ret, int ifindex, const char *ifname) { argument 32 assert(ifindex > 0); 56 l->ifindex = ifindex; 58 r = hashmap_put(m->links, INT_TO_PTR(ifindex), l); 75 hashmap_remove(l->manager->links, INT_TO_PTR(l->ifindex)); 124 sd_network_link_get_operational_state(l->ifindex, &l->operational_state); 128 sd_network_link_get_setup_state(l->ifindex, &l->state);
|
H A D | networkd-link-bus.c | 40 _cleanup_free_ char *ifindex = NULL; local 45 assert(link->ifindex > 0); 47 if (asprintf(&ifindex, "%d", link->ifindex) < 0) 50 r = sd_bus_path_encode("/org/freedesktop/network1/link", ifindex, &p); 94 int ifindex, r; local 106 r = parse_ifindex(identifier, &ifindex); 110 r = link_get(m, ifindex, &link);
|
H A D | networkd-wait-online-manager.c | 104 int ifindex, r; local 114 r = sd_rtnl_message_link_get_ifindex(mm, &ifindex); 122 l = hashmap_get(m->links, INT_TO_PTR(ifindex)); 128 log_debug("Found link %i", ifindex); 130 r = link_new(m, &l, ifindex, ifname); 147 log_debug("Removing link %i", l->ifindex); 234 log_warning_errno(r, "Failed to update monitor information for %i: %m", l->ifindex);
|
/systemd/src/libsystemd-network/ |
H A D | lldp-network.c | 30 int lldp_network_bind_raw_socket(int ifindex) { argument 60 .ll.sll_ifindex = ifindex, 65 assert(ifindex > 0);
|
H A D | lldp-port.c | 32 r = lldp_network_bind_raw_socket(p->ifindex); 85 int lldp_port_new(int ifindex, argument 92 assert_return(ifindex, -EINVAL); 101 p->ifindex = ifindex;
|
H A D | test-acd.c | 53 static int client_run(int ifindex, const struct in_addr *pa, const struct ether_addr *ha, sd_event *e) { argument 59 assert_se(sd_ipv4acd_set_index(acd, ifindex) >= 0); 81 int ifindex; local 94 assert_se(sd_rtnl_message_link_get_ifindex(reply, &ifindex) >= 0); 97 client_run(ifindex, &pa.in, &ha, e);
|
H A D | arp-util.c | 28 int arp_network_bind_raw_socket(int ifindex, be32_t address, const struct ether_addr *eth_mac) { argument 83 .ll.sll_ifindex = ifindex, 90 assert(ifindex > 0); 110 static int arp_send_packet(int fd, int ifindex, argument 116 .ll.sll_ifindex = ifindex, 146 int arp_send_probe(int fd, int ifindex, argument 148 return arp_send_packet(fd, ifindex, pa, ha, false); 151 int arp_send_announcement(int fd, int ifindex, argument 153 return arp_send_packet(fd, ifindex, pa, ha, true);
|
H A D | dhcp-identifier.c | 59 int dhcp_identifier_set_iaid(int ifindex, uint8_t *mac, size_t mac_len, void *_id) { argument 75 sprintf(ifindex_str, "n%d", ifindex);
|
H A D | lldp-port.h | 43 int ifindex; member in struct:lldp_port 58 int lldp_port_new(int ifindex,
|
H A D | test-ipv4ll-manual.c | 61 static int client_run(int ifindex, const char *seed_str, const struct ether_addr *ha, sd_event *e) { argument 67 assert_se(sd_ipv4ll_set_index(ll, ifindex) >= 0); 95 int ifindex; local 106 assert_se(sd_rtnl_message_link_get_ifindex(reply, &ifindex) >= 0); 109 client_run(ifindex, seed, &ha, e);
|
H A D | dhcp-network.c | 34 static int _bind_raw_socket(int ifindex, union sockaddr_union *link, argument 94 assert(ifindex > 0); 111 link->ll.sll_ifindex = ifindex; 126 int dhcp_network_bind_raw_socket(int ifindex, union sockaddr_union *link, argument 153 return _bind_raw_socket(ifindex, link, xid, mac_addr, mac_addr_len,
|
H A D | dhcp-server-internal.h | 54 int ifindex; member in struct:sd_dhcp_server
|
H A D | test-ipv4ll.c | 58 static int arp_network_send_raw_socket(int fd, int ifindex, argument 61 assert_se(ifindex > 0); 70 int arp_send_probe(int fd, int ifindex, argument 75 assert(ifindex > 0); 79 return arp_network_send_raw_socket(fd, ifindex, &ea); 82 int arp_send_announcement(int fd, int ifindex, argument 87 assert(ifindex > 0); 91 return arp_network_send_raw_socket(fd, ifindex, &ea);
|
/systemd/src/resolve/ |
H A D | resolved-dns-answer.h | 29 * originating ifindex for each RR where that makes sense, so that we 31 * right ifindex. 43 int ifindex; member in struct:DnsAnswerItem 57 int dns_answer_add(DnsAnswer *a, DnsResourceRecord *rr, int ifindex, DnsAnswerFlags flags); 58 int dns_answer_add_extend(DnsAnswer **a, DnsResourceRecord *rr, int ifindex, DnsAnswerFlags flags); 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)) 115 #define DNS_ANSWER_FOREACH_IFINDEX(kk, ifindex, a) _DNS_ANSWER_FOREACH_IFINDEX(UNIQ, kk, ifindex, a) 133 (ifi) = ((a) && (a)->n_rrs > 0) ? (a)->items[0].ifindex [all...] |
H A D | resolved-dns-stream.h | 39 int ifindex; member in struct:DnsStream
|
H A D | resolved-dns-query.h | 68 int ifindex; member in struct:DnsQuery
|
H A D | resolved-dns-stream.c | 86 if (s->local.sa.sa_family == AF_INET6 && s->ifindex <= 0) 87 s->ifindex = s->local.in6.sin6_scope_id; 94 if (s->peer.sa.sa_family == AF_INET6 && s->ifindex <= 0) 95 s->ifindex = s->peer.in6.sin6_scope_id; 128 if (s->ifindex <= 0) 129 s->ifindex = i->ipi6_ifindex; 146 if (s->ifindex <= 0) 147 s->ifindex = i->ipi_ifindex; 162 if (s->ifindex == LOOPBACK_IFINDEX) 163 s->ifindex 171 uint32_t ifindex = htobe32(s->ifindex); local [all...] |
H A D | resolved-dns-synthesize.c | 25 int dns_synthesize_ifindex(int ifindex) { argument 33 if (ifindex > 0) 34 return ifindex; 75 static int synthesize_localhost_rr(Manager *m, const DnsResourceKey *key, int ifindex, DnsAnswer **answer) { argument 95 r = dns_answer_add(*answer, rr, dns_synthesize_ifindex(ifindex), DNS_ANSWER_AUTHENTICATED); 109 r = dns_answer_add(*answer, rr, dns_synthesize_ifindex(ifindex), DNS_ANSWER_AUTHENTICATED); 117 static int answer_add_ptr(DnsAnswer **answer, const char *from, const char *to, int ifindex, DnsAnswerFlags flags) { argument 128 return dns_answer_add(*answer, rr, ifindex, flags); 131 static int synthesize_localhost_ptr(Manager *m, const DnsResourceKey *key, int ifindex, DnsAnswer **answer) { argument 143 r = answer_add_ptr(answer, DNS_RESOURCE_KEY_NAME(key), "localhost", dns_synthesize_ifindex(ifindex), DNS_ANSWER_AUTHENTICATE 223 synthesize_system_hostname_rr(Manager *m, const DnsResourceKey *key, int ifindex, DnsAnswer **answer) argument 264 synthesize_system_hostname_ptr(Manager *m, int af, const union in_addr_union *address, int ifindex, DnsAnswer **answer) argument 307 synthesize_gateway_rr(Manager *m, const DnsResourceKey *key, int ifindex, DnsAnswer **answer) argument 325 synthesize_gateway_ptr(Manager *m, int af, const union in_addr_union *address, int ifindex, DnsAnswer **answer) argument 340 dns_synthesize_answer( Manager *m, DnsQuestion *q, int ifindex, DnsAnswer **ret) argument [all...] |
H A D | resolved-link.h | 56 int ifindex; member in struct:Link 86 int link_new(Manager *m, Link **ret, int ifindex);
|
/systemd/src/libsystemd/sd-device/ |
H A D | device-internal.h | 73 int ifindex; member in struct:sd_device 116 int device_set_ifindex(sd_device *device, const char *ifindex);
|