Home
last modified time | relevance | path

Searched refs:s6_addr (Results 1 – 19 of 19) sorted by relevance

/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…
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 …]
Dnetworkd-ipv6ll.c208 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()
Dnetworkd-dhcp-common.c845 sz = sizeof(addr.in6.s6_addr); in config_parse_dhcp_send_option()
Dnetworkd-dhcp-prefix-delegation.c861 … pd_prefix.s6_addr[(i + sixrd_prefixlen) / 8] |= 1 << (7 - (i + sixrd_prefixlen) % 8); in dhcp4_calculate_pd_prefix()
Dnetworkd-address.c1007 in_addr.in6.s6_addr[15] |= 1; in address_acquire()
/systemd-251/src/test/
Dtest-in-addr-prefix-util.c28 .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/
Din-addr-util.c205 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()
Dsocket-util.c480 const uint8_t *a = sa->in6.sin6_addr.s6_addr+12; in sockaddr_pretty()
/systemd-251/src/shared/
Din-addr-prefix-util.c39 .address.in6.s6_addr[0] = 0xfe, \
40 .address.in6.s6_addr[1] = 0x80, \
54 .address.in6.s6_addr[0] = 0xff, \
Ddns-domain.c790 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()
Dfirewall-util-nft.c341 …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/
Dsd-daemon.c353 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/
Dresolved-dns-packet.h291 #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…
Dtest-resolved-etc-hosts.c36 !memcmp(&(_addr)->address.in6, &(struct in6_addr) { .s6_addr = __VA_ARGS__}, 16) )
Dresolved-dnstls-gnutls.c69 stream->dnstls_data.validation.data = server->address.in6.s6_addr; in dnstls_stream_connect_tls()
Dresolved-dnstls-openssl.c92 …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/
Din6.h41 #define s6_addr in6_u.u6_addr8 macro
/systemd-251/src/core/
Dbpf-firewall.c64 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()
Dsocket.c849 *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()