Searched refs:in6 (Results 1 - 25 of 32) sorted by relevance

12

/systemd/src/libsystemd-network/
H A Ddhcp6-network.c37 .in6.sin6_family = AF_INET6,
38 .in6.sin6_port = htobe16(DHCP6_PORT_CLIENT),
39 .in6.sin6_scope_id = index,
47 src.in6.sin6_addr = *local_address;
65 r = bind(s, &src.sa, sizeof(src.in6));
77 .in6.sin6_family = AF_INET6,
78 .in6.sin6_port = htobe16(DHCP6_PORT_SERVER),
84 memcpy(&dest.in6.sin6_addr, server_address, sizeof(dest.in6.sin6_addr));
86 r = sendto(s, packet, len, 0, &dest.sa, sizeof(dest.in6));
[all...]
H A Dsd-ndisc.c527 else if (msg.msg_namelen != sizeof(sa.in6)) {
531 gw = &sa.in6.sin6_addr;
/systemd/src/basic/
H A Din-addr-util.c39 u->in6.s6_addr32[0] == 0 &&
40 u->in6.s6_addr32[1] == 0 &&
41 u->in6.s6_addr32[2] == 0 &&
42 u->in6.s6_addr32[3] == 0;
54 return IN6_IS_ADDR_LINKLOCAL(&u->in6);
67 return IN6_IS_ADDR_LOOPBACK(&u->in6);
81 a->in6.s6_addr32[0] == b->in6.s6_addr32[0] &&
82 a->in6.s6_addr32[1] == b->in6
[all...]
H A Dsocket-util.c69 if (inet_pton(AF_INET6, n, &a->sockaddr.in6.sin6_addr) <= 0)
84 a->sockaddr.in6.sin6_family = AF_INET6;
85 a->sockaddr.in6.sin6_port = htons((uint16_t) u);
146 a->sockaddr.in6.sin6_family = AF_INET6;
147 a->sockaddr.in6.sin6_port = htons((uint16_t) u);
148 a->sockaddr.in6.sin6_scope_id = idx;
149 a->sockaddr.in6.sin6_addr = in6addr_any;
163 a->sockaddr.in6.sin6_family = AF_INET6;
164 a->sockaddr.in6.sin6_port = htons((uint16_t) u);
165 a->sockaddr.in6
[all...]
H A Din-addr-util.h31 struct in6_addr in6; member in union:in_addr_union
H A Dsocket-util.h38 struct sockaddr_in6 in6; member in union:sockaddr_union
/systemd/src/network/
H A Dnetworkd-ndisc.c74 address->in_addr.in6 = *prefix;
76 memcpy(((char *)&address->in_addr.in6) + 8, ((char *)&link->network->ipv6_token) + 8, 8);
79 address->in_addr.in6.__in6_u.__u6_addr8[8] = link->mac.ether_addr_octet[0];
80 address->in_addr.in6.__in6_u.__u6_addr8[8] ^= 1 << 1;
81 address->in_addr.in6.__in6_u.__u6_addr8[9] = link->mac.ether_addr_octet[1];
82 address->in_addr.in6.__in6_u.__u6_addr8[10] = link->mac.ether_addr_octet[2];
83 address->in_addr.in6.__in6_u.__u6_addr8[11] = 0xff;
84 address->in_addr.in6.__in6_u.__u6_addr8[12] = 0xfe;
85 address->in_addr.in6.__in6_u.__u6_addr8[13] = link->mac.ether_addr_octet[3];
86 address->in_addr.in6
[all...]
H A Dnetworkd-dhcp6.c73 memcpy(&addr->in_addr.in6, ip6_addr, sizeof(*ip6_addr));
83 SD_NDISC_ADDRESS_FORMAT_VAL(addr->in_addr.in6),
H A Dtest-network.c176 assert_se(inet_pton(AF_INET6, "2001:4ca0:4f01::2", &a1->in_addr.in6));
177 assert_se(inet_pton(AF_INET6, "2001:4ca0:4f01::2", &a2->in_addr.in6));
183 assert_se(inet_pton(AF_INET6, "2001:4ca0:4f01::1", &a2->in_addr.in6));
H A Dnetworkd-netdev-tunnel.c178 r = sd_netlink_message_append_in6_addr(m, IFLA_GRE_LOCAL, &t->local.in6);
182 r = sd_netlink_message_append_in6_addr(m, IFLA_GRE_REMOTE, &t->remote.in6);
242 r = sd_netlink_message_append_in6_addr(m, IFLA_VTI_LOCAL, &t->local.in6);
246 r = sd_netlink_message_append_in6_addr(m, IFLA_VTI_REMOTE, &t->remote.in6);
268 r = sd_netlink_message_append_in6_addr(m, IFLA_IPTUN_LOCAL, &t->local.in6);
272 r = sd_netlink_message_append_in6_addr(m, IFLA_IPTUN_REMOTE, &t->remote.in6);
H A Dnetworkd-route.c353 r = sd_netlink_message_append_in6_addr(req, RTA_GATEWAY, &route->gw.in6);
362 r = sd_netlink_message_append_in6_addr(req, RTA_DST, &route->dst.in6);
375 r = sd_netlink_message_append_in6_addr(req, RTA_SRC, &route->src.in6);
388 r = sd_netlink_message_append_in6_addr(req, RTA_PREFSRC, &route->prefsrc.in6);
450 r = sd_netlink_message_append_in6_addr(req, RTA_GATEWAY, &route->gw.in6);
459 r = sd_netlink_message_append_in6_addr(req, RTA_DST, &route->dst.in6);
472 r = sd_netlink_message_append_in6_addr(req, RTA_SRC, &route->src.in6);
485 r = sd_netlink_message_append_in6_addr(req, RTA_PREFSRC, &route->prefsrc.in6);
H A Dnetworkd-address.c350 r = link_ipv6ll_gained(address->link, &address->in_addr.in6);
431 r = sd_netlink_message_append_in6_addr(req, IFA_LOCAL, &address->in_addr.in6);
475 in_addr.in6.s6_addr[15] |= 1;
550 r = sd_netlink_message_append_in6_addr(req, IFA_LOCAL, &address->in_addr.in6);
558 r = sd_netlink_message_append_in6_addr(req, IFA_ADDRESS, &address->in_addr_peer.in6);
H A Dnetworkd-manager.c377 r = sd_netlink_message_read_in6_addr(message, RTA_DST, &dst.in6);
383 r = sd_netlink_message_read_in6_addr(message, RTA_GATEWAY, &gw.in6);
389 r = sd_netlink_message_read_in6_addr(message, RTA_SRC, &src.in6);
395 r = sd_netlink_message_read_in6_addr(message, RTA_PREFSRC, &prefsrc.in6);
561 r = sd_netlink_message_read_in6_addr(message, IFA_ADDRESS, &in_addr.in6);
H A Dnetworkd-network.c726 if ((buffer.in6.s6_addr32[0] | buffer.in6.s6_addr32[1]) != 0) {
731 *token = buffer.in6;
/systemd/src/resolve/
H A Dresolved-dns-stream.c87 s->ifindex = s->local.in6.sin6_scope_id;
95 s->ifindex = s->peer.in6.sin6_scope_id;
168 s->ifindex = manager_find_ifindex(s->manager, s->local.sa.sa_family, s->local.sa.sa_family == AF_INET ? (union in_addr_union*) &s->local.in.sin_addr : (union in_addr_union*) &s->local.in6.sin6_addr);
280 s->read_packet->sender.in6 = s->peer.in6.sin6_addr;
281 s->read_packet->sender_port = be16toh(s->peer.in6.sin6_port);
282 s->read_packet->destination.in6 = s->local.in6.sin6_addr;
283 s->read_packet->destination_port = be16toh(s->local.in6.sin6_port);
286 s->read_packet->ifindex = s->peer.in6
[all...]
H A Dresolved-dns-scope.c228 addr.in6 = LLMNR_MULTICAST_IPV6_ADDRESS;
253 addr.in6 = MDNS_MULTICAST_IPV6_ADDRESS;
324 sa.in6.sin6_port = htobe16(port);
325 sa.in6.sin6_addr = server->address.in6;
326 sa.in6.sin6_scope_id = s->link ? s->link->ifindex : 0;
327 salen = sizeof(sa.in6);
341 sa.in6.sin6_port = htobe16(port);
342 sa.in6.sin6_addr = address->in6;
531 dns_scope_multicast_membership(DnsScope *s, bool b, struct in_addr in, struct in6_addr in6) argument
[all...]
H A Dresolved-llmnr.c205 .in6.sin6_family = AF_INET6,
206 .in6.sin6_port = htobe16(LLMNR_PORT),
263 r = bind(m->llmnr_ipv6_udp_fd, &sa.sa, sizeof(sa.in6));
407 .in6.sin6_family = AF_INET6,
408 .in6.sin6_port = htobe16(LLMNR_PORT),
453 r = bind(m->llmnr_ipv6_tcp_fd, &sa.sa, sizeof(sa.in6));
H A Dresolved-manager.c152 r = sd_netlink_message_read_in6_addr(mm, IFA_LOCAL, &address.in6);
154 r = sd_netlink_message_read_in6_addr(mm, IFA_ADDRESS, &address.in6);
669 p->sender.in6 = sa.in6.sin6_addr;
670 p->sender_port = be16toh(sa.in6.sin6_port);
671 p->ifindex = sa.in6.sin6_scope_id;
688 p->destination.in6 = i->ipi6_addr;
850 .in6.sin6_family = AF_INET6,
868 sa.in6.sin6_addr = *addr;
869 sa.in6
[all...]
H A Dresolved-mdns.c214 .in6.sin6_family = AF_INET6,
215 .in6.sin6_port = htobe16(MDNS_PORT),
272 r = bind(m->mdns_ipv6_fd, &sa.sa, sizeof(sa.in6));
H A Dresolved-etc-hosts.c75 siphash24_compress(&item->address.in6, sizeof(item->address.in6), state);
88 return memcmp(&x->address.in6.s6_addr, &y->address.in6.s6_addr, sizeof(struct in6_addr));
H A Dresolved-dns-synthesize.c254 .address.in6 = in6addr_loopback,
/systemd/src/libsystemd/sd-netlink/
H A Dlocal-addresses.c140 r = sd_netlink_message_read_in6_addr(m, IFA_LOCAL, &a->address.in6);
142 r = sd_netlink_message_read_in6_addr(m, IFA_ADDRESS, &a->address.in6);
252 r = sd_netlink_message_read_in6_addr(m, RTA_GATEWAY, &a->address.in6);
/systemd/src/test/
H A Dtest-socket-util.c335 .in6.sin6_family = AF_INET6,
336 .in6.sin6_port = 0,
337 .in6.sin6_addr = IN6ADDR_ANY_INIT,
/systemd/src/core/
H A Dsocket.c726 if (memcmp(&local.in6.sin6_addr, ipv4_prefix, sizeof(ipv4_prefix)) == 0 &&
727 memcmp(&remote.in6.sin6_addr, ipv4_prefix, sizeof(ipv4_prefix)) == 0) {
729 *a = local.in6.sin6_addr.s6_addr+12,
730 *b = remote.in6.sin6_addr.s6_addr+12;
736 ntohs(local.in6.sin6_port),
738 ntohs(remote.in6.sin6_port)) < 0)
746 inet_ntop(AF_INET6, &local.in6.sin6_addr, a, sizeof(a)),
747 ntohs(local.in6.sin6_port),
748 inet_ntop(AF_INET6, &remote.in6.sin6_addr, b, sizeof(b)),
749 ntohs(remote.in6
[all...]
/systemd/src/libsystemd/sd-daemon/
H A Dsd-daemon.c318 return htons(port) == sockaddr.in6.sin6_port;

Completed in 69 milliseconds

12