Home | History | Annotate | Download | only in npf

Lines Matching defs:npc

85 npf_bpf_prepare(npf_cache_t *npc, bpf_args_t *args, uint32_t *M)
87 nbuf_t *nbuf = npc->npc_nbuf;
101 args->arg = npc;
111 const u_int alen = npc->npc_alen;
121 M[BPF_MW_L4OFF] = npc->npc_hlen;
122 M[BPF_MW_L4PROTO] = npc->npc_proto;
156 const npf_cache_t * const npc = (const npf_cache_t *)args->arg;
157 const uint32_t ver = (npc->npc_alen & 4) | ((npc->npc_alen >> 4) * 6);
161 M[BPF_MW_L4OFF] = npc->npc_hlen;
162 M[BPF_MW_L4PROTO] = npc->npc_proto;
176 const npf_cache_t * const npc = (const npf_cache_t *)args->arg;
177 npf_tableset_t *tblset = npf_config_tableset(npc->npc_ctx);
182 if (!npf_iscached(npc, NPC_IP46)) {
189 addr = npc->npc_ips[(A & SRC_FLAG_BIT) ? NPF_SRC : NPF_DST];
190 return npf_table_lookup(t, npc->npc_alen, addr) == 0;