/freebsd/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() 107 ret = rte_lpm6_lookup(lpm6, (const uint8_t *)addr6, &nhidx); in lookup_ptr() 120 return (lookup_ptr_ll(lpm6, addr6, scopeid)); in lookup_ptr() 161 const struct in6_addr addr6, int plen, uint32_t scopeid) in handle_ll_change() argument 168 pack_parent_rule(struct dpdk_lpm6_data *dd, const struct in6_addr *addr6, int plen, in pack_parent_rule() argument 177 rt = rt_get_inet6_parent(dd->fibnum, addr6, plen); in pack_parent_rule() 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() [all …]
|
/freebsd/sys/net/ |
H A D | if_stf.c | 375 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() 412 if (IN6_IS_ADDR_6TO4(&addr6)) { in stf_encapcheck() 450 struct in6_addr addr6, mask6; in stf_getsrcifa6() local 465 addr6 = *IFA_IN6(ia); in stf_getsrcifa6() 470 if (stf_getin4addr(sc, &sin4, addr6, mask6) == NULL) in stf_getsrcifa6() 481 *addr = addr6; 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 …]
|
/freebsd/tests/sys/net/routing/ |
H A D | rtsock_config.h | 48 struct sockaddr_in6 addr6; member 114 c->addr6.sin6_len = sizeof(struct sockaddr_in6); in config_setup() 115 c->addr6.sin6_family = AF_INET6; in config_setup() 120 memcpy(&c->addr6.sin6_addr, &c->net6.sin6_addr, sizeof(struct in6_addr)); in config_setup() 122 c->addr6.sin6_addr._s6_addr32[3] = htonl(ntohl(c->net6.sin6_addr._s6_addr32[3]) + 1); in config_setup() 125 inet_ntop(AF_INET6, &c->addr6.sin6_addr, c->addr6_str, INET6_ADDRSTRLEN); in config_setup()
|
/freebsd/sys/netinet6/ |
H A D | in6_fib_algo.c | 102 struct sa_in6 addr6 = { in lradix6_lookup() local 104 .sin6_addr = *key.addr6, in lradix6_lookup() 106 if (IN6_IS_SCOPE_LINKLOCAL(key.addr6)) in lradix6_lookup() 107 addr6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff); in lradix6_lookup() 108 ent = (struct radix6_addr_entry *)(rn_match(&addr6, &rnh->rh)); in lradix6_lookup() 259 .sin6_addr = *key.addr6, in radix6_lookup() 261 if (IN6_IS_SCOPE_LINKLOCAL(key.addr6)) in radix6_lookup() 278 const struct flm_lookup_key key = { .addr6 = dst6 }; in fib6_radix_lookup_nh()
|
H A D | in6_fib.c | 125 struct flm_lookup_key key = {.addr6 = dst6 }; in fib6_lookup() 272 struct flm_lookup_key key = {.addr6 = dst6 }; in fib6_check_urpf()
|
H A D | udp6_usrreq.c | 661 struct sockaddr *addr6, struct mbuf *control, struct thread *td) in udp6_send() argument 676 if (addr6) { in udp6_send() 678 if (addr6->sa_family != AF_INET6) in udp6_send() 680 else if (addr6->sa_len != sizeof(struct sockaddr_in6)) in udp6_send() 689 sin6 = (struct sockaddr_in6 *)addr6; in udp6_send()
|
H A D | in6.c | 2212 in6_lltable_new(const struct in6_addr *addr6, u_int flags) in in6_lltable_new() argument 2220 lle->base.r_l3addr.addr6 = *addr6; in in6_lltable_new() 2238 lle_addr = &lle->r_l3addr.addr6; in in6_lltable_match_prefix() 2328 return (in6_lltable_hash_dst(&lle->r_l3addr.addr6, hsize)); in in6_lltable_hash() 2340 sin6->sin6_addr = lle->r_l3addr.addr6; in in6_lltable_fill_sa_entry() 2355 if (IN6_ARE_ADDR_EQUAL(&lle->r_l3addr.addr6, dst)) in in6_lltable_find_dst() 2370 in6_leave_proxy_ndp_mc(llt->llt_ifp, &lle->r_l3addr.addr6); in in6_lltable_delete_entry() 2551 in6_join_proxy_ndp_mc(llt->llt_ifp, &lle->r_l3addr.addr6); in in6_lltable_post_resolved()
|
/freebsd/sys/net/route/ |
H A D | route_helpers.c | 554 struct in6_addr addr6; in get_inet6_parent_prefix() local 563 rt_get_inet6_prefix_plen(rt, &addr6, &parent_plen, &scopeid); in get_inet6_parent_prefix() 577 rt_get_inet6_prefix_plen(rt, &addr6, &parent_plen, &scopeid); in get_inet6_parent_prefix() 586 ip6_writemask(struct in6_addr *addr6, uint8_t mask) in ip6_writemask() argument 590 for (cp = (uint32_t *)addr6; mask >= 32; mask -= 32) in ip6_writemask() 603 struct in6_addr addr6 = *paddr; in rt_get_inet6_parent() local 610 IN6_MASK_ADDR(&addr6, &mask6); in rt_get_inet6_parent() 611 if (IN6_ARE_ADDR_EQUAL(&addr6, &lookup_addr)) { in rt_get_inet6_parent() 615 lookup_addr = addr6; in rt_get_inet6_parent() 653 struct in6_addr addr6; in rt_print_buf() local [all …]
|
H A D | fib_algo.h | 48 const struct in6_addr *addr6; member 56 struct in6_addr addr6; member
|
/freebsd/contrib/ntp/libntp/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/sys/netpfil/ipfw/ |
H A D | ip_fw_table_algo.c | 343 struct sa_in6 addr6; member 538 memcpy(&tent->k.addr6, &xn->addr6.sin6_addr, in ta_dump_addr_radix_tentry() 566 memcpy(&sa6.sin6_addr, &tent->k.addr6, sizeof(struct in6_addr)); in ta_find_addr_radix_tentry() 593 static inline void ipv6_writemask(struct in6_addr *addr6, uint8_t mask); 596 ipv6_writemask(struct in6_addr *addr6, uint8_t mask) in ipv6_writemask() argument 600 for (cp = (uint32_t *)addr6; mask >= 32; mask -= 32) in ipv6_writemask() 616 struct sa_in6 *addr6, *mask6; in tei_to_sockaddr_ent_addr() local 642 addr6 = (struct sa_in6 *)sa; in tei_to_sockaddr_ent_addr() 645 KEY_LEN(*addr6) = KEY_LEN_INET6; in tei_to_sockaddr_ent_addr() 647 addr6->sin6_family = AF_INET6; in tei_to_sockaddr_ent_addr() [all …]
|
/freebsd/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/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/contrib/tcpdump/ |
H A D | addrtoname.c | 149 struct sockaddr_in6 addr6; in win32_gethostbyaddr() local 157 memset(&addr6, 0, sizeof(addr6)); in win32_gethostbyaddr() 158 addr6.sin6_family = AF_INET6; in win32_gethostbyaddr() 159 memcpy(&addr6.sin6_addr, addr, len); in win32_gethostbyaddr() 160 if (getnameinfo((struct sockaddr *)&addr6, sizeof(addr6), in win32_gethostbyaddr()
|
/freebsd/libexec/tftpd/tests/ |
H A D | functional.c | 332 struct sockaddr_in6 addr6; in setup() local 349 len = sizeof(addr6); in setup() 350 bzero(&addr6, len); in setup() 351 addr6.sin6_len = len; in setup() 352 addr6.sin6_family = PF_INET6; in setup() 353 addr6.sin6_port = htons(port); in setup() 354 server_addr = (struct sockaddr *)&addr6; in setup()
|
/freebsd/sys/tests/fib_lookup/ |
H A D | fib_lookup.c | 101 struct in6_addr addr6; in add_addr() local 103 if (inet_pton(AF_INET6, addr_str, &addr6) != 1) in add_addr() 113 paddr[size_old] = addr6; in add_addr() 117 inet_ntop(AF_INET6, &addr6, addr_str, sizeof(addr_str)); in add_addr() 617 ipv6_writemask(struct in6_addr *addr6, uint8_t mask) in ipv6_writemask() argument 621 for (cp = (uint32_t *)addr6; mask >= 32; mask -= 32) in ipv6_writemask()
|
/freebsd/lib/libc/net/ |
H A D | gethostnamadr.c | 587 const struct in6_addr *addr6; in gethostbyaddr_r() local 616 addr6 = (const struct in6_addr *)addr; in gethostbyaddr_r() 617 if (IN6_IS_ADDR_LINKLOCAL(addr6)) { in gethostbyaddr_r() 622 if (IN6_IS_ADDR_V4MAPPED(addr6) || in gethostbyaddr_r() 623 IN6_IS_ADDR_V4COMPAT(addr6)) { in gethostbyaddr_r()
|
/freebsd/usr.sbin/ntp/ntpdc/ |
H A D | nl.c | 84 (int) offsetof(struct info_peer_list, addr6)); 534 (int) offsetof(struct info_restrict, addr6)); 552 (int) offsetof(struct conf_restrict, addr6)); 584 (int) offsetof(struct info_monitor_1, addr6)); 612 (int) offsetof(struct info_monitor, addr6)); 634 (int) offsetof(struct old_info_monitor, addr6));
|
/freebsd/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() 2045 struct in6_addr addr6; in radius_server_read_clients() local 2110 if (ipv6 && inet_pton(AF_INET6, buf, &addr6) <= 0) { in radius_server_read_clients() 2118 os_memset(addr6.s6_addr, 0, 10); in radius_server_read_clients() 2119 addr6.s6_addr[10] = 0xff; in radius_server_read_clients() 2120 addr6.s6_addr[11] = 0xff; in radius_server_read_clients() [all …]
|
/freebsd/contrib/hyperv/tools/ |
H A D | hv_kvp_daemon.c | 773 struct sockaddr_in6 *addr6; in kvp_process_ip_address() local 783 addr6 = (struct sockaddr_in6 *)addrp; in kvp_process_ip_address() 784 str = inet_ntop(family, &addr6->sin6_addr.s6_addr, tmp, 50); in kvp_process_ip_address() 825 struct sockaddr_in6 *addr6; in kvp_get_ip_info() local 904 addr6 = (struct sockaddr_in6 *)(uintptr_t) in kvp_get_ip_info() 906 w = (unsigned int *)(uintptr_t)addr6->sin6_addr.s6_addr; in kvp_get_ip_info()
|
/freebsd/contrib/unbound/util/ |
H A D | proxy_protocol.h | 117 } addr6; member
|
/freebsd/usr.bin/netstat/ |
H A D | route_netlink.c | 122 ip6_writemask(struct in6_addr *addr6, uint8_t mask) in ip6_writemask() argument 126 for (cp = (uint32_t *)addr6; mask >= 32; mask -= 32) in ip6_writemask()
|
/freebsd/contrib/wireguard-tools/ |
H A D | containers.h | 58 struct sockaddr_in6 addr6; member
|
/freebsd/sys/netinet/ |
H A D | ip_fw.h | 593 struct in6_addr addr6; member 816 struct in6_addr addr6; /* IPv6 address */ member 927 struct in6_addr addr6; /* IPv6 address */ member
|
/freebsd/usr.sbin/jail/ |
H A D | config.c | 538 struct in6_addr addr6; in check_intparams() local 638 memcpy(&addr6, in check_intparams() 641 sin6_addr, sizeof(addr6)); in check_intparams() 643 &addr6, avalue6, in check_intparams()
|