mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-25 11:11:53 +00:00
41 lines
619 B
C
41 lines
619 B
C
/*
|
|
* BIRD -- Statistics Protocol
|
|
*
|
|
* (c) 2022 Vojtech Vilimek <vojtech.vilimek@nic.cz>
|
|
* (c) 2022 CZ.NIC z.s.p.o.
|
|
*
|
|
* Can be freely distributed and used under the terms of the GNU GPL.
|
|
*/
|
|
|
|
#ifndef _BIRD_STATS_H_
|
|
#define _BIRD_STATS_H_
|
|
|
|
struct stats_channel;
|
|
|
|
struct stats_config {
|
|
struct proto_config c;
|
|
};
|
|
|
|
struct stats_proto {
|
|
struct proto p;
|
|
struct stats_channel *c;
|
|
struct tbf rl_gen;
|
|
};
|
|
|
|
struct stats_channel {
|
|
struct channel c;
|
|
pool *pool;
|
|
u8 max_generation;
|
|
u32 *counters;
|
|
u32 sum;
|
|
};
|
|
|
|
struct stats_channel_config {
|
|
struct channel_config c;
|
|
u8 max_generation;
|
|
};
|
|
|
|
|
|
|
|
#endif
|