/src/usr.sbin/npf/npftest/libnpftest/ |
npf_bpf_test.c | 50 npf_cache_t *npc; local in function:test_bpf_code 58 npc = get_cached_pkt(m, NULL, NPF_RULE_LAYER_3); 60 bc_args.pkt = (const uint8_t *)nbuf_dataptr(npc->npc_nbuf); 67 bc_args.arg = npc; 80 put_cached_pkt(npc);
|
npf_gc_test.c | 52 npf_cache_t *npc = get_cached_pkt(m, NULL, NPF_RULE_LAYER_3); local in function:enqueue_connection 55 con = npf_conn_establish(npc, PFIL_IN, true); 61 put_cached_pkt(npc);
|
npf_nat_test.c | 168 npf_cache_t npc; local in function:checkresult 179 memset(&npc, 0, sizeof(npf_cache_t)); 180 npc.npc_ctx = npf_getkernctx(); 181 npc.npc_nbuf = &nbuf; 183 if (!npf_cache_all(&npc)) { 188 const struct udphdr *uh = npc.npc_l4.udp; 193 npf_inet_ntop(af, npc.npc_ips[NPF_SRC], sbuf, sizeof(sbuf)); 194 npf_inet_ntop(af, npc.npc_ips[NPF_DST], dbuf, sizeof(dbuf)); 210 CHECK_TRUE(match_addr(af, saddr, npc.npc_ips[NPF_SRC])); 212 CHECK_TRUE(match_addr(af, daddr, npc.npc_ips[NPF_DST])) [all...] |
npf_state_test.c | 137 npf_cache_t *npc; local in function:process_packet 146 npc = get_cached_pkt(construct_packet(p), NULL, NPF_RULE_LAYER_3); 148 ret = npf_state_init(npc, nst); 152 ret = npf_state_inspect(npc, nst, 154 put_cached_pkt(npc);
|
npf_l2rule_test.c | 75 npf_cache_t *npc; local in function:run_raw_testcase 81 npc = get_cached_pkt(m, t->ifname, NPF_RULE_LAYER_2); 84 rl = npf_ruleset_inspect(npc, npf_config_ruleset(npf), t->di, NPF_RULE_LAYER_2); 93 put_cached_pkt(npc);
|
npf_rule_test.c | 230 npf_cache_t *npc; local in function:run_raw_testcase 236 npc = get_cached_pkt(m, t->ifname, NPF_RULE_LAYER_3); 239 rl = npf_ruleset_inspect(npc, npf_config_ruleset(npf), t->di, NPF_RULE_LAYER_3); 248 put_cached_pkt(npc);
|
npf_mbuf_subr.c | 335 npf_cache_t *npc = kmem_zalloc(sizeof(npf_cache_t), KM_SLEEP); local in function:get_cached_pkt 339 npc->npc_info = 0; 340 npc->npc_ctx = npf_getkernctx(); 342 nbuf_init(npc->npc_ctx, nbuf, m, ifp); 343 npc->npc_nbuf = nbuf; 346 ret = npf_cache_all(npc); 348 ret = npf_cache_ether(npc); 351 return npc; 355 put_cached_pkt(npf_cache_t *npc) 357 struct mbuf *m = nbuf_head_mbuf(npc->npc_nbuf) [all...] |
npf_rid_test.c | 113 npf_cache_t *npc; local in function:run_raw_testcase 119 npc = get_cached_pkt(m, t->ifname, NPF_RULE_LAYER_3); 122 rl = npf_ruleset_inspect(npc, npf_config_ruleset(npf), t->di, NPF_RULE_LAYER_3); 127 id_match = npf_rule_match_rid(rl, npc, t->di); 132 error = npf_rule_reverse(npc, &mi, error); 140 put_cached_pkt(npc);
|
/src/sys/net/npf/ |
npf_bpf.c | 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; local in function:npf_cop_l3 157 const uint32_t ver = (npc->npc_alen & 4) | ((npc->npc_alen >> 4) * 6); 161 M[BPF_MW_L4OFF] = npc->npc_hlen 176 const npf_cache_t * const npc = (const npf_cache_t *)args->arg; local in function:npf_cop_table [all...] |
npf_handler.c | 82 npf_reassembly(npf_t *npf, npf_cache_t *npc, bool *mff) 84 nbuf_t *nbuf = npc->npc_nbuf; 91 if (npf_iscached(npc, NPC_IP4) && npf->ip4_reassembly) { 93 } else if (npf_iscached(npc, NPC_IP6) && npf->ip6_reassembly) { 94 error = ip6_reass_packet(&m, npc->npc_hlen); 122 npc->npc_info = 0; 124 if (npf_cache_all(npc) & (NPC_IPFRAG|NPC_FMTERR)) { 147 npf_cache_t npc; local in function:npfk_packet_handler 162 memset(&npc, 0, sizeof(npf_cache_t)); 163 npc.npc_ctx = npf 350 npf_cache_t npc; local in function:npfk_layer2_handler [all...] |
/src/sys/arch/sparc/sparc/ |
db_interface.c | 479 db_addr_t npc = ddb_regp->db_tf.tf_npc; local in function:db_branch_taken 484 * if this is not an annulled conditional branch, the next pc is "npc". 488 return npc; 503 return npc + 4; 508 return npc + 4;
|
/src/sys/arch/sparc64/dev/ |
pyro.c | 442 pci_chipset_tag_t npc; local in function:pyro_alloc_chipset 444 npc = kmem_alloc(sizeof *npc, KM_SLEEP); 445 memcpy(npc, pc, sizeof *pc); 446 npc->cookie = pbm; 447 npc->rootnode = node; 448 npc->spc_conf_read = pyro_conf_read; 449 npc->spc_conf_write = pyro_conf_write; 450 npc->spc_intr_map = pyro_intr_map; 451 npc->spc_intr_establish = pyro_pci_intr_establish [all...] |
vpci.c | 465 pci_chipset_tag_t npc; local in function:vpci_alloc_chipset 467 npc = kmem_alloc(sizeof *npc, KM_SLEEP); 468 memcpy(npc, pc, sizeof *pc); 469 npc->cookie = pbm; 470 npc->rootnode = node; 471 npc->spc_conf_read = vpci_conf_read; 472 npc->spc_conf_write = vpci_conf_write; 473 npc->spc_intr_map = vpci_intr_map; 474 npc->spc_intr_establish = vpci_pci_intr_establish [all...] |
schizo.c | 673 pci_chipset_tag_t npc; local in function:schizo_alloc_chipset 675 npc = kmem_alloc(sizeof *npc, KM_SLEEP); 676 memcpy(npc, pc, sizeof *pc); 677 npc->cookie = pbm; 678 npc->rootnode = node; 679 npc->spc_conf_read = schizo_conf_read; 680 npc->spc_conf_write = schizo_conf_write; 681 npc->spc_intr_map = schizo_pci_intr_map; 682 npc->spc_intr_establish = schizo_pci_intr_establish [all...] |
psycho.c | 753 pci_chipset_tag_t npc; local in function:psycho_alloc_chipset 755 npc = kmem_alloc(sizeof *npc, KM_SLEEP); 756 memcpy(npc, pc, sizeof *pc); 757 npc->cookie = pp; 758 npc->rootnode = node; 759 npc->spc_conf_read = psycho_pci_conf_read; 760 npc->spc_conf_write = psycho_pci_conf_write; 761 npc->spc_intr_map = NULL; 762 npc->spc_intr_establish = psycho_pci_intr_establish [all...] |
/src/common/lib/libppath/ |
ppath.c | 632 ppath_component_t *npc, *pc; local in function:ppath_copyset_object_helper 646 if (ppath_lookup_helper(*op, p, &npo, &npc, NULL) == NULL)
|
/src/sys/arch/sparc64/sparc64/ |
db_interface.c | 1152 db_addr_t npc; local in function:db_branch_taken 1154 npc = DDB_REGS->db_tf.tf_npc; 1159 * if this is not an annulled conditional branch, the next pc is "npc". 1163 return npc; 1178 return npc + 4; 1183 return npc + 4;
|
/src/sys/dev/nvmm/x86/ |
nvmm_x86.h | 53 uint64_t npc; member in struct:nvmm_x86_exit_io 58 uint64_t npc; member in struct:nvmm_x86_exit_rdmsr 64 uint64_t npc; member in struct:nvmm_x86_exit_wrmsr 68 uint64_t npc; member in struct:nvmm_x86_exit_insn
|
/src/sys/arch/sparc/include/ |
cpu.h | 438 u_int npc; /* npc at interrupt */ member in struct:clockframe
|