/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… 48 memcpy(ret->s6_addr, prefix, 8); in generate_eui64_address() 53 memcpy(&ret->s6_addr[8], &link->hw_addr.infiniband[INFINIBAND_ALEN - 8], 8); in generate_eui64_address() 57 ret->s6_addr[8] = link->hw_addr.ether.ether_addr_octet[0]; in generate_eui64_address() 58 ret->s6_addr[9] = link->hw_addr.ether.ether_addr_octet[1]; in generate_eui64_address() 59 ret->s6_addr[10] = link->hw_addr.ether.ether_addr_octet[2]; in generate_eui64_address() 60 ret->s6_addr[11] = 0xff; in generate_eui64_address() 61 ret->s6_addr[12] = 0xfe; in generate_eui64_address() [all …]
|
D | networkd-ipv6ll.c | 208 memcpy(a.s6_addr, &v, sizeof(v)); in link_set_ipv6ll_stable_secret() 215 assert_cc(sizeof(v) * 2 == sizeof(a.s6_addr)); in link_set_ipv6ll_stable_secret() 216 memcpy(a.s6_addr + sizeof(v), &v, sizeof(v)); in link_set_ipv6ll_stable_secret()
|
D | networkd-dhcp-common.c | 845 sz = sizeof(addr.in6.s6_addr); in config_parse_dhcp_send_option()
|
D | networkd-dhcp-prefix-delegation.c | 861 … pd_prefix.s6_addr[(i + sixrd_prefixlen) / 8] |= 1 << (7 - (i + sixrd_prefixlen) % 8); in dhcp4_calculate_pd_prefix()
|
D | networkd-address.c | 1007 in_addr.in6.s6_addr[15] |= 1; in address_acquire()
|
/systemd-251/src/test/ |
D | test-in-addr-prefix-util.c | 28 .in6.s6_addr[0] = 0xff, in test_config_parse_in_addr_prefixes() 29 .in6.s6_addr[1] = i, in test_config_parse_in_addr_prefixes() 40 .in6.s6_addr[0] = 0xff, in test_config_parse_in_addr_prefixes() 41 .in6.s6_addr[1] = i, in test_config_parse_in_addr_prefixes() 42 .in6.s6_addr[2] = j, in test_config_parse_in_addr_prefixes()
|
/systemd-251/src/basic/ |
D | in-addr-util.c | 205 x = a->in6.s6_addr[i] ^ b->in6.s6_addr[i]; in in_addr_prefix_intersect() 288 u->in6.s6_addr[j] = 0; in in_addr_prefix_nth() 293 u->in6.s6_addr[j] &= 0xff << (8 - (prefixlen - p)); in in_addr_prefix_nth() 294 t = u->in6.s6_addr[j] + ((nth & 0xff) << (8 - (prefixlen - p))); in in_addr_prefix_nth() 297 t = u->in6.s6_addr[j] + (nth & 0xff) + overflow; in in_addr_prefix_nth() 302 u->in6.s6_addr[j] = (uint8_t) (t & 0xff); in in_addr_prefix_nth() 381 u->in6.s6_addr[i] &= mask_fixed_part; in in_addr_random_prefix() 382 u->in6.s6_addr[i] |= n.s6_addr[i] & mask; in in_addr_random_prefix() 666 addr->s6_addr[i] &= mask; in in6_addr_mask()
|
D | socket-util.c | 480 const uint8_t *a = sa->in6.sin6_addr.s6_addr+12; in sockaddr_pretty()
|
/systemd-251/src/shared/ |
D | in-addr-prefix-util.c | 39 .address.in6.s6_addr[0] = 0xfe, \ 40 .address.in6.s6_addr[1] = 0x80, \ 54 .address.in6.s6_addr[0] = 0xff, \
|
D | dns-domain.c | 790 for (i = 0; i < ELEMENTSOF(a.s6_addr); i++) { in dns_name_address() 812 a.s6_addr[ELEMENTSOF(a.s6_addr) - i - 1] = (uint8_t) y << 4 | (uint8_t) x; in dns_name_address()
|
D | firewall-util-nft.c | 341 …r = nfnl_add_expr_payload(m, NFT_PAYLOAD_NETWORK_HEADER, offsetof(struct ip6_hdr, ip6_src.s6_addr), in sd_nfnl_message_new_masq_rule() 454 …r = nfnl_add_expr_payload(m, NFT_PAYLOAD_NETWORK_HEADER, offsetof(struct ip6_hdr, ip6_dst.s6_addr), in sd_nfnl_message_new_dnat_rule_out()
|
/systemd-251/src/libsystemd/sd-daemon/ |
D | sd-daemon.c | 353 return memcmp(sockaddr.in6.sin6_addr.s6_addr, in->sin6_addr.s6_addr, in sd_is_socket_sockaddr() 354 sizeof(in->sin6_addr.s6_addr)) == 0; in sd_is_socket_sockaddr()
|
/systemd-251/src/resolve/ |
D | resolved-dns-packet.h | 291 #define LLMNR_MULTICAST_IPV6_ADDRESS ((struct in6_addr) { .s6_addr = { 0xFF, 0x02, 0x00, 0x00, 0x00… 294 #define MDNS_MULTICAST_IPV6_ADDRESS ((struct in6_addr) { .s6_addr = { 0xFF, 0x02, 0x00, 0x00, 0x00…
|
D | test-resolved-etc-hosts.c | 36 !memcmp(&(_addr)->address.in6, &(struct in6_addr) { .s6_addr = __VA_ARGS__}, 16) )
|
D | resolved-dnstls-gnutls.c | 69 stream->dnstls_data.validation.data = server->address.in6.s6_addr; in dnstls_stream_connect_tls()
|
D | resolved-dnstls-openssl.c | 92 …amily == AF_INET ? (const unsigned char*) &server->address.in.s_addr : server->address.in6.s6_addr; in dnstls_stream_connect_tls()
|
/systemd-251/src/basic/linux/ |
D | in6.h | 41 #define s6_addr in6_u.u6_addr8 macro
|
/systemd-251/src/core/ |
D | bpf-firewall.c | 64 offsetof(struct ip6_hdr, ip6_src.s6_addr) : in add_lookup_instructions() 65 offsetof(struct ip6_hdr, ip6_dst.s6_addr); in add_lookup_instructions()
|
D | socket.c | 849 *a = local.in6.sin6_addr.s6_addr+12, in instance_from_socket() 850 *b = remote.in6.sin6_addr.s6_addr+12; in instance_from_socket()
|