/freebsd-13-stable/contrib/bsnmp/lib/ |
H A D | support.h | 90 ( (!(sa) || ((struct sockaddr *)(sa))->sa_len == 0) ? \ 92 1 + ( (((struct sockaddr *)(sa))->sa_len - 1) | (sizeof(long) - 1) ) )
|
/freebsd-13-stable/contrib/bearssl/samples/ |
H A D | server_basic.c | 116 size_t sa_len; local 125 sa_len = sizeof sa4; 133 sa_len = sizeof sa6; 140 sa_len = p->ai_addrlen; 158 if (bind(fd, sa, sa_len) < 0) { 189 socklen_t sa_len; local 193 sa_len = sizeof sa; 194 fd = accept(server_fd, &sa, &sa_len);
|
/freebsd-13-stable/tools/tools/net80211/wlanwatch/ |
H A D | wlanwatch.c | 162 if (sa->sa_len == 0) 173 if (in.s_addr == INADDR_ANY || sa->sa_len < 4) 203 memcpy(&sin6, sa, sa->sa_len); 207 if (sa->sa_len == sizeof(struct sockaddr_in6) && 232 u_short *slim = s + ((sa->sa_len + 1) >> 1); 250 * through a routing socket. Basically we round up sa_len to 253 * The case sa_len == 0 should only apply to empty structures. 256 ( (!(sa) || ((struct sockaddr *)(sa))->sa_len == 0) ? \ 258 1 + ( (((struct sockaddr *)(sa))->sa_len - 1) | (sizeof(long) - 1) ) )
|
/freebsd-13-stable/lib/libc/net/ |
H A D | sctp_sys_calls.c | 129 if (at->sa_len != sizeof(struct sockaddr_in)) { 139 if (at->sa_len != sizeof(struct sockaddr_in6)) { 159 at = (struct sockaddr *)((caddr_t)at + at->sa_len); 200 if (sa->sa_len != sizeof(struct sockaddr_in)) { 221 if (sa->sa_len != sizeof(struct sockaddr_in6)) { 246 sa = (struct sockaddr *)((caddr_t)sa + sa->sa_len); 266 if (setsockopt(sd, IPPROTO_SCTP, flags, sa, sa->sa_len) != 0) { 269 sa = (struct sockaddr *)((caddr_t)sa + sa->sa_len); 427 while (((caddr_t)sa < lim) && (sa->sa_len > 0)) { 428 sa = (struct sockaddr *)((caddr_t)sa + sa->sa_len); [all...] |
H A D | getifmaddrs.c | 48 #define SA_RLEN(sa) ((sa)->sa_len ? (((sa)->sa_len + SALIGN) & ~SALIGN) : \
|
/freebsd-13-stable/sys/net/ |
H A D | route.h | 361 * through a routing socket. Basically we round up sa_len to 363 * The case sa_len == 0 should only apply to empty structures. 366 ( (((struct sockaddr *)(sa))->sa_len == 0) ? \ 368 1 + ( (((struct sockaddr *)(sa))->sa_len - 1) | (sizeof(long) - 1) ) ) 371 (((const struct sockaddr *)(a))->sa_len == ((const struct sockaddr *)(b))->sa_len) && \ 372 (bcmp((a), (b), ((const struct sockaddr *)(b))->sa_len) == 0))
|
H A D | route.c | 325 * are zeroed sockaddr-like structures with sa_len field initialized 339 int sa_len; local 345 sa_len = src->sa_len; 347 if (src->sa_len > dst->sa_len) 349 memcpy(dst, src, src->sa_len); 358 * Radix stores different value in sa_len, 362 if (sa_len > dst->sa_len) [all...] |
H A D | if_ipsec.c | 587 src->sa_len != dst->sa_len) 590 /* validate sa_len */ 594 if (src->sa_len != sizeof(struct sockaddr_in)) 600 if (src->sa_len != sizeof(struct sockaddr_in6)) 868 bcopy(src, &isr->saidx.dst, src->sa_len); 869 bcopy(dst, &isr->saidx.src, dst->sa_len); 872 bcopy(src, &isr->saidx.src, src->sa_len); 873 bcopy(dst, &isr->saidx.dst, dst->sa_len); 880 sp[i]->spidx.src.sa.sa_len [all...] |
/freebsd-13-stable/sys/rpc/ |
H A D | replay.c | 127 bcopy(addr, &rce->rce_addr, addr->sa_len); 189 && rce->rce_addr.ss_len == addr->sa_len 190 && bcmp(&rce->rce_addr, addr, addr->sa_len) == 0) { 246 && rce->rce_addr.ss_len == addr->sa_len 247 && bcmp(&rce->rce_addr, addr, addr->sa_len) == 0) {
|
/freebsd-13-stable/lib/libipsec/ |
H A D | policy_parse.y | 250 newaddr = malloc(res->ai_addr->sa_len); 256 memcpy(newaddr, res->ai_addr, res->ai_addr->sa_len); 329 + (src ? src->sa_len : 0) 330 + (dst ? dst->sa_len : 0); 364 memcpy(&pbuf[offset], addr, addr->sa_len); 366 offset += addr->sa_len;
|
H A D | ipsec_dump_policy.c | 232 sa2 = (struct sockaddr *)(p + sa1->sa_len); 233 if (sizeof(*xisr) + sa1->sa_len + sa2->sa_len != 307 if (getnameinfo(sa, sa->sa_len, buf, len, NULL, 0, niflags) != 0)
|
/freebsd-13-stable/tests/sys/net/routing/ |
H A D | rtsock_print.h | 207 printf(" af=inet len=%d addr=%s", sa->sa_len, abuf); 213 printf(" af=inet6 len=%d addr=%s", sa->sa_len, abuf); 246 printf(" af=%d len=%d", sa->sa_family, sa->sa_len); 250 sa_print_hd(hdbuf, sizeof(hdbuf), ((char *)sa), sa->sa_len); 304 ptr += ALIGN(((struct sockaddr *)ptr)->sa_len); 340 ptr += ALIGN(((struct sockaddr *)ptr)->sa_len);
|
H A D | rtsock_common.h | 422 if (a->sa_len != b->sa_len) { 423 snprintf(msg, sz, "len: %d vs %d", a->sa_len, b->sa_len); 506 if (memcmp(a, b, a->sa_len)) { 508 for (i = 0; i < a->sa_len; i++) 753 ptr += ALIGN(((struct sockaddr *)ptr)->sa_len); 758 memcpy(ptr, sa, sa->sa_len); 770 ptr += ALIGN(((struct sockaddr *)ptr)->sa_len); 786 int sa_len local [all...] |
/freebsd-13-stable/sbin/ifconfig/ |
H A D | af_inet.c | 193 if (getnameinfo(sa, sa->sa_len, src, sizeof(src), 0, 0, NI_NUMERICHOST) != 0) 200 if (getnameinfo(sa, sa->sa_len, dst, sizeof(dst), 0, 0, NI_NUMERICHOST) != 0) 213 memcpy(&addreq.ifra_addr, srcres->ai_addr, srcres->ai_addr->sa_len); 214 memcpy(&addreq.ifra_dstaddr, dstres->ai_addr, dstres->ai_addr->sa_len);
|
H A D | af_link.c | 102 memcpy(&ifr.ifr_addr, ifa->ifa_addr, sizeof(ifa->ifa_addr->sa_len)); 167 sa->sa_len = sdl.sdl_alen;
|
/freebsd-13-stable/libexec/ftpd/ |
H A D | logwtmp.c | 67 addr, addr->sa_len);
|
/freebsd-13-stable/sys/compat/linuxkpi/common/include/linux/ |
H A D | net.h | 67 *sockaddr_len = addr->sa_len;
|
/freebsd-13-stable/usr.bin/talk/ |
H A D | look_up.c | 78 addr.sa_len = sizeof(addr);
|
/freebsd-13-stable/lib/libutil/ |
H A D | realhostname.c | 159 if (sa->sa_len == addrlen && 172 if (!memcmp(sa, addr, sa->sa_len)) {
|
/freebsd-13-stable/sys/net/route/ |
H A D | nhop_ctl.c | 253 if (gw->sa_len > sizeof(struct sockaddr_in6)) { 255 gw->sa_family, gw->sa_len); 258 memcpy(&nh->gw_sa, gw, gw->sa_len); 478 memcpy(&nh->gw_sa, &nh_orig->gw_sa, nh_orig->gw_sa.sa_len); 850 addrs_len += gw_sa->sa_len; 861 addrs_len += src_sa->sa_len; 870 error = SYSCTL_OUT(w, gw_sa, gw_sa->sa_len); 872 error = SYSCTL_OUT(w, src_sa, src_sa->sa_len);
|
/freebsd-13-stable/contrib/llvm-project/lldb/source/Host/common/ |
H A D | TCPSocket.cpp | 234 socklen_t sa_len = address.GetLength(); local 235 if (getsockname(fd, &address.sockaddr(), &sa_len) == 0) 273 socklen_t sa_len = AcceptAddr.GetMaxLength(); 274 sock = AcceptSocket(fd, &AcceptAddr.sockaddr(), &sa_len, inherit,
|
/freebsd-13-stable/libexec/talkd/ |
H A D | talkd.c | 120 ctl_addr.sa_len = sizeof(ctl_addr);
|
/freebsd-13-stable/sys/dev/hyperv/hvsock/ |
H A D | hv_sock.h | 53 unsigned char sa_len; member in struct:sockaddr_hvs
|
/freebsd-13-stable/contrib/netbsd-tests/net/if/ |
H A D | ifconf.c | 109 ifreqs[i].ifr_addr.sa_family, ifreqs[i].ifr_addr.sa_len);
|
/freebsd-13-stable/tests/sys/netinet/ |
H A D | tcp_connect_port_test.c | 186 error = bind(lsock, addr, addr->sa_len); 203 ATF_REQUIRE_MSG(su_srvr.saddr.sa_len == (domain == PF_INET ? 205 "unexpected sa_len size"); 214 error = connect(csock, &su_srvr.saddr, su_srvr.saddr.sa_len);
|