Lines Matching refs:af
70 int status, af = AF_UNSPEC; in get_sockaddr() local
79 af = AF_INET6; in get_sockaddr()
84 af = AF_INET; in get_sockaddr()
86 af = AF_INET6; in get_sockaddr()
99 hints.ai_family = af; in get_sockaddr()
108 if (af == AF_INET) ((struct sockaddr_in*)buf)->sin_port = port_num; in get_sockaddr()
131 int s, af = AF_INET, yes = 1; in listen_socket() local
137 af = ((struct sockaddr *)buf)->sa_family; in listen_socket()
140 ((struct sockaddr_in*)buf)->sin_family = af; in listen_socket()
142 s = xsocket(af, SOCK_STREAM, 0); in listen_socket()
146 if (bind(s, (struct sockaddr *)buf, ((af == AF_INET)? in listen_socket()