Home
last modified time | relevance | path

Searched refs:NPF_NO_NETMASK (Results 1 – 13 of 13) sorted by relevance

/netbsd/usr.sbin/npf/npftest/libnpftest/
H A Dnpf_table_test.c82 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 Dnpf_cmd.c444 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 Dnpf_data.c182 *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 Dnpf_build.c801 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 Dnpf_bpf_comp.c508 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 Dnpfctl.c242 if (mask && mask != NPF_NO_NETMASK) { in npfctl_print_addrmask()
/netbsd/sys/net/npf/
H A Dnpf_inet.c213 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 Dnpf_ifaddr.c145 npf_table_insert(t, alen, &addr, NPF_NO_NETMASK); in npf_ifaddr_sync()
H A Dnpf_tableset.c564 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 Dnpf_nat.c212 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 Dnpf.h65 #define NPF_NO_NETMASK ((npf_netmask_t)~0) macro
H A Dnpf_ctl.c117 mask = dnvlist_get_number(entry, "mask", NPF_NO_NETMASK); in npf_mk_table_entries()
/netbsd/lib/libnpf/
H A Dnpf.c1095 *mask = NPF_NO_NETMASK; in npf_nat_getaddr()