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

20 Commits

Author SHA1 Message Date
Vojtech Vilimek
578a8a43bc SNMP: improved debug messages, shorter description 2024-08-14 18:24:25 +02:00
Vojtech Vilimek
a70ab3051f SNMP: Progress
Remove old logging messages, improve and correct function documentation,
minor tweaks and bugfixes
2024-08-09 21:05:32 +02:00
Vojtech Vilimek
ffda7d1b2a SNMP: AgentX master agent can have IPv6 addr 2024-07-26 12:28:33 +02:00
Vojtech Vilimek
95438b7608 SNMP: AgentX over UNIX-domain sockets 2024-07-22 18:17:35 +02:00
Vojtech Vilimek
af9a2d4cd7 SNMP: Slow integraion of MIB tree in SNMP code 2024-05-24 15:20:30 +02:00
Vojtech Vilimek
e8cad1f275 SNMP: dead end
The code contains hard to debug bug where we periodically do some kind of error.
The problem is caused by weird values after the AgentX PDU header, exactly where
the first OID should lie. We expend value less than 15 but we found values like
0x00003b47. We found possible cause on assignment to socket's receive buffer
position in proto/snmp/subagent.c:snmp_rx at line 1569. An erroneous behavior
may have been caused by off-by-on error. More investigation is needed to gain
full picture.

To resolve this issue we use much more simpler approach. We will set max packet
size and wait until whole packet has arrived.
2024-01-10 12:21:46 +01:00
Vojtech Vilimek
c18e6dd58d SNMP: Major code improvements
SNMP state changes are now handled by snmp_set_state() functions.

The registration structure and related variables are renamed to remove
confusion.

Manipulation of BGP peers, a reference to BGP protocol structures, is improved
by new functions that encapsulate raw hash table macros (moved from snmp.h).
IPv4 addresses now used by bgp_mib.c because BGP4-MIB does not support IPv6
addresses.

Configuration grammar rules are revised.

We now use DBG() and TRACE() macros to output information about SNMP state
chagnes and about received and transmitted packets.

Pieces of old code are removed, minor bugfixes are included. Large debug string
array are removed.
2023-11-15 15:03:55 +01:00
Vojtech Vilimek
fd243b6e9e SNMP: Remove support for context 2023-10-25 16:39:11 +02:00
Vojtech Vilimek
0caf003bf5 SNMP: Remove development comments 2023-10-19 17:02:52 +02:00
Vojtech Vilimek
3488d0e0a7 SNMP: Refactoring - Comments, Logging 2023-10-18 18:17:58 +02:00
Vojtech Vilimek
778906d168 SNMP: BGP4-MIB add LocalIdentifier 2023-10-11 11:21:19 +02:00
Vojtech Vilimek
2211644ed3 SNMP: Context support and improved registering 2023-09-11 13:41:39 +02:00
Vojtech Vilimek
730666be7f SNMP: Add timeout config option, refactoring 2023-09-04 13:58:59 +02:00
Vojtech Vilimek
fb2e47d566 tmp: fix parsing multiple in rx buffer 2023-03-14 14:10:08 +01:00
Vojtech Vilimek
03ab2a89c0 TMP: compiles and runs 2022-09-30 09:36:09 +02:00
Vojtech Vilimek
8ea2e991fa TMP: work on Get-PDU and GetNext-PDU 2022-09-20 14:28:57 +02:00
Vojtech Vilimek
eb5a749046 TMP new snmp PDUs 2022-09-06 18:04:29 +02:00
Vojtech Vilimek
7961bbb26a TMP: compiles, some pdus working 2022-08-10 17:31:32 +02:00
Vojtech Vilimek
e5a88b584e TMP: proto-snmp compiles and connects to master 2022-08-02 16:06:00 +02:00
Vojtech Vilimek
203c63ad5d Initial commit for new protocol `snmp' 2022-08-01 13:01:49 +02:00