| /freebsd-13.1/sys/contrib/dpdk_rte_lpm/ |
| H A D | dpdk_lpm6.c | 98 const struct in6_addr *addr6; in lookup_ptr() local 103 addr6 = key.addr6; in lookup_ptr() 106 if (!IN6_IS_SCOPE_LINKLOCAL(addr6)) { in lookup_ptr() 120 return (lookup_ptr_ll(lpm6, addr6, scopeid)); in lookup_ptr() 196 const struct in6_addr *addr6, int plen) in handle_gu_change() argument 200 inet_ntop(AF_INET6, addr6, abuf, sizeof(abuf)); in handle_gu_change() 251 struct in6_addr addr6; in handle_any_change() local 257 if (IN6_IS_SCOPE_LINKLOCAL(&addr6)) in handle_any_change() 262 ret = handle_gu_change(dd, rc, &addr6, plen); in handle_any_change() 301 struct in6_addr addr6; in add_route_cb() local [all …]
|
| /freebsd-13.1/tests/sys/net/routing/ |
| H A D | rtsock_config.h | 50 struct sockaddr_in6 addr6; member 116 c->addr6.sin6_len = sizeof(struct sockaddr_in6); in config_setup() 117 c->addr6.sin6_family = AF_INET6; in config_setup() 122 memcpy(&c->addr6.sin6_addr, &c->net6.sin6_addr, sizeof(struct in6_addr)); in config_setup() 124 c->addr6.sin6_addr._s6_addr32[3] = htonl(ntohl(c->net6.sin6_addr._s6_addr32[3]) + 1); in config_setup() 127 inet_ntop(AF_INET6, &c->addr6.sin6_addr, c->addr6_str, INET6_ADDRSTRLEN); in config_setup()
|
| /freebsd-13.1/sys/netinet6/ |
| H A D | in6_fib_algo.c | 103 struct sa_in6 addr6 = { in lradix6_lookup() local 105 .sin6_addr = *key.addr6, in lradix6_lookup() 107 if (IN6_IS_SCOPE_LINKLOCAL(key.addr6)) in lradix6_lookup() 108 addr6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff); in lradix6_lookup() 109 ent = (struct radix6_addr_entry *)(rn_match(&addr6, &rnh->rh)); in lradix6_lookup() 260 .sin6_addr = *key.addr6, in radix6_lookup() 262 if (IN6_IS_SCOPE_LINKLOCAL(key.addr6)) in radix6_lookup() 279 const struct flm_lookup_key key = { .addr6 = dst6 }; in fib6_radix_lookup_nh()
|
| H A D | in6_fib.c | 126 struct flm_lookup_key key = {.addr6 = dst6 }; in fib6_lookup() 273 struct flm_lookup_key key = {.addr6 = dst6 }; in fib6_check_urpf()
|
| H A D | nd6.c | 776 dst = &ln->r_l3addr.addr6; in nd6_llinfo_timer() 1192 nd6_lookup(const struct in6_addr *addr6, int flags, struct ifnet *ifp) in nd6_lookup() argument 1200 sin6.sin6_addr = *addr6; in nd6_lookup() 1210 nd6_alloc(const struct in6_addr *addr6, int flags, struct ifnet *ifp) in nd6_alloc() argument 1218 sin6.sin6_addr = *addr6; in nd6_alloc() 1479 dr = defrouter_lookup_locked(&ln->r_l3addr.addr6, ifp); in nd6_free() 1554 rt6_flush(&ln->r_l3addr.addr6, ifp); in nd6_free()
|
| H A D | in6.c | 2112 in6_lltable_new(const struct in6_addr *addr6, u_int flags) in in6_lltable_new() argument 2120 lle->base.r_l3addr.addr6 = *addr6; in in6_lltable_new() 2138 lle_addr = &lle->r_l3addr.addr6; in in6_lltable_match_prefix() 2228 return (in6_lltable_hash_dst(&lle->r_l3addr.addr6, hsize)); in in6_lltable_hash() 2240 sin6->sin6_addr = lle->r_l3addr.addr6; in in6_lltable_fill_sa_entry() 2255 if (IN6_ARE_ADDR_EQUAL(&lle->r_l3addr.addr6, dst)) in in6_lltable_find_dst()
|
| /freebsd-13.1/contrib/ntp/lib/isc/unix/ |
| H A D | interfaceiter.c | 192 struct in6_addr addr6; in linux_if_inet6_current() local 236 addr6.s6_addr[i] = byte; in linux_if_inet6_current() 240 isc_netaddr_fromin6(&iter->current.address, &addr6); in linux_if_inet6_current() 248 addr6.s6_addr[i] = 0xff; in linux_if_inet6_current() 251 addr6.s6_addr[i] = (0xff << (8 - prefix)) & 0xff; in linux_if_inet6_current() 255 isc_netaddr_fromin6(&iter->current.netmask, &addr6); in linux_if_inet6_current()
|
| /freebsd-13.1/sys/net/route/ |
| H A D | route_helpers.c | 503 struct in6_addr addr6; in get_inet6_parent_prefix() local 512 rt_get_inet6_prefix_plen(rt, &addr6, &parent_plen, &scopeid); in get_inet6_parent_prefix() 526 rt_get_inet6_prefix_plen(rt, &addr6, &parent_plen, &scopeid); in get_inet6_parent_prefix() 535 ipv6_writemask(struct in6_addr *addr6, uint8_t mask) in ipv6_writemask() argument 539 for (cp = (uint32_t *)addr6; mask >= 32; mask -= 32) in ipv6_writemask() 552 struct in6_addr addr6 = *paddr; in rt_get_inet6_parent() local 559 IN6_MASK_ADDR(&addr6, &mask6); in rt_get_inet6_parent() 560 if (IN6_ARE_ADDR_EQUAL(&addr6, &lookup_addr)) { in rt_get_inet6_parent() 564 lookup_addr = addr6; in rt_get_inet6_parent()
|
| H A D | fib_algo.h | 50 const struct in6_addr *addr6; member 58 struct in6_addr addr6; member
|
| /freebsd-13.1/sys/netpfil/ipfw/ |
| H A D | ip_fw_table_algo.c | 342 struct sa_in6 addr6; member 528 memcpy(&tent->k.addr6, &xn->addr6.sin6_addr, in ta_dump_radix_tentry() 1008 i = addr6->s6_addr32[0] ^ addr6->s6_addr32[1] ^ in hash_ip6() 1009 addr6->s6_addr32[2] ^ addr6->s6_addr32[3]; in hash_ip6() 1019 i = addr6->s6_addr32[0] ^ addr6->s6_addr32[1]; in hash_ip64() 1031 APPLY_MASK(addr6, &mask6); in hash_ip6_slow() 1040 paddr = (uint64_t *)addr6; in hash_ip6_al() 1043 memcpy(addr6, key, mask); in hash_ip6_al() 1076 struct in6_addr addr6; in ta_lookup_chash_slow() local 1121 struct in6_addr addr6; in ta_lookup_chash_aligned() local [all …]
|
| /freebsd-13.1/sys/net/ |
| H A D | if_stf.c | 335 struct in6_addr addr6, mask6; in stf_encapcheck() local 356 if (stf_getsrcifa6(STF2IFP(sc), &addr6, &mask6) != 0) in stf_encapcheck() 364 if (bcmp(GET_V4(&addr6), &ip.ip_dst, sizeof(ip.ip_dst)) != 0) in stf_encapcheck() 374 bcopy(GET_V4(&addr6), &a, sizeof(a)); in stf_encapcheck() 435 struct in6_addr addr6, mask6; in stf_output() local 461 if (stf_getsrcifa6(ifp, &addr6, &mask6) != 0) { in stf_output() 514 bcopy(GET_V4(&addr6), &ip->ip_src, sizeof(ip->ip_src)); in stf_output()
|
| /freebsd-13.1/contrib/ntp/include/ |
| H A D | ntp_request.h | 120 struct in6_addr addr6; member 344 struct in6_addr addr6; /* v6 address of peer */ member 661 struct in6_addr addr6; /* match address (v6) */ member 678 struct in6_addr addr6; /* match address (v6) */ member 699 struct in6_addr addr6; /* host address V6 style */ member 718 struct in6_addr addr6; /* host v6 address */ member 733 struct in6_addr addr6; /* host address (v6)*/ member
|
| /freebsd-13.1/contrib/tcpdump/ |
| H A D | print-dhcp6.c | 814 struct in6_addr addr6; in dhcp6_print() local 818 memcpy(&addr6, dh6relay->dh6relay_linkaddr, sizeof (addr6)); in dhcp6_print() 819 ND_PRINT((ndo, "linkaddr=%s", ip6addr_string(ndo, &addr6))); in dhcp6_print() 821 memcpy(&addr6, dh6relay->dh6relay_peeraddr, sizeof (addr6)); in dhcp6_print() 822 ND_PRINT((ndo, " peeraddr=%s", ip6addr_string(ndo, &addr6))); in dhcp6_print()
|
| H A D | addrtoname.c | 113 struct sockaddr_in6 addr6; in win32_gethostbyaddr() local 121 memset(&addr6, 0, sizeof(addr6)); in win32_gethostbyaddr() 122 addr6.sin6_family = AF_INET6; in win32_gethostbyaddr() 123 memcpy(&addr6.sin6_addr, addr, len); in win32_gethostbyaddr() 124 if (getnameinfo((struct sockaddr *)&addr6, sizeof(addr6), in win32_gethostbyaddr()
|
| /freebsd-13.1/contrib/ntp/ntpdc/ |
| H A D | layout.std | 42 offsetof(addr6) = 16 269 offsetof(addr6) = 24 281 offsetof(addr6) = 28 297 offsetof(addr6) = 40 311 offsetof(addr6) = 32 322 offsetof(addr6) = 24
|
| /freebsd-13.1/libexec/tftpd/tests/ |
| H A D | functional.c | 297 struct sockaddr_in6 addr6; in setup() local 311 len = sizeof(addr6); in setup() 312 bzero(&addr6, len); in setup() 313 addr6.sin6_len = len; in setup() 314 addr6.sin6_family = PF_INET6; in setup() 315 addr6.sin6_port = htons(port); in setup() 316 server_addr = (struct sockaddr*)&addr6; in setup()
|
| /freebsd-13.1/sys/tests/fib_lookup/ |
| H A D | fib_lookup.c | 102 struct in6_addr addr6; in add_addr() local 104 if (inet_pton(AF_INET6, addr_str, &addr6) != 1) in add_addr() 114 paddr[size_old] = addr6; in add_addr() 118 inet_ntop(AF_INET6, &addr6, addr_str, sizeof(addr_str)); in add_addr() 618 ipv6_writemask(struct in6_addr *addr6, uint8_t mask) in ipv6_writemask() argument 622 for (cp = (uint32_t *)addr6; mask >= 32; mask -= 32) in ipv6_writemask()
|
| /freebsd-13.1/lib/libc/net/ |
| H A D | gethostnamadr.c | 590 const struct in6_addr *addr6; in gethostbyaddr_r() local 619 addr6 = (const struct in6_addr *)addr; in gethostbyaddr_r() 620 if (IN6_IS_ADDR_LINKLOCAL(addr6)) { in gethostbyaddr_r() 625 if (IN6_IS_ADDR_V4MAPPED(addr6) || in gethostbyaddr_r() 626 IN6_IS_ADDR_V4COMPAT(addr6)) { in gethostbyaddr_r()
|
| /freebsd-13.1/usr.sbin/ntp/ntpdc/ |
| H A D | nl.c | 85 (int) offsetof(struct info_peer_list, addr6)); 535 (int) offsetof(struct info_restrict, addr6)); 553 (int) offsetof(struct conf_restrict, addr6)); 585 (int) offsetof(struct info_monitor_1, addr6)); 613 (int) offsetof(struct info_monitor, addr6)); 635 (int) offsetof(struct old_info_monitor, addr6));
|
| /freebsd-13.1/contrib/wpa/src/radius/ |
| H A D | radius_server.c | 106 struct in6_addr addr6; member 340 struct in6_addr *addr6; in radius_server_get_client() local 343 addr6 = (struct in6_addr *) addr; in radius_server_get_client() 345 if ((addr6->s6_addr[i] & in radius_server_get_client() 347 (client->addr6.s6_addr[i] & in radius_server_get_client() 2030 struct in6_addr addr6; in radius_server_read_clients() local 2103 os_memset(addr6.s6_addr, 0, 10); in radius_server_read_clients() 2104 addr6.s6_addr[10] = 0xff; in radius_server_read_clients() 2105 addr6.s6_addr[11] = 0xff; in radius_server_read_clients() 2143 os_memcpy(entry->addr6.s6_addr, addr6.s6_addr, 16); in radius_server_read_clients() [all …]
|
| /freebsd-13.1/contrib/hyperv/tools/ |
| H A D | hv_kvp_daemon.c | 774 struct sockaddr_in6 *addr6; in kvp_process_ip_address() local 784 addr6 = (struct sockaddr_in6 *)addrp; in kvp_process_ip_address() 785 str = inet_ntop(family, &addr6->sin6_addr.s6_addr, tmp, 50); in kvp_process_ip_address() 826 struct sockaddr_in6 *addr6; in kvp_get_ip_info() local 905 addr6 = (struct sockaddr_in6 *)(uintptr_t) in kvp_get_ip_info() 907 w = (unsigned int *)(uintptr_t)addr6->sin6_addr.s6_addr; in kvp_get_ip_info()
|
| /freebsd-13.1/sys/netinet/ |
| H A D | ip_fw.h | 573 struct in6_addr addr6; member 791 struct in6_addr addr6; /* IPv6 address */ member 900 struct in6_addr addr6; /* IPv6 address */ member
|
| /freebsd-13.1/usr.sbin/jail/ |
| H A D | config.c | 485 struct in6_addr addr6; in check_intparams() local 585 memcpy(&addr6, in check_intparams() 588 sin6_addr, sizeof(addr6)); in check_intparams() 590 &addr6, avalue6, in check_intparams()
|
| /freebsd-13.1/sbin/ipfw/ |
| H A D | ipv6.c | 92 const struct in6_addr *a = &(cmd->addr6); in print_ip6() 334 struct in6_addr *d = &(cmd->addr6); in fill_ip6()
|
| /freebsd-13.1/usr.sbin/rrenumd/ |
| H A D | parser.y | 84 struct in6_addr addr6; member 105 %token <addr6> IPV6ADDR
|