Lines Matching refs:saddr
17 struct sockaddr_in saddr; in ZTEST_USER() local
22 memset(&saddr, 0, sizeof(saddr)); in ZTEST_USER()
23 saddr.sin_family = AF_INET; in ZTEST_USER()
25 ret = zsock_getnameinfo((struct sockaddr *)&saddr, sizeof(saddr), in ZTEST_USER()
33 saddr.sin_port = htons(1234); in ZTEST_USER()
34 saddr.sin_addr.s_addr = htonl(0x7f000001); in ZTEST_USER()
36 ret = zsock_getnameinfo((struct sockaddr *)&saddr, sizeof(saddr), in ZTEST_USER()
47 struct sockaddr_in6 saddr; in ZTEST_USER() local
52 memset(&saddr, 0, sizeof(saddr)); in ZTEST_USER()
53 saddr.sin6_family = AF_INET6; in ZTEST_USER()
55 ret = zsock_getnameinfo((struct sockaddr *)&saddr, sizeof(saddr), in ZTEST_USER()
63 saddr.sin6_port = htons(4321); in ZTEST_USER()
64 saddr.sin6_addr.s6_addr[0] = 0xff; in ZTEST_USER()
65 saddr.sin6_addr.s6_addr[1] = 0x55; in ZTEST_USER()
66 saddr.sin6_addr.s6_addr[15] = 0x11; in ZTEST_USER()
68 ret = zsock_getnameinfo((struct sockaddr *)&saddr, sizeof(saddr), in ZTEST_USER()