Lines Matching refs:addr2
83 cmpsaddrwop(addr1, addr2)
85 const struct sockaddr *addr2;
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)
107 sa2 = (caddr_t)&((struct sockaddr_in *)addr2)->sin_addr;
114 sa2 = (caddr_t)&((struct sockaddr_in6 *)addr2)->sin6_addr;
118 ((struct sockaddr_in6 *)addr2)->sin6_scope_id)
131 * addr1 is a subject address, addr2 is in a database entry.
136 cmpsaddrwild(addr1, addr2)
138 const struct sockaddr *addr2;
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)
161 sa2 = (caddr_t)&((struct sockaddr_in *)addr2)->sin_addr;
163 port2 = ((struct sockaddr_in *)addr2)->sin_port;
174 sa2 = (caddr_t)&((struct sockaddr_in6 *)addr2)->sin6_addr;
176 port2 = ((struct sockaddr_in6 *)addr2)->sin6_port;
184 ((struct sockaddr_in6 *)addr2)->sin6_scope_id)
201 cmpsaddrstrict(addr1, addr2)
203 const struct sockaddr *addr2;
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)
226 sa2 = (caddr_t)&((struct sockaddr_in *)addr2)->sin_addr;
228 port2 = ((struct sockaddr_in *)addr2)->sin_port;
237 sa2 = (caddr_t)&((struct sockaddr_in6 *)addr2)->sin6_addr;
239 port2 = ((struct sockaddr_in6 *)addr2)->sin6_port;
245 ((struct sockaddr_in6 *)addr2)->sin6_scope_id)