npf_ifmap_getid
u_int npf_ifmap_getid(npf_t *, const ifnet_t *);
unsigned ifid = npf_ifmap_getid(npf, ifp);