Lines Matching defs:ip1
215 struct ip_addr ip1, struct ip_addr ip2,
222 if (ip1.family != ip2.family) {
224 net_ip2addr(&ip1), net_ip2addr(&ip2));
227 if (net_ip_cmp(&ip1, &ip2) > 0) {
229 net_ip2addr(&ip1), net_ip2addr(&ip2));
232 if (IPADDR_IS_V4(&ip1)) {
233 ip1_arr = &ip1.u.ip4.s_addr;
238 ip1_arr = (void *)&ip1.u.ip6;
248 net_ip2addr(&ip1), net_ip2addr(&ip2));
258 net_ip2addr(&ip1), net_ip2addr(&ip2));
266 (void)mail_host_add_ip(list, &ip1, tag_name);
279 struct ip_addr ip1, ip2;
294 /* see if this is ip1-ip2 range */
297 if (net_addr2ip(host1, &ip1) == 0 &&
299 if (mail_hosts_add_range(list, ip1, ip2,