• Home
  • Raw
  • Download

Lines Matching refs:sai

814   struct sockaddr_in sai;  in TEST()  local
815 memset(&sai, 0, sizeof(sai)); in TEST()
816 sai.sin_family = AF_UNIX; in TEST()
817 int res = bind(sock, (struct sockaddr *)&sai, sizeof(sai)); in TEST()
837 struct sockaddr_in sai; in TEST() local
838 memset(&sai, 0, sizeof(sai)); in TEST()
839 sai.sin_family = AF_INET; in TEST()
840 sai.sin_port = 0; in TEST()
841 sai.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in TEST()
842 int res = bind(listen_socket, (struct sockaddr *)&sai, sizeof(sai)); in TEST()
848 socklen_t sz = sizeof(sai); in TEST()
849 res = getsockname(listen_socket, (struct sockaddr *)&sai, &sz); in TEST()
851 ASSERT_EQ(sizeof(sai), sz); in TEST()
857 res = connect(connect_socket, (struct sockaddr *)&sai, sizeof(sai)); in TEST()
861 __msan_poison(&sai, sizeof(sai)); in TEST()
862 int new_sock = accept(listen_socket, (struct sockaddr *)&sai, &sz); in TEST()
864 ASSERT_EQ(sizeof(sai), sz); in TEST()
865 EXPECT_NOT_POISONED(sai); in TEST()
867 __msan_poison(&sai, sizeof(sai)); in TEST()
868 res = getpeername(new_sock, (struct sockaddr *)&sai, &sz); in TEST()
870 ASSERT_EQ(sizeof(sai), sz); in TEST()
871 EXPECT_NOT_POISONED(sai); in TEST()
891 struct sockaddr_in sai; in TEST() local
892 memset(&sai, 0, sizeof(sai)); in TEST()
893 sai.sin_family = AF_INET; in TEST()
894 sai.sin_port = 80; in TEST()
895 sai.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in TEST()
898 int res = getnameinfo((struct sockaddr *)&sai, sizeof(sai), host, in TEST()
950 struct sockaddr_in sai; in TEST() local
951 memset(&sai, 0, sizeof(sai)); in TEST()
952 sai.sin_family = AF_INET; in TEST()
953 sai.sin_port = 0; in TEST()
954 sai.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in TEST()
955 int res = bind(server_socket, (struct sockaddr *)&sai, sizeof(sai)); in TEST()
958 socklen_t sz = sizeof(sai); in TEST()
959 res = getsockname(server_socket, (struct sockaddr *)&sai, &sz); in TEST()
961 ASSERT_EQ(sizeof(sai), sz); in TEST()
987 msg.msg_name = &sai; in TEST()
988 msg.msg_namelen = sizeof(sai); in TEST()