Home | History | Annotate | Download | only in npf

Lines Matching refs:npc

226 npf_conn_conkey(const npf_cache_t *npc, npf_connkey_t *key,
229 const npf_conn_params_t *params = npc->npc_ctx->params[NPF_PARAMS_CONN];
230 const nbuf_t *nbuf = npc->npc_nbuf;
231 const unsigned proto = npc->npc_proto;
232 const unsigned alen = npc->npc_alen;
238 if (npc->npc_ckey) {
243 return npf_connkey_copy(npc->npc_ckey, key, invert);
248 KASSERT(npf_iscached(npc, NPC_TCP));
249 th = npc->npc_l4.tcp;
254 KASSERT(npf_iscached(npc, NPC_UDP));
255 uh = npc->npc_l4.udp;
260 if (npf_iscached(npc, NPC_ICMP_ID)) {
261 const struct icmp *ic = npc->npc_l4.icmp;
268 if (npf_iscached(npc, NPC_ICMP_ID)) {
269 const struct icmp6_hdr *ic6 = npc->npc_l4.icmp6;
280 ret = npf_connkey_setkey(key, alen, proto, npc->npc_ips, id, flow);