]>
git.proxmox.com Git - mirror_frr.git/blob - bgpd/bgp_snmp_bgp4.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* BGP4-MIB SNMP support
4 * Using: http://www.circitor.fr/Mibs/Html/B/BGP4-MIB.php
6 * Copyright (C) 2022 Donatas Abraitis <donatas@opensourcerouting.org>
9 #ifndef _FRR_BGP_SNMP_BGP4_H_
10 #define _FRR_BGP_SNMP_BGP4_H_
14 #define BGPIDENTIFIER 0
17 #define BGP4MIB 1, 3, 6, 1, 2, 1, 15
20 #define BGPESTABLISHED 1
21 #define BGPBACKWARDTRANSITION 2
24 #define BGPPEERIDENTIFIER 1
25 #define BGPPEERSTATE 2
26 #define BGPPEERADMINSTATUS 3
27 #define BGPPEERNEGOTIATEDVERSION 4
28 #define BGPPEERLOCALADDR 5
29 #define BGPPEERLOCALPORT 6
30 #define BGPPEERREMOTEADDR 7
31 #define BGPPEERREMOTEPORT 8
32 #define BGPPEERREMOTEAS 9
33 #define BGPPEERINUPDATES 10
34 #define BGPPEEROUTUPDATES 11
35 #define BGPPEERINTOTALMESSAGES 12
36 #define BGPPEEROUTTOTALMESSAGES 13
37 #define BGPPEERLASTERROR 14
38 #define BGPPEERFSMESTABLISHEDTRANSITIONS 15
39 #define BGPPEERFSMESTABLISHEDTIME 16
40 #define BGPPEERCONNECTRETRYINTERVAL 17
41 #define BGPPEERHOLDTIME 18
42 #define BGPPEERKEEPALIVE 19
43 #define BGPPEERHOLDTIMECONFIGURED 20
44 #define BGPPEERKEEPALIVECONFIGURED 21
45 #define BGPPEERMINROUTEADVERTISEMENTINTERVAL 22
46 #define BGPPEERINUPDATEELAPSEDTIME 23
48 /* bgpPathAttrEntry */
49 #define BGPPATHATTRPEER 1
50 #define BGPPATHATTRDESTNETWORK 2
51 #define BGPPATHATTRORIGIN 3
52 #define BGPPATHATTRASPATH 4
53 #define BGPPATHATTRNEXTHOP 5
54 #define BGPPATHATTRINTERASMETRIC 6
56 /* bgp4PathAttrEntry */
57 #define BGP4PATHATTRPEER 1
58 #define BGP4PATHATTRIPADDRPREFIXLEN 2
59 #define BGP4PATHATTRIPADDRPREFIX 3
60 #define BGP4PATHATTRORIGIN 4
61 #define BGP4PATHATTRASPATHSEGMENT 5
62 #define BGP4PATHATTRNEXTHOP 6
63 #define BGP4PATHATTRMULTIEXITDISC 7
64 #define BGP4PATHATTRLOCALPREF 8
65 #define BGP4PATHATTRATOMICAGGREGATE 9
66 #define BGP4PATHATTRAGGREGATORAS 10
67 #define BGP4PATHATTRAGGREGATORADDR 11
68 #define BGP4PATHATTRCALCLOCALPREF 12
69 #define BGP4PATHATTRBEST 13
70 #define BGP4PATHATTRUNKNOWN 14
72 extern int bgpTrapEstablished(struct peer
*peer
);
73 extern int bgpTrapBackwardTransition(struct peer
*peer
);
74 extern int bgp_snmp_bgp4_init(struct event_loop
*tm
);
76 #endif /* _FRR_BGP_SNMP_BGP4_H_ */