Lines Matching refs:src_host
6705 check_binat_redirspec(struct node_host *src_host, struct pfctl_rule *r, in check_binat_redirspec() argument
6717 if (src_host->next) { in check_binat_redirspec()
6728 if (disallow_table(src_host, "invalid use of table " in check_binat_redirspec()
6730 disallow_alias(src_host, "invalid use of interface " in check_binat_redirspec()
6845 LOOP_THROUGH(struct node_host, src_host, src_hosts, in expand_rule()
6861 if ((r->af && src_host->af && r->af != src_host->af) || in expand_rule()
6863 (src_host->af && dst_host->af && in expand_rule()
6864 src_host->af != dst_host->af) || in expand_rule()
6865 (src_host->ifindex && dst_host->ifindex && in expand_rule()
6866 src_host->ifindex != dst_host->ifindex) || in expand_rule()
6867 (src_host->ifindex && *interface->ifname && in expand_rule()
6868 src_host->ifindex != ifa_nametoindex(interface->ifname)) || in expand_rule()
6872 if (!r->af && src_host->af) in expand_rule()
6873 r->af = src_host->af; in expand_rule()
6880 else if (ifa_indextoname(src_host->ifindex, ifname)) in expand_rule()
6896 if (src_host->addr.type == PF_ADDR_DYNIFTL) { in expand_rule()
6897 osrch = src_host; in expand_rule()
6898 if ((src_host = gen_dynnode(src_host, r->af)) == NULL) in expand_rule()
6907 error += check_netmask(src_host, r->af); in expand_rule()
6912 r->src.addr = src_host->addr; in expand_rule()
6913 r->src.neg = src_host->not; in expand_rule()
6984 error += check_binat_redirspec(src_host, r, af); in expand_rule()
7010 if (osrch && src_host->addr.type == PF_ADDR_DYNIFTL) { in expand_rule()
7011 free(src_host); in expand_rule()
7012 src_host = osrch; in expand_rule()