Searched refs:sun_len (Results 1 - 25 of 54) sorted by relevance

123

/freebsd-12-stable/sys/sys/
H A Dun.h50 unsigned char sun_len; /* sockaddr len including null */ member in struct:sockaddr_un
/freebsd-12-stable/usr.bin/netstat/
H A Dunix.c108 u_char sun_len; local
163 KREAD(unp->unp_addr, &sun_len, sizeof(sun_len));
164 KREAD(unp->unp_addr, &xu.xu_addr, sun_len);
169 KREAD(unp_conn.unp_addr, &sun_len,
170 sizeof(sun_len));
171 KREAD(unp_conn.unp_addr, &xu.xu_caddr, sun_len);
326 (int)(sa->sun_len - offsetof(struct sockaddr_un, sun_path)),
/freebsd-12-stable/tools/regression/sockets/unix_sendtorace/
H A Dunix_sendtorace.c77 sun.sun_len = sizeof(sun);
106 sun.sun_len = sizeof(sun);
153 sun.sun_len = sizeof(sun);
182 sun.sun_len = sizeof(sun);
/freebsd-12-stable/contrib/netbsd-tests/net/net/
H A Dt_unix.c86 printf("%s: client len %d\n", msg, addr->sun_len);
125 if (sun.sun_len != 2)
126 FAIL("sun->sun_len %d != 2", sun.sun_len);
167 sun->sun_len = sl;
229 if (sock_addr->sun_len != sl)
230 FAIL("sock_addr.sun_len %d != %zu", sock_addr->sun_len,
283 "unix domain socket pathlen (253): 255 - sizeof(sun_len) - "
/freebsd-12-stable/usr.sbin/apmd/contrib/
H A Dpccardq.c87 pccardq.sun_len = offsetof(struct sockaddr_un, sun_path) + strlen(pccardq.sun_path);
88 if (bind(so, (struct sockaddr *) &pccardq, pccardq.sun_len) < 0) {
102 pccardd.sun_len = offsetof(struct sockaddr_un, sun_path) + pccardd_len;
105 if (connect(so, (struct sockaddr *) &pccardd, pccardd.sun_len) < 0) {
/freebsd-12-stable/tools/regression/sockets/unix_bindconnect/
H A Dunix_bindconnect.c105 sun.sun_len = sizeof(sun);
216 sun.sun_len = sizeof(sun);
/freebsd-12-stable/sys/i386/ibcs2/
H A Dibcs2_other.c110 sun.sun_len = sizeof(struct sockaddr_un) - sizeof(sun.sun_path) +
/freebsd-12-stable/tools/regression/sockets/reconnect/
H A Dreconnect.c59 ifsun->sun_len = strlen(path);
/freebsd-12-stable/lib/libc/rpc/
H A Drpc_soc.c434 if ((raddr->sun_len == 0) ||
444 len = raddr->sun_len = SUN_LEN(raddr);
455 svcaddr->len = raddr->sun_len;
498 sun.sun_len = SUN_LEN(&sun);
H A Drpc_generic.c641 if (asprintf(&ret, "%.*s", (int)(sun->sun_len -
740 ret->len = ret->maxlen = sun->sun_len = SUN_LEN(sun);
/freebsd-12-stable/tools/regression/netinet/udpzerobyte/
H A Dudpzerobyte.c136 sun.sun_len = sizeof(sun);
/freebsd-12-stable/tests/sys/fs/fusefs/
H A Dfifo.cc127 sa.sun_len = sizeof(FULLPATH);
195 sa.sun_len = sizeof(FULLPATH);
H A Dmknod.cc220 sa.sun_len = sizeof(FULLPATH);
/freebsd-12-stable/usr.sbin/rtadvd/
H A Dcontrol.c233 sun.sun_len = sizeof(sun);
235 (socklen_t *)&sun.sun_len)) == -1) {
301 sun.sun_len = sizeof(sun);
/freebsd-12-stable/contrib/llvm-project/lldb/source/Host/posix/
H A DDomainSocket.cpp54 saddr_un->sun_len = saddr_un_len;
/freebsd-12-stable/contrib/netbsd-tests/lib/libutil/
H A Dt_sockaddr_snprintf.c113 sun.sun_len = sizeof(sun);
/freebsd-12-stable/tests/sys/kern/
H A Dunix_seqpacket_test.c89 sun.sun_len = sizeof(sun);
448 sun.sun_len = sizeof(sun);
469 sun.sun_len = sizeof(sun);
492 sun.sun_len = sizeof(sun);
773 sun.sun_len = sizeof(sun);
814 sun.sun_len = sizeof(sun);
/freebsd-12-stable/usr.sbin/ppp/
H A Dserver.c257 ifsun.sun_len = strlen(name);
258 if (ifsun.sun_len > sizeof ifsun.sun_path - 1) {
/freebsd-12-stable/sys/kgssapi/
H A Dgss_impl.c109 sun.sun_len = SUN_LEN(&sun);
/freebsd-12-stable/lib/libsdp/
H A Dsession.c127 sa.sun_len = sizeof(sa);
/freebsd-12-stable/contrib/bsnmp/snmpd/
H A Dtrans_lsock.c311 sa.sun_len = SUN_LEN(&sa);
365 sa.sun_len = SUN_LEN(&sa);
/freebsd-12-stable/sys/rpc/
H A Drpc_generic.c345 if (sbuf_printf(&sb, "%.*s", (int)(sun->sun_len -
443 ret->len = ret->maxlen = sun->sun_len = SUN_LEN(sun);
/freebsd-12-stable/tools/regression/sockets/unix_cmsg/
H A Duc_common.c150 uc_cfg.serv_addr_sun.sun_len) < 0) {
211 uc_cfg.serv_addr_sun.sun_len) < 0) {
/freebsd-12-stable/tools/regression/sockets/unix_gc/
H A Dunix_gc.c538 sun.sun_len = sizeof(sun);
581 sun.sun_len = sizeof(sun);
/freebsd-12-stable/usr.sbin/bhyve/
H A Dpci_virtio_console.c313 sun.sun_len = sizeof(struct sockaddr_un);
318 if (bindat(fd, s, (struct sockaddr *)&sun, sun.sun_len) < 0) {

Completed in 289 milliseconds

123