Searched refs:ipsrc (Results 1 – 9 of 9) sorted by relevance
/freebsd/contrib/pf/authpf/ |
H A D | authpf.c | 68 char ipsrc[256]; /* ip as a string */ 120 if (strlcpy(ipsrc, cp, sizeof(ipsrc)) >= sizeof(ipsrc)) { in main() 124 cp = strchr(ipsrc, ' '); in main() 126 syslog(LOG_ERR, "corrupt SSH_CLIENT variable %s", ipsrc); in main() 130 if (inet_pton(AF_INET, ipsrc, &ina) != 1 && in main() 131 inet_pton(AF_INET6, ipsrc, &ina) != 1) { in main() 133 "cannot determine IP from SSH_CLIENT %s", ipsrc); in main() 203 PATH_PIDFILE, user_ip ? ipsrc in main() 69 char ipsrc[256]; /* ip as a string */ global() variable [all...] |
/freebsd/sys/netpfil/pf/ |
H A D | pf_nv.c | 1086 addr = pf_rule_addr_to_nvrule_addr(&krule->ipsrc); in pf_keth_rule_to_nveth_rule() 1181 nvlist_get_nvlist(nvl, "ipsrc"), &krule->ipsrc); in pf_nveth_rule_to_keth_rule() 1185 if (krule->ipsrc.addr.type != PF_ADDR_ADDRMASK && in pf_nveth_rule_to_keth_rule() 1186 krule->ipsrc.addr.type != PF_ADDR_TABLE) in pf_nveth_rule_to_keth_rule()
|
H A D | pf_ioctl.c | 553 if (rule->ipsrc.addr.type == PF_ADDR_TABLE) in pf_free_eth_rule() 554 pfr_detach_table(rule->ipsrc.addr.p.tbl); in pf_free_eth_rule() 860 if (cur->ipsrc.neg != prev->ipsrc.neg || in pf_eth_calc_skip_steps() 861 pf_addr_wrap_neq(&cur->ipsrc.addr, &prev->ipsrc.addr)) in pf_eth_calc_skip_steps() 3167 if (error == 0 && rule->ipsrc.addr.type == PF_ADDR_TABLE) in pfioctl() 3168 error = pf_eth_addr_setup(ruleset, &rule->ipsrc.addr); in pfioctl()
|
H A D | pf.c | 4704 else if (src != NULL && PF_MISMATCHAW(&r->ipsrc.addr, src, af, in pf_test_eth_rule() 4705 r->ipsrc.neg, kif, M_GETFIB(m))) { in pf_test_eth_rule()
|
/freebsd/lib/libpfctl/ |
H A D | libpfctl.h | 99 struct pf_rule_addr ipsrc, ipdst; member
|
H A D | libpfctl.c | 877 &rule->ipsrc); in pfctl_nveth_rule_to_eth_rule() 1048 pfctl_nv_add_rule_addr(nvl, "ipsrc", &r->ipsrc); in pfctl_add_eth_rule()
|
/freebsd/sbin/pfctl/ |
H A D | parse.y | 5995 LOOP_THROUGH(struct node_host, ipsrc, ipsrcs, in expand_eth_rule() 6001 if (!r->proto && ipsrc->af) in expand_eth_rule() 6002 r->proto = pf_af_to_proto(ipsrc->af); in expand_eth_rule() 6009 r->ipsrc.addr = ipsrc->addr; in expand_eth_rule() 6010 r->ipsrc.neg = ipsrc->not; in expand_eth_rule()
|
H A D | pfctl_parser.c | 805 print_fromto(&r->ipsrc, PF_OSFP_ANY, &r->ipdst, in print_eth_rule()
|
/freebsd/sys/net/ |
H A D | pfvar.h | 737 struct pf_rule_addr ipsrc, ipdst; member
|