Searched refs:NPF_NO_NETMASK (Results 1 – 13 of 13) sorted by relevance
/netbsd/usr.sbin/npf/npftest/libnpftest/ |
H A D | npf_table_test.c | 82 error = npf_table_insert(t, alen, addr, NPF_NO_NETMASK); in ip4list_insert_lookup() 94 const int nm = NPF_NO_NETMASK; in fill_with_ip4() 122 const int nm = NPF_NO_NETMASK; in verify_ip4() 157 const int nm = NPF_NO_NETMASK; in clear_ip4() 248 error = npf_table_insert(t, alen, addr, NPF_NO_NETMASK); in test_nocopy() 268 const int nm = NPF_NO_NETMASK; in test_ip6() 416 error = npf_table_insert(t, sizeof(struct in6_addr), addr, NPF_NO_NETMASK); in test_ifaddr_table()
|
/netbsd/usr.sbin/npf/npfctl/ |
H A D | npf_cmd.c | 444 addrstr = npfctl_print_addrmask(alen, fmt, &a[0], NPF_NO_NETMASK); in npfctl_conn_print() 448 addrstr = npfctl_print_addrmask(alen, fmt, &a[1], NPF_NO_NETMASK); in npfctl_conn_print() 458 addrstr = npfctl_print_addrmask(alen, fmt, &a[2], NPF_NO_NETMASK); in npfctl_conn_print()
|
H A D | npf_data.c | 182 *mask = NPF_NO_NETMASK; in npfctl_parse_mask() 211 *mask = NPF_NO_NETMASK; in npfctl_parse_mask() 363 fam.fam_mask = NPF_NO_NETMASK; in npfctl_parse_ifnet()
|
H A D | npf_build.c | 801 if (am->fam_mask == NPF_NO_NETMASK) { in npfctl_dnat_check() 890 if ((am1 && am1->fam_mask != NPF_NO_NETMASK) || in npfctl_build_natseg() 891 (am2 && am2->fam_mask != NPF_NO_NETMASK)) { in npfctl_build_natseg() 1002 if (type != NPF_TABLE_LPM && fam.fam_mask != NPF_NO_NETMASK) { in npfctl_fill_table()
|
H A D | npf_bpf_comp.c | 508 assert((mask && mask <= NPF_MAX_NETMASK) || mask == NPF_NO_NETMASK); in npfctl_bpf_cidr() 532 length = (mask == NPF_NO_NETMASK) ? maxmask : mask; in npfctl_bpf_cidr()
|
H A D | npfctl.c | 242 if (mask && mask != NPF_NO_NETMASK) { in npfctl_print_addrmask()
|
/netbsd/sys/net/npf/ |
H A D | npf_inet.c | 213 if (mask1 != NPF_NO_NETMASK) { in npf_addr_cmp() 217 if (mask2 != NPF_NO_NETMASK) { in npf_addr_cmp() 229 if (__predict_false(mask > 32 && mask != NPF_NO_NETMASK)) { in npf_netmask_check() 234 if (__predict_false(mask > 128 && mask != NPF_NO_NETMASK)) { in npf_netmask_check()
|
H A D | npf_ifaddr.c | 145 npf_table_insert(t, alen, &addr, NPF_NO_NETMASK); in npf_ifaddr_sync()
|
H A D | npf_tableset.c | 564 if (mask != NPF_NO_NETMASK) { in npf_table_insert() 577 (mask == NPF_NO_NETMASK) ? (alen * 8) : mask; in npf_table_insert() 678 error = npf_netmask_check(alen, NPF_NO_NETMASK); in npf_table_lookup()
|
H A D | npf_nat.c | 212 np->n_tmask = NPF_NO_NETMASK; in npf_natpolicy_create() 221 np->n_tmask = dnvlist_get_number(nat, "nat-mask", NPF_NO_NETMASK); in npf_natpolicy_create() 241 if (np->n_tmask != NPF_NO_NETMASK) { in npf_natpolicy_create()
|
H A D | npf.h | 65 #define NPF_NO_NETMASK ((npf_netmask_t)~0) macro
|
H A D | npf_ctl.c | 117 mask = dnvlist_get_number(entry, "mask", NPF_NO_NETMASK); in npf_mk_table_entries()
|
/netbsd/lib/libnpf/ |
H A D | npf.c | 1095 *mask = NPF_NO_NETMASK; in npf_nat_getaddr()
|