Lines Matching +full:count +full:- +full:threshold

1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
50 * and PIM-SMv2 and PIM-DM support, advanced API support,
77 #define ALL_VIFS (vifi_t)-1
101 #define VIFF_TUNNEL 0x1 /* no-op; retained for old source */
102 #define VIFF_SRCRT 0x2 /* no-op; retained for old source */
132 * The advanced-API flags.
149 * measured bandwidth is above or below a threshold.
152 * bandwidth used by some data flow is above or below some threshold.
153 * This interface allows the userland to specify the threshold (in
160 * The threshold is set in packets and/or bytes per_interval.
166 * During an interval we count packets and bytes, and when we
167 * pass the threshold we deliver an upcall and we are done.
169 * count and restarts the measurement.
173 * then for each incoming packet we count packets and bytes.
174 * When the timer fires, we compare the value with the threshold,
189 #define BW_UPCALL_UNIT_PACKETS (1 << 0) /* threshold (in packets) */
190 #define BW_UPCALL_UNIT_BYTES (1 << 1) /* threshold (in bytes) */
191 #define BW_UPCALL_GEQ (1 << 2) /* upcall if bw >= threshold */
192 #define BW_UPCALL_LEQ (1 << 3) /* upcall if bw <= threshold */
194 struct bw_data bu_threshold; /* the bw threshold */
200 /* min. threshold time interval for bandwidth measurement */
218 uint64_t mrts_q_overflow; /* pkts dropped - Q overflow */
219 uint64_t mrts_pkt2large; /* pkts dropped - size > BKT SIZE */
220 uint64_t mrts_upq_sockfull; /* upcalls dropped - socket full */
230 * Argument structure used by mrouted to get src-grp pkt counts
245 u_long icount; /* Input packet count on vif */
246 u_long ocount; /* Output packet count on vif */
247 u_long ibytes; /* Input byte count on vif */
248 u_long obytes; /* Output byte count on vif */
252 * The kernel's virtual-interface structure.
281 u_long mfc_pkt_cnt; /* pkt count for src-grp */
282 u_long mfc_byte_cnt; /* byte count for src-grp */
283 u_long mfc_wrong_if; /* wrong if for src-grp */
289 for Lower-or-EQual case */
291 for Greater-or-EQual case */
329 * measured bandwidth is above or below a threshold.
336 #define BW_METER_UNIT_PACKETS (1 << 0) /* threshold (in packets) */
337 #define BW_METER_UNIT_BYTES (1 << 1) /* threshold (in bytes) */
338 #define BW_METER_GEQ (1 << 2) /* upcall if bw >= threshold */
339 #define BW_METER_LEQ (1 << 3) /* upcall if bw <= threshold */
347 struct bw_data bm_threshold; /* the upcall threshold */