Symbol: bw_meter
sys/net/ip_mroute/ip_mroute.c
1086
struct bw_meter *list;
sys/net/ip_mroute/ip_mroute.c
1424
struct bw_meter *x = mfc->mfc_bw_meter;
sys/net/ip_mroute/ip_mroute.c
154
static struct bw_meter *bw_meter_timers[BW_METER_BUCKETS];
sys/net/ip_mroute/ip_mroute.c
1584
struct bw_meter *x;
sys/net/ip_mroute/ip_mroute.c
2261
struct bw_meter *x;
sys/net/ip_mroute/ip_mroute.c
2330
free_bw_list(struct bw_meter *list)
sys/net/ip_mroute/ip_mroute.c
2333
struct bw_meter *x = list;
sys/net/ip_mroute/ip_mroute.c
2348
struct bw_meter *x;
sys/net/ip_mroute/ip_mroute.c
2363
struct bw_meter *list;
sys/net/ip_mroute/ip_mroute.c
2371
struct bw_meter *prev;
sys/net/ip_mroute/ip_mroute.c
2408
bw_meter_receive_packet(struct bw_meter *x, int plen, struct timeval *nowp)
sys/net/ip_mroute/ip_mroute.c
2500
bw_meter_prepare_upcall(struct bw_meter *x, struct timeval *nowp)
sys/net/ip_mroute/ip_mroute.c
2594
#define BW_METER_TIMEHASH(bw_meter, hash) \
sys/net/ip_mroute/ip_mroute.c
2596
struct timeval next_timeval = (bw_meter)->bm_start_time; \
sys/net/ip_mroute/ip_mroute.c
2598
BW_TIMEVALADD(&next_timeval, &(bw_meter)->bm_threshold.b_time); \
sys/net/ip_mroute/ip_mroute.c
2610
schedule_bw_meter(struct bw_meter *x, struct timeval *nowp)
sys/net/ip_mroute/ip_mroute.c
2642
unschedule_bw_meter(struct bw_meter *x)
sys/net/ip_mroute/ip_mroute.c
2645
struct bw_meter *prev, *tmp;
sys/net/ip_mroute/ip_mroute.c
267
static void free_bw_list(struct bw_meter *list);
sys/net/ip_mroute/ip_mroute.c
270
static void bw_meter_receive_packet(struct bw_meter *x, int plen,
sys/net/ip_mroute/ip_mroute.c
2709
struct bw_meter *x, *tmp_list;
sys/net/ip_mroute/ip_mroute.c
272
static void bw_meter_prepare_upcall(struct bw_meter *x, struct timeval *nowp);
sys/net/ip_mroute/ip_mroute.c
274
static void schedule_bw_meter(struct bw_meter *x, struct timeval *nowp);
sys/net/ip_mroute/ip_mroute.c
275
static void unschedule_bw_meter(struct bw_meter *x);
sys/net/ip_mroute/ip_mroute.h
290
struct bw_meter *mfc_bw_meter; /* list of bandwidth meters */
sys/net/ip_mroute/ip_mroute.h
354
struct bw_meter *bm_mfc_next; /* next bw meter (same mfc) */
sys/net/ip_mroute/ip_mroute.h
355
struct bw_meter *bm_time_next; /* next bw meter (same time) */
usr.bin/netstat/mroute.c
138
struct bw_meter bw_meter, *bwm;
usr.bin/netstat/mroute.c
143
kread((u_long)bwm, (char *)&bw_meter,
usr.bin/netstat/mroute.c
144
sizeof bw_meter);
usr.bin/netstat/mroute.c
145
print_bw_meter(&bw_meter,
usr.bin/netstat/mroute.c
147
bwm = bw_meter.bm_mfc_next;
usr.bin/netstat/mroute.c
166
print_bw_meter(struct bw_meter *bw_meter, int *banner_printed)
usr.bin/netstat/mroute.c
184
if (bw_meter->bm_flags & BW_METER_UNIT_PACKETS)
usr.bin/netstat/mroute.c
185
sprintf(s1, "%ju", (uintmax_t)bw_meter->bm_measured.b_packets);
usr.bin/netstat/mroute.c
188
if (bw_meter->bm_flags & BW_METER_UNIT_BYTES)
usr.bin/netstat/mroute.c
189
sprintf(s2, "%ju", (uintmax_t)bw_meter->bm_measured.b_bytes);
usr.bin/netstat/mroute.c
193
bw_meter->bm_start_time.tv_sec,
usr.bin/netstat/mroute.c
194
bw_meter->bm_start_time.tv_usec,
usr.bin/netstat/mroute.c
200
if (bw_meter->bm_flags & BW_METER_GEQ)
usr.bin/netstat/mroute.c
202
else if (bw_meter->bm_flags & BW_METER_LEQ)
usr.bin/netstat/mroute.c
207
if (bw_meter->bm_flags & BW_METER_UNIT_PACKETS)
usr.bin/netstat/mroute.c
208
sprintf(s1, "%ju", (uintmax_t)bw_meter->bm_threshold.b_packets);
usr.bin/netstat/mroute.c
211
if (bw_meter->bm_flags & BW_METER_UNIT_BYTES)
usr.bin/netstat/mroute.c
212
sprintf(s2, "%ju", (uintmax_t)bw_meter->bm_threshold.b_bytes);
usr.bin/netstat/mroute.c
216
bw_meter->bm_threshold.b_time.tv_sec,
usr.bin/netstat/mroute.c
217
bw_meter->bm_threshold.b_time.tv_usec,
usr.bin/netstat/mroute.c
222
timeradd(&bw_meter->bm_start_time,
usr.bin/netstat/mroute.c
223
&bw_meter->bm_threshold.b_time, &end);
usr.bin/netstat/mroute.c
62
static void print_bw_meter(struct bw_meter *bw_meter, int *banner_printed);