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"
|
|
|
|
|
2022-08-02 14:04:25 +00:00
|
|
|
#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;
|
2022-08-02 14:04:25 +00:00
|
|
|
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;
|
2022-08-02 14:04:25 +00:00
|
|
|
u8 type;
|
2022-08-01 11:01:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct snmp_channel {
|
|
|
|
struct channel c;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|