| /src/usr.sbin/npf/npftest/libnpftest/ |
| npf_bpf_test.c | 50 npf_cache_t *npc; local 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 55 con = npf_conn_establish(npc, PFIL_IN, true); 61 put_cached_pkt(npc);
|
| npf_state_test.c | 137 npf_cache_t *npc; local 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 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_nat_test.c | 168 npf_cache_t npc; local 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_rule_test.c | 230 npf_cache_t *npc; local 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 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 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 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 [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 162 memset(&npc, 0, sizeof(npf_cache_t)); 163 npc.npc_ctx = npf 350 npf_cache_t npc; local [all...] |
| /src/external/cddl/osnet/dist/uts/powerpc/dtrace/ |
| fasttrap_isa.c | 95 * the process execute most instructions on its own using a pc/npc 522 uintptr_t npc = curthread->t_dtrace_npc; local 538 fasttrap_return_common(rp, pc, p->p_pid, npc);
|
| /src/sys/arch/sparc/sparc/ |
| db_interface.c | 479 db_addr_t npc = ddb_regp->db_tf.tf_npc; local 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/external/bsd/openldap/dist/clients/tools/ |
| ldapmodify.c | 414 int npc=0; /* Num of LDIF controls */ local 416 while (lr.lr_ctrls[npc]) npc++; /* Count LDIF controls */ 419 (npc+ndefc+1)*sizeof(LDAPControl*)); 426 for (i=npc; i<npc+ndefc; i++) { 427 lr.lr_ctrls[i] = ldap_control_dup(defctrls[i-npc]); 433 lr.lr_ctrls[npc+ndefc] = NULL;
|
| /src/external/gpl3/gdb/dist/gdb/ |
| hppa-linux-tdep.c | 96 CORE_ADDR npc = pc; local 102 target_read_memory (npc, buf, 4); 105 npc += 4;
|
| amd64-windows-tdep.c | 607 CORE_ADDR npc; local 611 npc = pc + 2 + (signed char) rel8; 615 return !pc_in_range (npc, cache); 622 CORE_ADDR npc; local 626 npc = pc + 5 + extract_signed_integer (rel32, byte_order); 630 return !pc_in_range (npc, cache);
|
| or1k-tdep.c | 387 CORE_ADDR npc; 395 npc = (CORE_ADDR) val; 397 if (0x4 != (npc - ppc)) 434 "ppc", "npc", "sr" 385 CORE_ADDR npc; local
|
| /src/external/gpl3/gdb.old/dist/gdb/ |
| hppa-linux-tdep.c | 96 CORE_ADDR npc = pc; local 102 target_read_memory (npc, buf, 4); 105 npc += 4;
|
| amd64-windows-tdep.c | 605 CORE_ADDR npc; local 609 npc = pc + 2 + (signed char) rel8; 613 return !pc_in_range (npc, cache); 620 CORE_ADDR npc; local 624 npc = pc + 5 + extract_signed_integer (rel32, 4, byte_order); 628 return !pc_in_range (npc, cache);
|
| or1k-tdep.c | 387 CORE_ADDR npc; 395 npc = (CORE_ADDR) val; 397 if (0x4 != (npc - ppc)) 434 "ppc", "npc", "sr" 385 CORE_ADDR npc; local
|
| /src/sys/arch/sparc64/dev/ |
| pyro.c | 442 pci_chipset_tag_t npc; local 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 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 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...] |
| /src/common/lib/libppath/ |
| ppath.c | 632 ppath_component_t *npc, *pc; local 646 if (ppath_lookup_helper(*op, p, &npo, &npc, NULL) == NULL)
|
| /src/external/gpl3/gdb/dist/sim/erc32/ |
| sis.h | 80 uint32_t pc, npc; member in struct:pstate
|
| /src/external/gpl3/gdb.old/dist/sim/erc32/ |
| sis.h | 80 uint32_t pc, npc; member in struct:pstate
|