Lines Matching refs:af
57 int status, af = AF_UNSPEC;
66 af = AF_INET6;
71 af = AF_INET;
73 af = AF_INET6;
86 hints.ai_family = af;
95 if (af == AF_INET) ((struct sockaddr_in*)buf)->sin_port = port_num;
101 int s, af = AF_INET, yes = 1;
107 af = ((struct sockaddr *)buf)->sa_family;
110 ((struct sockaddr_in*)buf)->sin_family = af;
112 s = xsocket(af, SOCK_STREAM, 0);
115 xbind(s, (struct sockaddr *)buf, ((af == AF_INET)?