Lines Matching refs:sa
260 struct sockaddr_in sa; in parseV4Addr() local
262 int ret = inet_pton(AF_INET, in.c_str(), &(sa.sin_addr)); in parseV4Addr()
273 out.v4Addr = htonl(sa.sin_addr.s_addr); in parseV4Addr()
278 struct sockaddr_in6 sa; in parseV6Addr() local
280 int ret = inet_pton(AF_INET6, in.c_str(), &(sa.sin6_addr)); in parseV6Addr()
296 out.v6Addr[0] = (sa.sin6_addr.s6_addr[0] << 24) | in parseV6Addr()
297 (sa.sin6_addr.s6_addr[1] << 16) | in parseV6Addr()
298 (sa.sin6_addr.s6_addr[2] << 8) | in parseV6Addr()
299 (sa.sin6_addr.s6_addr[3]); in parseV6Addr()
300 out.v6Addr[1] = (sa.sin6_addr.s6_addr[4] << 24) | in parseV6Addr()
301 (sa.sin6_addr.s6_addr[5] << 16) | in parseV6Addr()
302 (sa.sin6_addr.s6_addr[6] << 8) | in parseV6Addr()
303 (sa.sin6_addr.s6_addr[7]); in parseV6Addr()
304 out.v6Addr[2] = (sa.sin6_addr.s6_addr[8] << 24) | in parseV6Addr()
305 (sa.sin6_addr.s6_addr[9] << 16) | in parseV6Addr()
306 (sa.sin6_addr.s6_addr[10] << 8) | in parseV6Addr()
307 (sa.sin6_addr.s6_addr[11]); in parseV6Addr()
308 out.v6Addr[3] = (sa.sin6_addr.s6_addr[12] << 24) | in parseV6Addr()
309 (sa.sin6_addr.s6_addr[13] << 16) | in parseV6Addr()
310 (sa.sin6_addr.s6_addr[14] << 8) | in parseV6Addr()
311 (sa.sin6_addr.s6_addr[15]); in parseV6Addr()