/systemd/src/libsystemd-network/ |
H A D | lldp-network.h | 25 int lldp_network_bind_raw_socket(int ifindex);
|
H A D | arp-util.h | 29 int arp_send_probe(int fd, int ifindex, 31 int arp_send_announcement(int fd, int 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 | 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 | 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 | 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 | 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.h | 63 int dhcp_identifier_set_iaid(int ifindex, uint8_t *mac, size_t mac_len, void *_id);
|
/systemd/src/systemd/ |
H A D | sd-network.h | 71 /* Get setup state from ifindex. 82 int sd_network_link_get_setup_state(int ifindex, char **state); 84 /* Get operational state from ifindex. 95 int sd_network_link_get_operational_state(int ifindex, char **state); 98 int sd_network_link_get_network_file(int ifindex, char **filename); 102 int sd_network_link_get_dns(int ifindex, char ***addr); 106 int sd_network_link_get_ntp(int ifindex, char ***addr); 113 int sd_network_link_get_llmnr(int ifindex, char **llmnr); 121 int sd_network_link_get_mdns(int ifindex, char **mdns); 128 int sd_network_link_get_dnssec(int ifindex, cha [all...] |
/systemd/src/resolve/ |
H A D | resolved-dns-synthesize.h | 26 int dns_synthesize_ifindex(int ifindex); 30 int dns_synthesize_answer(Manager *m, DnsQuestion *q, int ifindex, DnsAnswer **ret);
|
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-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-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-answer.c | 75 static int dns_answer_add_raw(DnsAnswer *a, DnsResourceRecord *rr, int ifindex, DnsAnswerFlags flags) { argument 86 .ifindex = ifindex, 96 int ifindex, r; local 98 DNS_ANSWER_FOREACH_FULL(rr, ifindex, flags, source) { 99 r = dns_answer_add_raw(a, rr, ifindex, flags); 107 int dns_answer_add(DnsAnswer *a, DnsResourceRecord *rr, int ifindex, DnsAnswerFlags flags) { argument 119 if (a->items[i].ifindex != ifindex) 158 return dns_answer_add_raw(a, rr, ifindex, flag 164 int ifindex, r; local 175 dns_answer_add_extend(DnsAnswer **a, DnsResourceRecord *rr, int ifindex, DnsAnswerFlags flags) argument 501 int ifindex; local 587 int ifindex; local 789 int ifindex; local [all...] |
H A D | resolved-bus.c | 99 static int append_address(sd_bus_message *reply, DnsResourceRecord *rr, int ifindex) { argument 109 r = sd_bus_message_append(reply, "i", ifindex); 144 int ifindex, r; local 171 DNS_ANSWER_FOREACH_IFINDEX(rr, ifindex, q->answer) { 182 r = append_address(reply, rr, ifindex); 221 static int check_ifindex_flags(int ifindex, uint64_t *flags, uint64_t ok, sd_bus_error *error) { argument 224 if (ifindex < 0) 240 int family, ifindex; local 250 r = sd_bus_message_read(message, "isit", &ifindex, &hostname, &family, &flags); 263 r = check_ifindex_flags(ifindex, 304 int ifindex, r; local 377 int family, ifindex; local 439 bus_message_append_rr(sd_bus_message *m, DnsResourceRecord *rr, int ifindex) argument 472 int ifindex; local 546 int r, ifindex; local 681 int ifindex; local 915 resolve_service_hostname(DnsQuery *q, DnsResourceRecord *rr, int ifindex) argument 970 int ifindex, r; local 1052 int family, ifindex; local 1338 get_any_link(Manager *m, int ifindex, Link **ret, sd_bus_error *error) argument 1355 get_unmanaged_link(Manager *m, int ifindex, Link **ret, sd_bus_error *error) argument 1376 int ifindex, r; local 1426 int r, ifindex; local [all...] |
/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 | netlink-util.h | 35 int rtnl_set_link_name(sd_netlink **rtnl, int ifindex, const char *name); 36 int rtnl_set_link_properties(sd_netlink **rtnl, int ifindex, const char *alias, const struct ether_addr *mac, unsigned mtu);
|
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 | 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...] |
/systemd/src/libsystemd/sd-network/ |
H A D | sd-network.c | 104 static int network_link_get_string(int ifindex, const char *field, char **ret) { argument 108 assert_return(ifindex > 0, -EINVAL); 111 if (asprintf(&p, "/run/systemd/netif/links/%i", ifindex) < 0) 128 static int network_link_get_strv(int ifindex, const char *key, char ***ret) { argument 133 assert_return(ifindex > 0, -EINVAL); 136 if (asprintf(&p, "/run/systemd/netif/links/%d", ifindex) < 0) 162 _public_ int sd_network_link_get_setup_state(int ifindex, char **state) { argument 163 return network_link_get_string(ifindex, "ADMIN_STATE", state); 166 _public_ int sd_network_link_get_network_file(int ifindex, char **filename) { argument 167 return network_link_get_string(ifindex, "NETWORK_FIL 170 sd_network_link_get_operational_state(int ifindex, char **state) argument 174 sd_network_link_get_llmnr(int ifindex, char **llmnr) argument 178 sd_network_link_get_mdns(int ifindex, char **mdns) argument 182 sd_network_link_get_dnssec(int ifindex, char **dnssec) argument 186 sd_network_link_get_dnssec_negative_trust_anchors(int ifindex, char ***nta) argument 190 sd_network_link_get_lldp(int ifindex, char **lldp) argument 215 sd_network_link_get_timezone(int ifindex, char **ret) argument 219 sd_network_link_get_dns(int ifindex, char ***ret) argument 223 sd_network_link_get_ntp(int ifindex, char ***ret) argument 227 sd_network_link_get_search_domains(int ifindex, char ***ret) argument 231 sd_network_link_get_route_domains(int ifindex, char ***ret) argument 235 sd_network_link_get_carrier_bound_to(int ifindex, char ***ret) argument 239 sd_network_link_get_carrier_bound_by(int ifindex, char ***ret) argument [all...] |
/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-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-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 | networkctl.c | 108 int ifindex; member in struct:LinkInfo 115 return x->ifindex - y->ifindex; 128 int ifindex; local 137 r = sd_rtnl_message_link_get_ifindex(i, &ifindex); 153 links[c].ifindex = ifindex; 236 sd_network_link_get_operational_state(links[i].ifindex, &operational_state); 239 sd_network_link_get_setup_state(links[i].ifindex, &setup_state); 242 sprintf(devid, "n%i", links[i].ifindex); 293 get_gateway_description( sd_netlink *rtnl, sd_hwdb *hwdb, int ifindex, int family, union in_addr_union *gateway, char **gateway_description) argument 399 dump_gateways( sd_netlink *rtnl, sd_hwdb *hwdb, const char *prefix, int ifindex) argument 448 dump_addresses( sd_netlink *rtnl, const char *prefix, int ifindex) argument 519 int r, ifindex; local [all...] |