Lines Matching refs:src_host
4976 struct node_host *src_host, struct node_port *src_port, in expand_label() argument
4981 expand_label_addr("$srcaddr", label, len, af, src_host); in expand_label()
5275 LOOP_THROUGH(struct node_host, src_host, src_hosts, in expand_rule()
5285 if ((r->af && src_host->af && r->af != src_host->af) || in expand_rule()
5287 (src_host->af && dst_host->af && in expand_rule()
5288 src_host->af != dst_host->af) || in expand_rule()
5289 (src_host->ifindex && dst_host->ifindex && in expand_rule()
5290 src_host->ifindex != dst_host->ifindex) || in expand_rule()
5291 (src_host->ifindex && *interface->ifname && in expand_rule()
5292 src_host->ifindex != if_nametoindex(interface->ifname)) || in expand_rule()
5296 if (!r->af && src_host->af) in expand_rule()
5297 r->af = src_host->af; in expand_rule()
5304 else if (if_indextoname(src_host->ifindex, ifname)) in expand_rule()
5321 src_host, src_port, dst_host, dst_port, proto->proto); in expand_rule()
5323 src_host, src_port, dst_host, dst_port, proto->proto); in expand_rule()
5325 r->af, src_host, src_port, dst_host, dst_port, in expand_rule()
5328 error += check_netmask(src_host, r->af); in expand_rule()
5333 r->src.addr = src_host->addr; in expand_rule()
5334 r->src.neg = src_host->not; in expand_rule()