• Home
  • Raw
  • Download

Lines Matching refs:addr1

83 cmpsaddrwop(addr1, addr2)  in cmpsaddrwop()  argument
84 const struct sockaddr *addr1; in cmpsaddrwop()
89 if (addr1 == 0 && addr2 == 0)
91 if (addr1 == 0 || addr2 == 0)
95 if (addr1->sa_family != addr2->sa_family)
98 if (addr1->sa_len != addr2->sa_len
99 || addr1->sa_family != addr2->sa_family)
104 switch (addr1->sa_family) {
106 sa1 = (caddr_t)&((struct sockaddr_in *)addr1)->sin_addr;
113 sa1 = (caddr_t)&((struct sockaddr_in6 *)addr1)->sin6_addr;
117 if (((struct sockaddr_in6 *)addr1)->sin6_scope_id !=
136 cmpsaddrwild(addr1, addr2) in cmpsaddrwild() argument
137 const struct sockaddr *addr1; in cmpsaddrwild()
143 if (addr1 == 0 && addr2 == 0)
145 if (addr1 == 0 || addr2 == 0)
149 if (addr1->sa_family != addr2->sa_family)
152 if (addr1->sa_len != addr2->sa_len
153 || addr1->sa_family != addr2->sa_family)
158 switch (addr1->sa_family) {
160 sa1 = (caddr_t)&((struct sockaddr_in *)addr1)->sin_addr;
162 port1 = ((struct sockaddr_in *)addr1)->sin_port;
173 sa1 = (caddr_t)&((struct sockaddr_in6 *)addr1)->sin6_addr;
175 port1 = ((struct sockaddr_in6 *)addr1)->sin6_port;
183 if (((struct sockaddr_in6 *)addr1)->sin6_scope_id !=
201 cmpsaddrstrict(addr1, addr2) in cmpsaddrstrict() argument
202 const struct sockaddr *addr1; in cmpsaddrstrict()
208 if (addr1 == 0 && addr2 == 0)
210 if (addr1 == 0 || addr2 == 0)
214 if (addr1->sa_family != addr2->sa_family)
217 if (addr1->sa_len != addr2->sa_len
218 || addr1->sa_family != addr2->sa_family)
223 switch (addr1->sa_family) {
225 sa1 = (caddr_t)&((struct sockaddr_in *)addr1)->sin_addr;
227 port1 = ((struct sockaddr_in *)addr1)->sin_port;
236 sa1 = (caddr_t)&((struct sockaddr_in6 *)addr1)->sin6_addr;
238 port1 = ((struct sockaddr_in6 *)addr1)->sin6_port;
244 if (((struct sockaddr_in6 *)addr1)->sin6_scope_id !=