/netbsd-current/external/bsd/libpcap/dist/testprogs/fuzz/ |
H A D | fuzz_filter.c | 12 pcap_t * pkts; local 22 pkts = pcap_open_dead(Data[Size-1], 0xFFFF); 23 if (pkts == NULL) { 32 if (pcap_compile(pkts, &bpf, filter, 1, PCAP_NETMASK_UNKNOWN) == 0) { 33 pcap_setfilter(pkts, &bpf); 34 pcap_close(pkts); 38 pcap_close(pkts);
|
H A D | fuzz_pcap.c | 39 pcap_t * pkts; local 60 pkts = pcap_open_offline("/tmp/fuzz.pcap", errbuf); 61 if (pkts == NULL) { 67 r = pcap_next_ex(pkts, &header, &pkt); 71 r = pcap_next_ex(pkts, &header, &pkt); 73 if (pcap_stats(pkts, &stats) == 0) { 77 pcap_close(pkts);
|
H A D | fuzz_both.c | 40 pcap_t * pkts; local 72 pkts = pcap_open_offline("/tmp/fuzz.pcap", errbuf); 73 if (pkts == NULL) { 83 if (pcap_compile(pkts, &bpf, filter, 1, PCAP_NETMASK_UNKNOWN) == 0) { 85 r = pcap_next_ex(pkts, &header, &pkt); 89 r = pcap_next_ex(pkts, &header, &pkt); 92 pcap_close(pkts); 96 pcap_close(pkts);
|
/netbsd-current/external/bsd/nsd/dist/ |
H A D | xfrd-notify.c | 160 zone->apex_str, zone->pkts[index].dest->ip_address_spec); 165 if(ID(packet) != zone->pkts[index].notify_query_id) { 167 zone->apex_str, zone->pkts[index].dest->ip_address_spec); 174 zone->pkts[index].dest->ip_address_spec); 180 zone->apex_str, zone->pkts[index].dest->ip_address_spec)); 227 zone->pkts[index].dest = NULL; 228 zone->pkts[index].notify_retry = 0; 229 zone->pkts[index].send_time = 0; 230 zone->pkts[index].notify_query_id = 0; 237 if(++zone->pkts[inde [all...] |
H A D | xfrd-notify.h | 69 struct notify_pkt pkts[NOTIFY_CONCURRENT_MAX]; member in struct:notify_zone 70 int notify_pkt_count; /* number of entries nonNULL in pkts */
|
/netbsd-current/crypto/external/bsd/openssl/dist/test/helpers/ |
H A D | ssltestlib.c | 275 STACK_OF(MEMPACKET) *pkts; 323 if (!TEST_ptr(ctx->pkts = sk_MEMPACKET_new_null())) { 338 sk_MEMPACKET_pop_free(ctx->pkts, mempacket_free); 363 if ((thispkt = sk_MEMPACKET_value(ctx->pkts, 0)) == NULL 369 (void)sk_MEMPACKET_shift(ctx->pkts); 434 int numpkts = sk_MEMPACKET_num(ctx->pkts); 443 thispkt = sk_MEMPACKET_value(ctx->pkts, numpkts - 1); 491 if (sk_MEMPACKET_insert(ctx->pkts, thispkt, numpkts) <= 0) { 511 int numpkts = sk_MEMPACKET_num(ctx->pkts); 522 thispkt = sk_MEMPACKET_value(ctx->pkts, [all...] |
/netbsd-current/sys/dev/pci/ |
H A D | if_bwfm_pci.c | 106 struct bwfm_pci_buf *pkts; member in struct:bwfm_pci_pkts 716 sc->sc_rx_pkts.pkts = kmem_zalloc(BWFM_NUM_RX_PKTIDS * 721 &sc->sc_rx_pkts.pkts[i].bb_map); 725 sc->sc_tx_pkts.pkts = kmem_zalloc(BWFM_NUM_TX_PKTIDS 730 &sc->sc_tx_pkts.pkts[i].bb_map); 927 bwfm_pci_pktid_avail(struct bwfm_pci_softc *sc, struct bwfm_pci_pkts *pkts) argument 931 idx = pkts->last + 1; 932 for (i = 0; i < pkts->npkt; i++) { 933 if (idx == pkts->npkt) 935 if (pkts 943 bwfm_pci_pktid_new(struct bwfm_pci_softc *sc, struct bwfm_pci_pkts *pkts, struct mbuf **mp, uint32_t *pktid, paddr_t *paddr) argument 993 bwfm_pci_pktid_free(struct bwfm_pci_softc *sc, struct bwfm_pci_pkts *pkts, uint32_t pktid) argument [all...] |
H A D | if_msk.c | 2013 int pkts = 0; local 2034 pkts++; 2042 if (pkts == 0)
|
H A D | if_sk.c | 1953 int pkts = 0; local 1975 pkts++; 1983 if (pkts == 0)
|
/netbsd-current/crypto/external/bsd/openssl.old/dist/test/ |
H A D | ssltestlib.c | 290 STACK_OF(MEMPACKET) *pkts; 338 if (!TEST_ptr(ctx->pkts = sk_MEMPACKET_new_null())) { 353 sk_MEMPACKET_pop_free(ctx->pkts, mempacket_free); 378 thispkt = sk_MEMPACKET_value(ctx->pkts, 0); 384 (void)sk_MEMPACKET_shift(ctx->pkts); 443 int numpkts = sk_MEMPACKET_num(ctx->pkts); 450 thispkt = sk_MEMPACKET_value(ctx->pkts, numpkts - 2); 454 if (sk_MEMPACKET_delete(ctx->pkts, numpkts - 2) != thispkt) 459 if (sk_MEMPACKET_insert(ctx->pkts, thispkt, numpkts - 1) <= 0) 463 thispkt = sk_MEMPACKET_value(ctx->pkts, numpkt [all...] |
/netbsd-current/crypto/external/bsd/netpgp/dist/src/libverify/ |
H A D | libverify.c | 1155 ARRAY_APPEND(pgp->pkts, pkt); 1168 ARRAY_APPEND(pgp->pkts, pkt); 1177 return (ARRAY_ELEMENT(pgp->pkts, pgp->pkt).tag == wanted); 1187 return (ARRAY_ELEMENT(pgp->pkts, pgp->pkt).u.sigpkt.sig.type == wanted); 1196 if ((got = ARRAY_ELEMENT(pgp->pkts, pgp->pkt).tag) == expected) { 1212 memcpy(signature, &ARRAY_ELEMENT(pgp->pkts, pgp->pkt).u.sigpkt.sig, sizeof(*signature)); 1232 pkt = &ARRAY_ELEMENT(pgp->pkts, pgp->pkt); 1263 userattr->userattr = ARRAY_ELEMENT(pgp->pkts, pgp->pkt).u.userattr; 1285 pkt = &ARRAY_ELEMENT(pgp->pkts, pgp->pkt); 1738 for (pkt = datastart ; pkt < ARRAY_COUNT(cursor->pgp->pkts) ; pk [all...] |
H A D | verify.h | 246 PGPV_ARRAY(pgpv_pkt_t, pkts); /* packet array */
|
/netbsd-current/sys/external/bsd/ena-com/ |
H A D | ena_com.h | 1002 * @pkts: Number of packets since the last update 1009 unsigned int pkts, 1024 if (!pkts || !bytes) 1040 if ((pkts > curr_moder_entry->pkts_per_interval) || 1047 if ((pkts <= pred_moder_entry->pkts_per_interval) || 1051 else if ((pkts > curr_moder_entry->pkts_per_interval) || 1008 ena_com_calculate_interrupt_delay(struct ena_com_dev *ena_dev, unsigned int pkts, unsigned int bytes, unsigned int *smoothed_interval, unsigned int *moder_tbl_idx) argument
|
/netbsd-current/crypto/external/bsd/netpgp/dist/src/netpgpverify/ |
H A D | libverify.c | 270 ARRAY(pgpv_pkt_t, pkts); /* packet array */ 1550 ARRAY_APPEND(pgp->pkts, pkt); 1563 ARRAY_APPEND(pgp->pkts, pkt); 1572 return (ARRAY_ELEMENT(pgp->pkts, pgp->pkt).tag == wanted); 1582 return (ARRAY_ELEMENT(pgp->pkts, pgp->pkt).u.sigpkt.sig.type == wanted); 1591 if ((got = ARRAY_ELEMENT(pgp->pkts, pgp->pkt).tag) == expected) { 1607 memcpy(signature, &ARRAY_ELEMENT(pgp->pkts, pgp->pkt).u.sigpkt.sig, sizeof(*signature)); 1627 pkt = &ARRAY_ELEMENT(pgp->pkts, pgp->pkt); 1660 userattr->userattr = ARRAY_ELEMENT(pgp->pkts, pgp->pkt).u.userattr; 1683 pkt = &ARRAY_ELEMENT(pgp->pkts, pg [all...] |
/netbsd-current/sys/arch/mips/cavium/dev/ |
H A D | octeon_pip.c | 274 uint64_t tmp, pkts; local 289 pkts = __SHIFTOUT(tmp, PIP_STAT0_PRTN_DRP_PKTS); 290 if_statadd(ifp, if_iqdrops, pkts);
|
/netbsd-current/sys/arch/mips/alchemy/dev/ |
H A D | if_aumac.c | 550 int pkts = 0; local 557 pkts++; 588 if (pkts) 601 return pkts; 616 int pkts = 0; local 622 pkts++; 725 if (pkts) 727 if (pkts == AUMAC_NRXDESC) 733 return pkts;
|
/netbsd-current/sys/dev/usb/ |
H A D | vhci.c | 228 vhci_packet_list_t pkts; member in struct:vhci_xfer 338 TAILQ_INIT(&vxfer->pkts); 339 TAILQ_INSERT_TAIL(&vxfer->pkts, req, xferlist); 341 TAILQ_INSERT_TAIL(&vxfer->pkts, res, xferlist); 343 TAILQ_INSERT_TAIL(&vxfer->pkts, dat, xferlist); 372 TAILQ_REMOVE(&vxfer->pkts, pkt, xferlist); 380 KASSERT(TAILQ_FIRST(&vxfer->pkts) == NULL); 456 KASSERT(TAILQ_FIRST(&vxfer->pkts) == NULL); 661 pkt = TAILQ_FIRST(&vxfer->pkts); 665 KASSERT(TAILQ_FIRST(&vxfer->pkts) [all...] |
/netbsd-current/sys/dev/ic/ |
H A D | bcmgenet.c | 685 int pkts = 0; local 756 ++pkts; 765 if (pkts != 0) 766 rnd_add_uint32(&sc->sc_rndsource, pkts); 774 int cidx, i, pkts = 0; local 790 ++pkts; 797 if_statadd(ifp, if_opackets, pkts); 799 if (pkts != 0) 800 rnd_add_uint32(&sc->sc_rndsource, pkts);
|
H A D | dwc_eqos.c | 804 int error, index, pkts = 0; local 912 ++pkts; 938 if (pkts != 0) { 939 rnd_add_uint32(&sc->sc_rndsource, pkts); 950 int i, pkts = 0; local 976 ++pkts; 1005 if (pkts != 0) { 1006 rnd_add_uint32(&sc->sc_rndsource, pkts);
|
/netbsd-current/external/mit/libuv/dist/src/unix/ |
H A D | udp.c | 321 size_t pkts; local 328 for (pkts = 0, q = QUEUE_HEAD(&handle->write_queue); 329 pkts < UV__MMSG_MAXWIDTH && q != &handle->write_queue; 330 ++pkts, q = QUEUE_HEAD(q)) { 335 p = &h[pkts]; 353 h[pkts].msg_hdr.msg_iov = (struct iovec*) req->bufs; 354 h[pkts].msg_hdr.msg_iovlen = req->nbufs; 358 npkts = uv__sendmmsg(handle->io_watcher.fd, h, pkts); 365 i < pkts && q != &handle->write_queue;
|
/netbsd-current/external/bsd/libpcap/dist/ |
H A D | pcap-linux.c | 4088 int pkts = 0; local 4119 while (pkts < max_packets) { 4142 pkts++; 4175 return pkts; 4185 int pkts = 0; local 4205 if (pkts == 0 && handlep->timeout == 0) { 4209 return pkts; 4227 while (pkts < max_packets) { 4240 if (packets_to_read > (max_packets - pkts)) { 4248 packets_to_read = max_packets - pkts; [all...] |
/netbsd-current/external/bsd/ipf/dist/ipsd/ |
H A D | ipsdr.c | 56 int pkts; variable
|
/netbsd-current/sys/dev/hyperv/ |
H A D | if_hvn.c | 1358 int error, pkts; local 1368 pkts = txr->txr_stat_pkts; 1381 if_statadd(ifp, if_oerrors, pkts); 2595 uint32_t size, pkts; local 2616 pkts = 0; 2628 pkts = UINT32_MAX; 2630 pkts = sc->sc_agg_pkts; 2632 if (pkts > sc->sc_rndis_agg_pkts) 2633 pkts = sc->sc_rndis_agg_pkts; 2635 if (pkts < [all...] |
/netbsd-current/sys/arch/mips/adm5120/dev/ |
H A D | if_admsw.c | 917 int pkts = 0; local 973 pkts++; 1011 if (pkts) 1014 if (pkts == ADMSW_NRXLDESC)
|
/netbsd-current/sys/dev/marvell/ |
H A D | if_mvgbe.c | 1070 int pkts = 0; local 1099 pkts++; 1107 if (pkts == 0)
|