Home
last modified time | relevance | path

Searched refs:mask6 (Results 1 – 20 of 20) sorted by relevance

/freebsd/tests/sys/net/routing/
H A Dtest_rtsock_l3.c148 …gw->sin6_addr._s6_addr32[0] = htonl((ntohl(gw->sin6_addr._s6_addr32[0]) | ~ntohl(c->mask6.sin6_add… in prepare_v6_network()
149 …gw->sin6_addr._s6_addr32[1] = htonl((ntohl(gw->sin6_addr._s6_addr32[1]) | ~ntohl(c->mask6.sin6_add… in prepare_v6_network()
150 …gw->sin6_addr._s6_addr32[2] = htonl((ntohl(gw->sin6_addr._s6_addr32[2]) | ~ntohl(c->mask6.sin6_add… in prepare_v6_network()
151 …gw->sin6_addr._s6_addr32[3] = htonl((ntohl(gw->sin6_addr._s6_addr32[3]) | ~ntohl(c->mask6.sin6_add… in prepare_v6_network()
709 struct sockaddr_in6 mask6; in ATF_TC_BODY() local
712 prepare_v6_network(c, &net6, &mask6, &gw6); in ATF_TC_BODY()
715 (struct sockaddr *)&mask6, (struct sockaddr *)&gw6); in ATF_TC_BODY()
728 (struct sockaddr *)&mask6, (struct sockaddr *)&gw6); in ATF_TC_BODY()
753 struct sockaddr_in6 mask6; in ATF_TC_BODY() local
756 prepare_v6_network(c, &net6, &mask6, &gw6); in ATF_TC_BODY()
[all …]
H A Drtsock_config.h47 struct sockaddr_in6 mask6; member
117 sa_fill_mask6(&c->mask6, c->plen6); in config_setup()
/freebsd/sys/net/
H A Dif_stf.c375 struct in6_addr addr6, mask6; in stf_encapcheck() local
399 if (stf_getsrcifa6(STF2IFP(sc), &addr6, &mask6) != 0) in stf_encapcheck()
406 if (stf_getin4addr(sc, &sin4addr, addr6, mask6) == NULL) in stf_encapcheck()
420 memcpy(&sin4mask.sin_addr, GET_V4(&mask6), in stf_encapcheck()
450 struct in6_addr addr6, mask6; in stf_getsrcifa6() local
466 mask6 = *IFA_MASKIN6(ia); in stf_getsrcifa6()
470 if (stf_getin4addr(sc, &sin4, addr6, mask6) == NULL) in stf_getsrcifa6()
482 *mask = mask6; in stf_getsrcifa6()
504 struct in6_addr addr6, mask6; in stf_output() local
534 if (stf_getsrcifa6(ifp, &addr6, &mask6) != 0) { in stf_output()
[all …]
H A Drtsock.c856 struct sockaddr_in6 *mask6 = (struct sockaddr_in6 *)mask; in init_sockaddrs_family() local
859 bzero(mask6, sizeof(struct sockaddr_in6)); in init_sockaddrs_family()
863 mask6->sin6_family = AF_INET6; in init_sockaddrs_family()
864 mask6->sin6_len = sizeof(struct sockaddr_in6); in init_sockaddrs_family()
886 struct sockaddr_in6 *mask6 = (struct sockaddr_in6 *)mask; in export_rtaddrs() local
889 &mask6->sin6_addr, &scopeid); in export_rtaddrs()
/freebsd/sys/netinet6/
H A Din6_rmx.c97 const struct sockaddr_in6 *mask6 = (const struct sockaddr_in6 *)mask; in rib6_set_nh_pfxflags()
99 if (mask6 == NULL) in rib6_set_nh_pfxflags()
101 else if (IN6_IS_ADDR_UNSPECIFIED(&mask6->sin6_addr)) in rib6_set_nh_pfxflags()
98 const struct sockaddr_in6 *mask6 = (const struct sockaddr_in6 *)mask; rib6_set_nh_pfxflags() local
H A Dnd6_rtr.c2048 struct sockaddr_in6 mask6 = { in nd6_prefix_onlink_rtrequest() local
2053 struct sockaddr_in6 *pmask6 = (pr->ndpr_plen != 128) ? &mask6 : NULL; in nd6_prefix_onlink_rtrequest()
2162 struct sockaddr_in6 mask6 = { in nd6_prefix_offlink() local
2167 struct sockaddr_in6 *pmask6 = (pr->ndpr_plen != 128) ? &mask6 : NULL; in nd6_prefix_offlink()
2228 (struct sockaddr *)&mask6, LLE_STATIC); in nd6_prefix_offlink()
/freebsd/tests/atf_python/sys/netpfil/ipfw/
H A Dinsns.py472 def __init__(self, opcode, is_or=False, is_not=False, arg1=0, ip6=None, mask6=None): argument
475 self.mask6 = mask6
476 if mask6 is not None:
491 self.mask6 = socket.inet_ntop(socket.AF_INET6, data[20:36])
494 self.mask6 = None
500 if self.mask6 is not None:
501 ret += socket.inet_pton(socket.AF_INET6, self.mask6)
505 if self.mask6:
506 return " ip6={}/{}".format(self.ip6, self.mask6)
/freebsd/usr.sbin/ppp/
H A Dncpaddr.c702 const struct sockaddr_in6 *mask6 = (const struct sockaddr_in6 *)mask; in ncprange_setsa() local
728 range->ncprange_ip6width = mask6 ? mask62bits(&mask6->sin6_addr) : 128; in ncprange_setsa()
745 struct sockaddr_in6 *mask6 = (struct sockaddr_in6 *)mask; in ncprange_getsa() local
769 if (mask6) { in ncprange_getsa()
770 mask6->sin6_family = AF_INET6; in ncprange_getsa()
771 mask6->sin6_len = sizeof(*host6); in ncprange_getsa()
772 mask6->sin6_addr = bits2mask6(range->ncprange_ip6width); in ncprange_getsa()
/freebsd/sys/netpfil/ipfw/
H A Dip_fw_table_algo.c616 struct sa_in6 *addr6, *mask6; in tei_to_sockaddr_ent_addr() local
643 mask6 = (struct sa_in6 *)ma; in tei_to_sockaddr_ent_addr()
646 KEY_LEN(*mask6) = KEY_LEN_INET6; in tei_to_sockaddr_ent_addr()
648 ipv6_writemask(&mask6->sin6_addr, mlen); in tei_to_sockaddr_ent_addr()
650 APPLY_MASK(&addr6->sin6_addr, &mask6->sin6_addr); in tei_to_sockaddr_ent_addr()
930 uint8_t mask6; member
1037 struct in6_addr mask6; in hash_ip6_slow() local
1039 ipv6_writemask(&mask6, mask); in hash_ip6_slow()
1041 APPLY_MASK(addr6, &mask6); in hash_ip6_slow()
1203 int mask4, mask6; in chash_parse_opts() local
[all …]
/freebsd/usr.bin/netstat/
H A Droute_netlink.c165 struct sockaddr_in6 mask6; in p_path() local
166 struct sockaddr *pmask = (struct sockaddr *)&mask6; in p_path()
/freebsd/sys/net/route/
H A Droute_helpers.c604 struct in6_addr mask6; in rt_get_inet6_parent() local
609 ip6_writemask(&mask6, plen); in rt_get_inet6_parent()
610 IN6_MASK_ADDR(&addr6, &mask6); in rt_get_inet6_parent()
/freebsd/contrib/ntp/ntpdc/
H A Dlayout.std270 offsetof(mask6) = 40
282 offsetof(mask6) = 44
/freebsd/sbin/route/
H A Droute_netlink.c196 struct sockaddr_in6 *mask6 = (struct sockaddr_in6 *)mask; in rtmsg_nl_int() local
198 if ((rtm_flags & RTF_HOST) == 0 && mask6 != NULL) in rtmsg_nl_int()
199 plen = inet6_get_plen(&mask6->sin6_addr); in rtmsg_nl_int()
/freebsd/sbin/ipfw/
H A Dnat64lsn.c319 struct in6_addr mask6, *p6; in nat64lsn_apply_mask() local
328 n2mask(&mask6, plen); in nat64lsn_apply_mask()
329 APPLY_MASK(p6, &mask6); in nat64lsn_apply_mask()
/freebsd/sys/tests/fib_lookup/
H A Dfib_lookup.c659 struct in6_addr mask6; in add_prefix6() local
660 ipv6_writemask(&mask6, plen); in add_prefix6()
663 naddr.s6_addr32[i] = htonl(ntohl(naddr.s6_addr32[i]) | ~ntohl(mask6.s6_addr32[i])); in add_prefix6()
/freebsd/contrib/ntp/include/
H A Dntp_request.h662 struct in6_addr mask6; /* match mask (v6) */ member
679 struct in6_addr mask6; /* match mask (v6) */ member
/freebsd/contrib/wpa/src/radius/
H A Dradius_server.c107 struct in6_addr mask6; member
346 client->mask6.s6_addr[i]) != in radius_server_get_client()
348 client->mask6.s6_addr[i])) { in radius_server_get_client()
2159 os_memset(entry->mask6.s6_addr, 0xff, offset); in radius_server_read_clients()
2164 entry->mask6.s6_addr[offset] = val; in radius_server_read_clients()
2463 if (inet_ntop(AF_INET6, &cli->mask6, mbuf, in radius_server_get_mib()
/freebsd/usr.sbin/ntp/ntpdc/
H A Dnl.c536 (int) offsetof(struct info_restrict, mask6));
554 (int) offsetof(struct conf_restrict, mask6));
/freebsd/sys/netinet/
H A Dip_fw.h594 struct in6_addr mask6; member
/freebsd/contrib/ntp/ntpd/
H A Dntp_request.c1691 pir->mask6 = res->u.v6.mask; in list_restrict6()
1865 SOCK_ADDR6(&matchmask) = cr.mask6; in do_restrict()