Searched refs:packets (Results 1 - 25 of 73) sorted by relevance

123

/freebsd-11-stable/tools/tools/mctest/
H A Dmctest.cc85 // absorb and record packets
90 // @param number ///< number of packets we're expecting
158 timeval packets[number]; local
182 * 1/N packets from each, otherwise the clients will overwhelm
193 gettimeofday(&packets[ntohl(*(int *)packet)], 0);
199 cout << "Missed " << number - n << " packets." << endl;
202 cout << "sec: " << packets[i].tv_sec << " usec: " <<
203 packets[i].tv_usec << endl;
205 timersub(&packets[i+1], &packets[
224 struct timeval *packets; ///< The timestamps of returning packets member in struct:server_args
357 char *packets[number]; local
[all...]
/freebsd-11-stable/sys/netgraph/
H A Dng_source.c47 * a control message it sends the packets out its 'output' hook. In
54 * self-re-enqueue packets (e.g. the if_bge driver could reuse the same
88 struct mbufq snd_queue; /* packets to send */
92 uint64_t packets; /* packets to send */ member in struct:privdata
393 uint64_t packets; local
400 packets = *(uint64_t *)msg->data;
402 error = ng_source_start(sc, packets);
633 * to queue a lot of packets to get close to line rate on a gigabit
634 * interface with small packets
687 ng_source_start(sc_p sc, uint64_t packets) argument
733 int packets; local
[all...]
H A Dng_pipe.c80 u_int32_t packets; /* # of packets in this queue */ member in struct:ngp_fifo
653 hash = 0; /* all packets go into a single FIFO queue */
666 ngp_f->packets = 1;
673 ngp_f->packets++;
685 if (ngp_f1->packets > longest) {
686 longest = ngp_f1->packets;
701 if (--(ngp_f->packets) == 0) {
787 ngp_f->packets--;
805 if (ngp_f->packets) {
[all...]
/freebsd-11-stable/contrib/netbsd-tests/kernel/
H A Dt_pty.c4 * Allocates a pty(4) device, and sends the specified number of packets of the
48 static size_t packets = 2; variable
79 for (i = 0; i < packets; i++) {
254 if (total != buffer_size * packets)
256 "Lost data %zu != %zu\n", total, buffer_size * packets);
270 "Usage: %s [-v] [-q <qsize>] [-s <packetsize>] [-n <packets>]\n",
284 packets = (size_t)atoi(optarg);
302 if (packets < 1 || packets > 100)
/freebsd-11-stable/usr.sbin/spray/
H A Dspray.c113 * The default value of count is the number of packets required
147 /* Spray server with packets */
148 printf ("sending %u packets of length %d to %s ...", count, length,
173 /* report dropped packets */
177 printf("\t%d packets (%.2f%%) dropped\n",
181 printf("\tno packets dropped\n");
195 print_xferstats(u_int packets, int packetlen, double xfertime) argument
198 double pps; /* packets per second */
201 datalen = packets * packetlen;
202 pps = packets / xfertim
[all...]
/freebsd-11-stable/sbin/pfctl/
H A Dpfctl_qstats.c340 (unsigned long long)cur.data.cbq_stats.xmit_cnt.packets,
342 (unsigned long long)cur.data.cbq_stats.drop_cnt.packets,
351 printf(" [ measured: %7.1f packets/s, %s/s ]\n",
361 (unsigned long long)cur.data.codel_stats.cl_xmitcnt.packets,
363 (unsigned long long)cur.data.codel_stats.cl_dropcnt.packets +
364 cur.data.codel_stats.stats.drop_cnt.packets,
373 printf(" [ measured: %7.1f packets/s, %s/s ]\n",
383 (unsigned long long)cur.data.priq_stats.xmitcnt.packets,
385 (unsigned long long)cur.data.priq_stats.dropcnt.packets,
393 printf(" [ measured: %7.1f packets/
[all...]
H A Dpf_print_state.c314 u_int64_t packets[2]; local
330 bcopy(s->packets[0], &packets[0], sizeof(u_int64_t));
331 bcopy(s->packets[1], &packets[1], sizeof(u_int64_t));
335 (uintmax_t )be64toh(packets[0]),
336 (uintmax_t )be64toh(packets[1]),
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
H A Dnet_dim.h62 int ppms; /* packets per msec */
340 u64 packets,
345 s->pkt_ctr = packets;
375 u64 packets, u64 bytes)
390 net_dim_sample(dim->event_ctr, packets, bytes, &end_sample);
400 net_dim_sample(dim->event_ctr, packets, bytes, &dim->start_sample);
339 net_dim_sample(u16 event_ctr, u64 packets, u64 bytes, struct net_dim_sample *s) argument
374 net_dim(struct net_dim *dim, u64 packets, u64 bytes) argument
/freebsd-11-stable/usr.sbin/flowctl/
H A Dflowctl.c296 fle->packets);
330 fle6->packets);
364 fle->packets,
372 (u_int)(fle->bytes / fle->packets),
407 fle6->packets,
415 (u_int)(fle6->bytes / fle6->packets),
/freebsd-11-stable/sys/netgraph/netflow/
H A Dnetflow.h94 uint32_t packets; /* Number of packets in a flow */ member in struct:netflow_v1_record
116 uint32_t packets; /* Number of packets in a flow */ member in struct:netflow_v5_record
149 #define NETFLOW_V9_FIELD_IN_PKTS 2 /* Incoming counter with number of packets associated with an IP Flow. Default 4 */
166 #define NETFLOW_V9_FIELD_MUL_DST_PKTS 19 /* IP multicast outgoing packet counter for packets associated with IP flow. Default 4 */
171 #define NETFLOW_V9_FIELD_OUT_PKTS 24 /* Outgoing counter for the number of packets associated with an IP Flow. Default 4 */
179 #define NETFLOW_V9_FIELD_SAMPLING_INTERVAL 34 /* When using sampled NetFlow, the rate at which packets are sampled; for example, a value of 100 indicates that one of every hundred packets is sampled. 4 */
186 #define NETFLOW_V9_FIELD_TOTAL_PKTS_EXP 41 /* Counter with for the number of packets exporte
[all...]
H A Dng_netflow.h68 uint64_t nfinfo_packets; /* accounted IPv4 packets */
70 uint64_t nfinfo_packets6; /* accounted IPv6 packets */
72 uint64_t nfinfo_spackets; /* skipped IPv4 packets */
74 uint64_t nfinfo_spackets6; /* skipped IPv6 packets */
91 { "IPv4 packets", &ng_parse_uint64_type },\
93 { "IPv6 packets", &ng_parse_uint64_type },\
95 { "IPv4 skipped packets", &ng_parse_uint64_type },\
97 { "IPv6 skipped packets", &ng_parse_uint64_type },\
115 uint32_t ifinfo_packets; /* number of packets for this iface */
161 uint16_t packets; /* ma member in struct:ng_netflow_settemplate
259 u_long packets; member in struct:flow_entry_data
277 u_long packets; member in struct:flow6_entry_data
[all...]
H A Dnetflow.c69 /* This hash is for TCP or UDP packets. */
76 /* This hash is for all other IP packets. */
86 #define ISFREE(fle) (fle->f.packets == 0)
94 #define SMALL(fle) (fle->f.packets <= 4)
345 fle->f.packets = 1;
441 fle6->f.packets = 1;
776 fle->f.packets ++;
898 fle6->f.packets ++;
1101 rec->packets = htonl(fle->f.packets);
[all...]
/freebsd-11-stable/sys/net/altq/
H A Daltq.h167 u_int64_t packets; member in struct:pktcntr
172 do { (cntr)->packets++; (cntr)->bytes += len; } while (/*CONSTCOND*/ 0)
/freebsd-11-stable/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_port.c156 u64 packets, bytes; local
162 packets = 0;
167 packets += READ_ONCE(ring->packets);
170 priv->pkstats.rx_packets = packets;
173 packets = 0;
178 packets += READ_ONCE(ring->packets);
181 priv->pkstats.tx_packets = packets;
451 priv->pkstats.rx_packets += priv->rx_ring[i]->packets;
[all...]
/freebsd-11-stable/contrib/tcpdump/
H A Dprint-pfsync.c424 uint64_t packets[2]; local
440 bcopy(s->packets[0], &packets[0], sizeof(uint64_t));
441 bcopy(s->packets[1], &packets[1], sizeof(uint64_t));
445 be64toh(packets[0]), be64toh(packets[1]),
H A Dprint-cnfp.c73 uint32_t packets; /* packets in the flow */ member in struct:nfrec_v1
74 uint32_t octets; /* layer 3 octets in the packets of the flow */
105 uint32_t packets; /* packets in the flow */ member in struct:nfrec_v5
106 uint32_t octets; /* layer 3 octets in the packets of the flow */
139 uint32_t packets; /* packets in the flow */ member in struct:nfrec_v6
140 uint32_t octets; /* layer 3 octets in the packets of the flow */
236 EXTRACT_32BITS(&nr->packets),
[all...]
/freebsd-11-stable/sys/dev/mlx5/mlx5_core/
H A Dmlx5_vport.c1629 vc->received_errors.packets =
1631 out, received_errors.packets);
1635 vc->transmit_errors.packets =
1637 out, transmit_errors.packets);
1641 vc->received_ib_unicast.packets =
1643 out, received_ib_unicast.packets);
1647 vc->transmitted_ib_unicast.packets =
1649 out, transmitted_ib_unicast.packets);
1653 vc->received_ib_multicast.packets =
1655 out, received_ib_multicast.packets);
[all...]
/freebsd-11-stable/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_mad.c122 cpu_to_be64(MLX5_SUM_CNT(out, transmitted_ib_unicast.packets,
123 transmitted_ib_multicast.packets));
125 cpu_to_be64(MLX5_SUM_CNT(out, received_ib_unicast.packets,
126 received_ib_multicast.packets));
129 out, transmitted_ib_unicast.packets);
132 out, received_ib_unicast.packets);
135 out, transmitted_ib_multicast.packets);
138 out, received_ib_multicast.packets);
/freebsd-11-stable/usr.sbin/fwcontrol/
H A Dfwdv.c262 int len, tlen, header, fd, frames, packets, vec, offset, nhdr, i; local
321 packets = 0;
346 header = (packets == 0 || packets % npackets[system] == 0);
378 ciph->dbc = packets++ % 256;
/freebsd-11-stable/contrib/llvm-project/lldb/source/Commands/
H A DCommandObjectReproducer.cpp447 std::vector<GDBRemotePacket> packets; variable
449 yin >> packets; variable
456 for (GDBRemotePacket &packet : packets) {
/freebsd-11-stable/sys/contrib/octeon-sdk/
H A Dcvmx-pko.h159 uint32_t packets; member in struct:__anon8676
604 * status->packets and status->octets
606 status->packets = 0;
622 status->packets += pko_mem_count0.s.count;
666 * Rate limit a PKO port to a max packets/sec. This function is only
671 * @param burst Maximum number of packets to burst in a row before rate
H A Dcvmx-usb.h548 * Descriptor for Isochronous packets
949 * Number of sequential packets to transfer.
950 * "packets" is a pointer to an array of this
952 * @param packets Description of each transfer packet as
983 cvmx_usb_iso_packet_t packets[],
/freebsd-11-stable/crypto/openssh/
H A Dpacket.c101 u_int32_t packets; member in struct:packet_state
224 /* Hook for fuzzing inbound packets */
251 state->p_send.packets = state->p_read.packets = 0;
254 * ssh_packet_send2() needs to queue packets until
808 * Causes any further packets to be encrypted using the given key. The same
924 state->p_send.packets++;
990 ps->packets = ps->blocks = 0;
1068 if (state->p_send.packets == 0 && state->p_read.packets
[all...]
/freebsd-11-stable/contrib/libpcap/
H A Dpcap-usb-linux.c1239 int packets = 0; local
1246 int limit = max_packets - packets;
1334 packets++;
1339 if (PACKET_COUNT_IS_UNLIMITED(max_packets) || (packets == max_packets))
1349 return packets;
/freebsd-11-stable/sys/geom/vinum/
H A Dgeom_vinum_raid5.c104 TAILQ_FOREACH_SAFE(wp, &p->packets, list, wp2) {
108 TAILQ_REMOVE(&p->packets, wp, list);
157 TAILQ_FOREACH(owp, &p->packets, list) {

Completed in 224 milliseconds

123