/systemd-251/src/basic/ |
D | in-addr-util.h | 14 struct in6_addr in6; 15 uint8_t bytes[CONST_MAX(sizeof(struct in_addr), sizeof(struct in6_addr))]; 27 bool in6_addr_is_null(const struct in6_addr *a); 28 static inline bool in6_addr_is_set(const struct in6_addr *a) { in in6_addr_is_set() 46 bool in6_addr_is_link_local(const struct in6_addr *a); 48 bool in6_addr_is_link_local_all_nodes(const struct in6_addr *a); 56 bool in6_addr_is_ipv4_mapped_address(const struct in6_addr *a); 59 bool in6_addr_equal(const struct in6_addr *a, const struct in6_addr *b); 72 static inline int in6_addr_to_string(const struct in6_addr *u, char **ret) { in in6_addr_to_string() 76 static inline int in6_addr_prefix_to_string(const struct in6_addr *u, unsigned prefixlen, char **re… in in6_addr_prefix_to_string() [all …]
|
D | in-addr-util.c | 27 bool in6_addr_is_null(const struct in6_addr *a) { in in6_addr_is_null() 51 bool in6_addr_is_link_local(const struct in6_addr *a) { in in6_addr_is_link_local() 69 bool in6_addr_is_link_local_all_nodes(const struct in6_addr *a) { in in6_addr_is_link_local_all_nodes() 137 bool in6_addr_is_ipv4_mapped_address(const struct in6_addr *a) { in in6_addr_is_ipv4_mapped_address() 150 bool in6_addr_equal(const struct in6_addr *a, const struct in6_addr *b) { in in6_addr_equal() 348 struct in6_addr n; in in_addr_random_prefix() 649 int in6_addr_mask(struct in6_addr *addr, unsigned char prefixlen) { in in6_addr_mask() 710 const struct in6_addr *prefix, in in6_addr_prefix_covers() 712 const struct in6_addr *address) { in in6_addr_prefix_covers() 714 struct in6_addr masked_prefix, masked_address; in in6_addr_prefix_covers() [all …]
|
/systemd-251/src/network/ |
D | networkd-address-generation.c | 18 #define SUBNET_ROUTER_ANYCAST_ADDRESS ((const struct in6_addr) { .s6_addr = { 0x00, 0x00… 20 #define RESERVED_INTERFACE_IDENTIFIERS_ADDRESS ((const struct in6_addr) { .s6_addr = { 0x02, 0x00… 22 #define RESERVED_SUBNET_ANYCAST_ADDRESSES ((const struct in6_addr) { .s6_addr = { 0xFD, 0xFF… 39 struct in6_addr address; 43 static int generate_eui64_address(const Link *link, const struct in6_addr *prefix, struct in6_addr … in generate_eui64_address() 76 static bool stable_private_address_is_valid(const struct in6_addr *addr) { in stable_private_address_is_valid() 96 const struct in6_addr *prefix, in generate_stable_private_address_one() 98 struct in6_addr *ret) { in generate_stable_private_address_one() 132 const struct in6_addr *prefix, in generate_stable_private_address() 133 struct in6_addr *ret) { in generate_stable_private_address() [all …]
|
D | networkd-dhcp-prefix-delegation.c | 63 struct in6_addr pd_prefix; in dhcp6_lease_has_pd_prefix() 74 static void link_remove_dhcp_pd_subnet_prefix(Link *link, const struct in6_addr *prefix) { in link_remove_dhcp_pd_subnet_prefix() 88 static int link_add_dhcp_pd_subnet_prefix(Link *link, const struct in6_addr *prefix) { in link_add_dhcp_pd_subnet_prefix() 89 _cleanup_free_ struct in6_addr *copy = NULL; in link_add_dhcp_pd_subnet_prefix() 95 copy = newdup(struct in6_addr, prefix, 1); in link_add_dhcp_pd_subnet_prefix() 108 static int link_get_by_dhcp_pd_subnet_prefix(Manager *manager, const struct in6_addr *prefix, Link … in link_get_by_dhcp_pd_subnet_prefix() 123 …ssigned_subnet_prefix(Link *link, const struct in6_addr *pd_prefix, uint8_t pd_prefix_len, struct … in dhcp_pd_get_assigned_subnet_prefix() 142 struct in6_addr prefix = address->in_addr.in6; in dhcp_pd_get_assigned_subnet_prefix() 204 struct in6_addr prefix; in dhcp_pd_remove() 307 static int dhcp_pd_request_route(Link *link, const struct in6_addr *prefix, usec_t lifetime_usec) { in dhcp_pd_request_route() [all …]
|
D | networkd-ipv6-proxy-ndp.c | 34 struct in6_addr *address) { in ipv6_proxy_ndp_address_configure_handler() 55 static int ipv6_proxy_ndp_address_configure(const struct in6_addr *address, Link *link, Request *re… in ipv6_proxy_ndp_address_configure() 81 static int ipv6_proxy_ndp_address_process_request(Request *req, Link *link, struct in6_addr *addres… in ipv6_proxy_ndp_address_process_request() 99 struct in6_addr *address; in link_request_static_ipv6_proxy_ndp_addresses() 143 _cleanup_free_ struct in6_addr *address = NULL; in config_parse_ipv6_proxy_ndp_address() 170 address = newdup(struct in6_addr, &buffer.in6, 1); in config_parse_ipv6_proxy_ndp_address()
|
D | networkd-address-generation.h | 10 int dhcp_pd_generate_addresses(Link *link, const struct in6_addr *prefix, Set **ret); 11 int ndisc_generate_addresses(Link *link, const struct in6_addr *prefix, uint8_t prefixlen, Set **re… 12 int radv_generate_addresses(Link *link, Set *tokens, const struct in6_addr *prefix, uint8_t prefixl…
|
D | networkd-ndisc.h | 21 struct in6_addr router; 25 struct in6_addr address; 31 struct in6_addr router;
|
D | networkd-radv.h | 33 struct in6_addr prefix; 50 struct in6_addr prefix; 67 int radv_add_prefix(Link *link, const struct in6_addr *prefix, uint8_t prefix_len,
|
D | networkd-ndisc.c | 81 static int ndisc_remove(Link *link, struct in6_addr *router) { in ndisc_remove() 224 struct in6_addr router; in ndisc_request_route() 272 struct in6_addr router; in ndisc_request_address() 298 struct in6_addr gateway; in ndisc_router_process_default() 402 struct in6_addr prefix, *a; in ndisc_router_process_autonomous_prefix() 543 struct in6_addr a; in ndisc_router_process_prefix() 594 struct in6_addr gateway, dst; in ndisc_router_process_route() 696 const struct in6_addr *a; in ndisc_router_process_rdnss() 697 struct in6_addr router; in ndisc_router_process_rdnss() 790 struct in6_addr router; in ndisc_router_process_dnssl() [all …]
|
/systemd-251/src/libsystemd-network/ |
D | sd-radv.c | 150 static int radv_send(sd_radv *ra, const struct in6_addr *dst, usec_t lifetime_usec) { in radv_send() 248 struct in6_addr src; in radv_recv() 586 if (in6_addr_is_null(&p->opt.in6_addr)) in sd_radv_add_prefix() 589 (void) in6_addr_prefix_to_string(&p->opt.in6_addr, p->opt.prefixlen, &addr_p); in sd_radv_add_prefix() 594 (const union in_addr_union*) &cur->opt.in6_addr, in sd_radv_add_prefix() 596 (const union in_addr_union*) &p->opt.in6_addr, in sd_radv_add_prefix() 609 (void) in6_addr_prefix_to_string(&cur->opt.in6_addr, cur->opt.prefixlen, &addr_cur); in sd_radv_add_prefix() 659 const struct in6_addr *prefix, in sd_radv_remove_prefix() 672 if (!in6_addr_equal(prefix, &cur->opt.in6_addr)) in sd_radv_remove_prefix() 690 (void) in6_addr_prefix_to_string(&p->opt.in6_addr, p->opt.prefixlen, &addr_p); in sd_radv_add_route_prefix() [all …]
|
D | dhcp6-lease-internal.h | 29 struct in6_addr server_address; 37 struct in6_addr *dns; 40 struct in6_addr *ntp; 43 struct in6_addr *sntp; 70 const struct in6_addr *server_address,
|
D | test-dhcp6-client.c | 57 static const struct in6_addr local_address = 59 static const struct in6_addr mcast_address = 61 static const struct in6_addr ia_na_address1 = { { { IA_NA_ADDRESS1_BYTES } } }; 62 static const struct in6_addr ia_na_address2 = { { { IA_NA_ADDRESS2_BYTES } } }; 63 static const struct in6_addr ia_pd_prefix1 = { { { IA_PD_PREFIX1_BYTES } } }; 64 static const struct in6_addr ia_pd_prefix2 = { { { IA_PD_PREFIX2_BYTES } } }; 65 static const struct in6_addr dns1 = { { { DNS1_BYTES } } }; 66 static const struct in6_addr dns2 = { { { DNS2_BYTES } } }; 67 static const struct in6_addr sntp1 = { { { SNTP1_BYTES } } }; 68 static const struct in6_addr sntp2 = { { { SNTP2_BYTES } } }; [all …]
|
D | radv-internal.h | 116 struct in6_addr in6_addr; \ 153 struct in6_addr in6_addr; \
|
D | fuzz-dhcp6-client.c | 15 int dhcp6_network_send_udp_socket(int s, struct in6_addr *server_address, const void *packet, size_… in dhcp6_network_send_udp_socket() 19 int dhcp6_network_bind_udp_socket(int index, struct in6_addr *local_address) { in dhcp6_network_bind_udp_socket() 72 … struct in6_addr address = { { { 0xfe, 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x01 } } }; in LLVMFuzzerTestOneInput() 73 …struct in6_addr hint = { { { 0x3f, 0xfe, 0x05, 0x01, 0xff, 0xff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } } … in LLVMFuzzerTestOneInput()
|
D | network-internal.c | 82 void serialize_in6_addrs(FILE *f, const struct in6_addr *addresses, size_t size, bool *with_leading… in serialize_in6_addrs() 101 int deserialize_in6_addrs(struct in6_addr **ret, const char *string) { in deserialize_in6_addrs() 102 _cleanup_free_ struct in6_addr *addresses = NULL; in deserialize_in6_addrs() 110 struct in6_addr *new_addresses; in deserialize_in6_addrs() 119 new_addresses = reallocarray(addresses, size + 1, sizeof(struct in6_addr)); in deserialize_in6_addrs()
|
D | dhcp6-internal.h | 38 struct in6_addr local_address; 84 int dhcp6_network_bind_udp_socket(int ifindex, struct in6_addr *address); 85 int dhcp6_network_send_udp_socket(int s, struct in6_addr *address,
|
D | dhcp6-option.h | 32 struct in6_addr address; 42 struct in6_addr address; 101 struct in6_addr **addrs,
|
D | sd-dhcp6-lease.c | 91 static void dhcp6_lease_set_server_address(sd_dhcp6_lease *lease, const struct in6_addr *server_add… in dhcp6_lease_set_server_address() 97 lease->server_address = (struct in6_addr) {}; in dhcp6_lease_set_server_address() 100 int sd_dhcp6_lease_get_server_address(sd_dhcp6_lease *lease, struct in6_addr *ret) { in sd_dhcp6_lease_get_server_address() 221 struct in6_addr *ret_addr, in sd_dhcp6_lease_get_address() 248 struct in6_addr *ret_prefix, in sd_dhcp6_lease_get_pd() 286 int sd_dhcp6_lease_get_dns(sd_dhcp6_lease *lease, const struct in6_addr **ret) { in sd_dhcp6_lease_get_dns() 385 int sd_dhcp6_lease_get_ntp_addrs(sd_dhcp6_lease *lease, const struct in6_addr **ret) { in sd_dhcp6_lease_get_ntp_addrs() 692 const struct in6_addr *server_address, in dhcp6_lease_new_from_message()
|
D | network-internal.h | 15 void serialize_in6_addrs(FILE *f, const struct in6_addr *addresses, 18 int deserialize_in6_addrs(struct in6_addr **addresses, const char *string);
|
D | test-ndisc-rs.c | 32 struct in6_addr addr; in router_dump() 107 struct in6_addr a; in router_dump() 131 const struct in6_addr *a; in router_dump() 182 struct in6_addr *dst, triple_timestamp *timestamp) { in icmp6_receive()
|
/systemd-251/src/systemd/ |
D | sd-radv.h | 62 void sd_radv_remove_prefix(sd_radv *ra, const struct in6_addr *prefix, unsigned char prefixlen); 64 const struct in6_addr *dns, size_t n_dns); 72 int sd_radv_prefix_set_prefix(sd_radv_prefix *p, const struct in6_addr *in6_addr, 74 int sd_radv_prefix_get_prefix(sd_radv_prefix *p, struct in6_addr *ret_in6_addr, 86 int sd_radv_route_prefix_set_prefix(sd_radv_route_prefix *p, const struct in6_addr *in6_addr, unsig…
|
D | sd-dhcp6-lease.h | 33 int sd_dhcp6_lease_get_server_address(sd_dhcp6_lease *lease, struct in6_addr *ret); 37 struct in6_addr *addr, 41 int sd_dhcp6_lease_get_pd(sd_dhcp6_lease *lease, struct in6_addr *prefix, 46 int sd_dhcp6_lease_get_dns(sd_dhcp6_lease *lease, const struct in6_addr **ret); 48 int sd_dhcp6_lease_get_ntp_addrs(sd_dhcp6_lease *lease, const struct in6_addr **ret);
|
D | sd-ndisc.h | 88 int sd_ndisc_router_get_address(sd_ndisc_router *rt, struct in6_addr *ret_addr); 109 int sd_ndisc_router_prefix_get_address(sd_ndisc_router *rt, struct in6_addr *ret_addr); 114 int sd_ndisc_router_route_get_address(sd_ndisc_router *rt, struct in6_addr *ret_addr); 119 int sd_ndisc_router_rdnss_get_addresses(sd_ndisc_router *rt, const struct in6_addr **ret);
|
/systemd-251/src/basic/linux/ |
D | in6.h | 33 struct in6_addr { struct 54 struct in6_addr sin6_addr; /* IPv6 address */ argument 62 struct in6_addr ipv6mr_multiaddr; 72 struct in6_addr flr_dst;
|
D | ipv6_route.h | 44 struct in6_addr rtmsg_dst; 45 struct in6_addr rtmsg_src; 46 struct in6_addr rtmsg_gateway;
|