Home
last modified time | relevance | path

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

12

/external/selinux/libsepol/cil/test/unit/
Dtest_cil_post.c550 anodecon->addr->ip.v6.s6_addr[0] = '5'; in test_cil_post_nodecon_compare_aipv6_greaterthan_bipv6()
551 anodecon->mask->ip.v6.s6_addr[0] = '9'; in test_cil_post_nodecon_compare_aipv6_greaterthan_bipv6()
554 bnodecon->addr->ip.v6.s6_addr[0] = '3'; in test_cil_post_nodecon_compare_aipv6_greaterthan_bipv6()
555 bnodecon->mask->ip.v6.s6_addr[0] = '9'; in test_cil_post_nodecon_compare_aipv6_greaterthan_bipv6()
573 anodecon->addr->ip.v6.s6_addr[0] = '3'; in test_cil_post_nodecon_compare_aipv6_lessthan_bipv6()
574 anodecon->mask->ip.v6.s6_addr[0] = '1'; in test_cil_post_nodecon_compare_aipv6_lessthan_bipv6()
577 bnodecon->addr->ip.v6.s6_addr[0] = '5'; in test_cil_post_nodecon_compare_aipv6_lessthan_bipv6()
578 bnodecon->mask->ip.v6.s6_addr[0] = '1'; in test_cil_post_nodecon_compare_aipv6_lessthan_bipv6()
596 anodecon->addr->ip.v6.s6_addr[0] = '1'; in test_cil_post_nodecon_compare_amaskipv6_greaterthan_bmaskipv6()
597 anodecon->mask->ip.v6.s6_addr[0] = '4'; in test_cil_post_nodecon_compare_amaskipv6_greaterthan_bmaskipv6()
[all …]
/external/libpcap/tests/
Dfindalldevstest.c92 ((struct sockaddr_in6 *)(a->addr))->sin6_addr.s6_addr, in ifprint()
97 ((struct sockaddr_in6 *)(a->netmask))->sin6_addr.s6_addr, in ifprint()
102 ((struct sockaddr_in6 *)(a->broadaddr))->sin6_addr.s6_addr, in ifprint()
107 ((struct sockaddr_in6 *)(a->dstaddr))->sin6_addr.s6_addr, in ifprint()
/external/dhcpcd/
Dipv6rs.c117 if (inet_pton(AF_INET6, ALLROUTERS, &allrouters.sin6_addr.s6_addr) != 1) in ipv6rs_open()
355 if (memcmp(rap->from.s6_addr, from.sin6_addr.s6_addr, in ipv6rs_handledata()
356 sizeof(rap->from.s6_addr)) == 0) in ipv6rs_handledata()
379 memcpy(rap->from.s6_addr, from.sin6_addr.s6_addr, in ipv6rs_handledata()
380 sizeof(rap->from.s6_addr)); in ipv6rs_handledata()
440 pi->nd_opt_pi_prefix.s6_addr, in ipv6rs_handledata()
467 memcpy(&addr.s6_addr, op, sizeof(addr.s6_addr)); in ipv6rs_handledata()
486 op += sizeof(addr.s6_addr); in ipv6rs_handledata()
/external/android-clat/
Dconfig.c198 arc4random_buf(&myaddr->s6_addr[8], 8); in gen_random_iid()
206 uint16_t middlebytes = (myaddr->s6_addr[11] << 8) + myaddr->s6_addr[12]; in gen_random_iid()
213 myaddr->s6_addr[11] = delta >> 8; in gen_random_iid()
214 myaddr->s6_addr[12] = delta & 0xff; in gen_random_iid()
Dclatd_test.cpp592 subnet2.s6_addr[6] = 0xff; in TEST_F()
651 uint64_t iid = * (uint64_t*) (&myaddr.s6_addr[8]); in TEST_F()
/external/iputils/ninfod/
Dninfod_name.c280 nigroup->s6_addr[ 0] = 0xff; in nodeinfo_group()
281 nigroup->s6_addr[ 1] = 0x02; in nodeinfo_group()
282 nigroup->s6_addr[11] = 0x02; in nodeinfo_group()
284 memcpy(&nigroup->s6_addr[12], digest, 4); in nodeinfo_group()
/external/ipsec-tools/src/racoon/
Dgrabmyaddr.c388 ntohs(*(u_int16_t *)&sin6->sin6_addr.s6_addr[2]); in grab_myaddrs()
389 sin6->sin6_addr.s6_addr[2] = 0; in grab_myaddrs()
390 sin6->sin6_addr.s6_addr[3] = 0; in grab_myaddrs()
515 ntohs(*(u_int16_t *)&sin6->sin6_addr.s6_addr[2]); in grab_myaddrs()
516 sin6->sin6_addr.s6_addr[2] = 0; in grab_myaddrs()
517 sin6->sin6_addr.s6_addr[3] = 0; in grab_myaddrs()
Doakley.c2027 a = (caddr_t)&((struct sockaddr_in6 *)res->ai_addr)->sin6_addr.s6_addr;
/external/wpa_supplicant_8/src/radius/
Dradius_server.c421 if ((addr6->s6_addr[i] & in radius_server_get_client()
422 client->mask6.s6_addr[i]) != in radius_server_get_client()
423 (client->addr6.s6_addr[i] & in radius_server_get_client()
424 client->mask6.s6_addr[i])) { in radius_server_get_client()
1609 os_memset(addr6.s6_addr, 0, 10); in radius_server_read_clients()
1610 addr6.s6_addr[10] = 0xff; in radius_server_read_clients()
1611 addr6.s6_addr[11] = 0xff; in radius_server_read_clients()
1612 os_memcpy(addr6.s6_addr + 12, (char *) &addr.s_addr, in radius_server_read_clients()
1649 os_memcpy(entry->addr6.s6_addr, addr6.s6_addr, 16); in radius_server_read_clients()
1650 os_memset(entry->mask6.s6_addr, 0xff, offset); in radius_server_read_clients()
[all …]
/external/dnsmasq/src/
Dbpf.c109 addr->s6_addr[2] = 0; in iface_enumerate()
110 addr->s6_addr[3] = 0; in iface_enumerate()
/external/openssh/openbsd-compat/
Dfake-rfc2553.h70 u_int8_t s6_addr[16]; member
/external/kernel-headers/original/uapi/linux/
Din6.h40 #define s6_addr in6_u.u6_addr8 macro
/external/libpcap/Win32/Include/
Dip6_misc.h50 #define s6_addr in6_u.u6_addr8 macro
/external/selinux/libsepol/src/
Dnode_record.c74 memcpy(addr_bytes, in_addr.s6_addr, 16); in node_parse_addr()
166 memcpy(&addr.s6_addr[0], addr_bytes, 16); in node_expand_addr()
/external/toybox/toys/pending/
Droute.c363 memcpy(&rt->rtmsg_gateway, sock_in6->sin6_addr.s6_addr, sizeof(struct in6_addr)); in get_next_params_inet6()
407 memcpy(&rt.rtmsg_dst, sock_in6.sin6_addr.s6_addr, sizeof(struct in6_addr)); in setroute_inet6()
/external/tcpdump/missing/
Dgetnameinfo.c184 switch (sin6->sin6_addr.s6_addr[0]) {
/external/mdnsresponder/mDNSPosix/
DmDNSUNP.c429 sinptr6->sin6_addr.s6_addr[2] = sinptr6->sin6_addr.s6_addr[3] = 0; in get_ifi_info()
/external/openssh/
Dloginrec.c708 memcpy(ut->ut_addr_v6, sa6->sin6_addr.s6_addr, 16); in construct_utmp()
790 memcpy(utx->ut_addr_v6, sa6->sin6_addr.s6_addr, 16); in construct_utmpx()
/external/tcpdump/
Dprint-bgp.c1069 addr.s6_addr[plenbytes - 1] &= in decode_prefix6()
1107 addr.s6_addr[plenbytes - 1] &= in decode_labeled_prefix6()
1147 addr.s6_addr[(plen + 7) / 8 - 1] &= in decode_labeled_vpn_prefix6()
Dprint-domain.c517 memcpy(&a.s6_addr[pbyte], cp + 1, sizeof(a) - pbyte); in ns_rprint()
/external/mdnsresponder/mDNSShared/
DDebugServices.c2878 sa6.sin6_addr.s6_addr[ 0 ] = 0xFE; in DebugServicesTest()
2879 sa6.sin6_addr.s6_addr[ 1 ] = 0x80; in DebugServicesTest()
2880 sa6.sin6_addr.s6_addr[ 15 ] = 0x01; in DebugServicesTest()
/external/libpcap/Win32/Src/
Dgetaddrinfo.c800 pfx = ((struct in6_addr *)pton)->s6_addr[0];
/external/ppp/pppd/
Dsys-linux.c161 memset(&sin6.s6_addr, 0, sizeof(struct in6_addr)); \
/external/selinux/libsepol/cil/src/
Dcil_binary.c2809 memcpy(new_ocon->u.node6.addr, &cil_nodecon->addr->ip.v6.s6_addr[0], 16); in cil_nodecon_to_policydb()
2810 memcpy(new_ocon->u.node6.mask, &cil_nodecon->mask->ip.v6.s6_addr[0], 16); in cil_nodecon_to_policydb()
/external/selinux/checkpolicy/
Dpolicy_define.c5083 memcpy(&newc->u.node6.addr[0], &addr.s6_addr[0], 16); in define_ipv6_node_context()
5084 memcpy(&newc->u.node6.mask[0], &mask.s6_addr[0], 16); in define_ipv6_node_context()

12