Lines Matching defs:so
149 * as 2 bytes; BSM defines 4 so pad with 0
161 * could pick this out at compile-time, it would be better, so as to
192 * as 2 bytes; BSM defines 4 so pad with 0
204 * could pick this out at compile-time, it would be better, so as to
439 * as 2 bytes; BSM defines 4 so pad with 0
859 au_to_sock_unix(struct sockaddr_un *so)
869 if (so->sun_len >= offsetof(struct sockaddr_un, sun_path))
870 slen = min(so->sun_len - offsetof(struct sockaddr_un, sun_path),
871 strnlen(so->sun_path, sizeof(so->sun_path)));
873 slen = strnlen(so->sun_path, sizeof(so->sun_path));
880 ADD_U_CHAR(dptr, so->sun_family);
882 ADD_MEM(dptr, so->sun_path, slen);
895 au_to_sock_inet32(struct sockaddr_in *so)
909 ADD_U_INT16(dptr, au_domain_to_bsm(so->sin_family));
910 ADD_MEM(dptr, &so->sin_port, sizeof(uint16_t));
911 ADD_MEM(dptr, &so->sin_addr.s_addr, sizeof(uint32_t));
923 au_to_sock_inet128(struct sockaddr_in6 *so)
932 ADD_U_INT16(dptr, au_domain_to_bsm(so->sin6_family));
934 ADD_U_INT16(dptr, so->sin6_port);
935 ADD_MEM(dptr, &so->sin6_addr, 4 * sizeof(uint32_t));
941 au_to_sock_inet(struct sockaddr_in *so)
944 return (au_to_sock_inet32(so));