0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-23 02:01:55 +00:00
bird/proto/snmp/snmp.h

47 lines
752 B
C
Raw Normal View History

2022-08-01 11:01:49 +00:00
/*
* BIRD -- Simple Network Management Protocol (SNMP)
*
* (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_SNMP_H_
#define _BIRD_SNPM_H_
#include "proto/bgp/bgp.h"
#define SNMP_UNDEFINED 0
#define SNMP_BGP 1
#define SNMP_OSPF 2
#define SNMP_INVALID 255
struct snmp_bond {
node n;
struct proto_config *proto;
u8 type;
};
2022-08-01 11:01:49 +00:00
struct snmp_config {
struct channel_config c;
list bgp_entries;
2022-08-01 11:01:49 +00:00
};
struct snmp_proto {
struct channel c;
struct tbf rl_gen;
};
struct snmp_channel_config {
struct channel_config c;
struct bgp_config *bgp;
u8 type;
2022-08-01 11:01:49 +00:00
};
struct snmp_channel {
struct channel c;
};
#endif