Home
last modified time | relevance | path

Searched refs:in6_addr (Results 1 – 25 of 83) sorted by relevance

1234

/systemd-251/src/basic/
Din-addr-util.h14 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 …]
Din-addr-util.c27 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/
Dnetworkd-address-generation.c18 #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 …]
Dnetworkd-dhcp-prefix-delegation.c63 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 …]
Dnetworkd-ipv6-proxy-ndp.c34 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()
Dnetworkd-address-generation.h10 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…
Dnetworkd-ndisc.h21 struct in6_addr router;
25 struct in6_addr address;
31 struct in6_addr router;
Dnetworkd-radv.h33 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,
Dnetworkd-ndisc.c81 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/
Dsd-radv.c150 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 …]
Ddhcp6-lease-internal.h29 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,
Dtest-dhcp6-client.c57 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 …]
Dradv-internal.h116 struct in6_addr in6_addr; \
153 struct in6_addr in6_addr; \
Dfuzz-dhcp6-client.c15 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()
Dnetwork-internal.c82 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()
Ddhcp6-internal.h38 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,
Ddhcp6-option.h32 struct in6_addr address;
42 struct in6_addr address;
101 struct in6_addr **addrs,
Dsd-dhcp6-lease.c91 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()
Dnetwork-internal.h15 void serialize_in6_addrs(FILE *f, const struct in6_addr *addresses,
18 int deserialize_in6_addrs(struct in6_addr **addresses, const char *string);
Dtest-ndisc-rs.c32 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/
Dsd-radv.h62 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…
Dsd-dhcp6-lease.h33 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);
Dsd-ndisc.h88 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/
Din6.h33 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;
Dipv6_route.h44 struct in6_addr rtmsg_dst;
45 struct in6_addr rtmsg_src;
46 struct in6_addr rtmsg_gateway;

1234