Lines Matching refs:sockaddr

139 static int		get_salen __P((const struct sockaddr *));
140 static struct sockaddr * get_nsaddr __P((res_state, size_t));
146 const struct sockaddr *, int);
148 static int sock_eq(struct sockaddr *, struct sockaddr *);
150 static int connect_with_timeout(int sock, const struct sockaddr *nsap,
156 struct sockaddr sa;
223 res_ourserver_p(const res_state statp, const struct sockaddr *sa) { in res_ourserver_p()
403 !sock_eq((struct sockaddr *)(void *)&statp->nsaddr_list[ns], in res_nsend()
404 (struct sockaddr *)(void *)&EXT(statp).ext->nsaddrs[ns])) { in res_nsend()
413 (struct sockaddr *)(void *)&peer, &peerlen) < 0) { in res_nsend()
417 if (!sock_eq((struct sockaddr *)(void *)&peer, in res_nsend()
490 struct sockaddr *nsap; in res_nsend()
684 const struct sockaddr *sa; in get_salen()
704 static struct sockaddr *
716 return (struct sockaddr *)(void *)&EXT(statp).ext->nsaddrs[n];
723 return (struct sockaddr *)(void *)&statp->nsaddr_list[n];
765 struct sockaddr *nsap; in send_vc()
793 (struct sockaddr *)(void *)&peer, &size) < 0 || in send_vc()
794 !sock_eq((struct sockaddr *)(void *)&peer, nsap) || in send_vc()
983 connect_with_timeout(int sock, const struct sockaddr *nsap, socklen_t salen, in connect_with_timeout()
1082 const struct sockaddr *nsap; in send_dg()
1185 (struct sockaddr *)(void *)&from, &fromlen); in send_dg()
1216 !res_ourserver_p(statp, (struct sockaddr *)(void *)&from)) { in send_dg()
1296 const struct sockaddr *address, int alen) in Aerror()
1327 sock_eq(struct sockaddr *a, struct sockaddr *b) { in sock_eq()