0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-23 18:21:54 +00:00
Commit Graph

43 Commits

Author SHA1 Message Date
Vojtech Vilimek
dd9e1323b5 SNMP: cleanup 2024-08-14 12:26:20 +02:00
Vojtech Vilimek
1849d28e49 SNMP: improve AgentX registration tracking 2024-08-13 17:53:45 +02:00
Vojtech Vilimek
9684fda9bf SNMP: Fix state machine transitions 2024-08-13 17:51:53 +02:00
Vojtech Vilimek
538bbadae2 fixup! SNMP: tmp -- fix byte order handling 2024-08-13 17:47:15 +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
a34fea55ec SNMP: tmp 2024-07-24 13:38:36 +02:00
Vojtech Vilimek
bdb0b7cad4 SNMP: Minor improvements 2024-07-23 13:48:20 +02:00
Vojtech Vilimek
95438b7608 SNMP: AgentX over UNIX-domain sockets 2024-07-22 18:17:35 +02:00
Vojtech Vilimek
4b7989aa45 SNMP: tmp 2024-07-09 16:56:16 +02:00
Vojtech Vilimek
a67b00a0cf SNMP: tmp ``microimprovement'' flush worktree 2024-07-04 16:33:44 +02:00
Vojtech Vilimek
af9a2d4cd7 SNMP: Slow integraion of MIB tree in SNMP code 2024-05-24 15:20:30 +02:00
Vojtech Vilimek
c7ca8b66c1 SNMP: Major leap forward
Solved segmentation faults.
2024-01-24 00:23:31 +01: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
fedaa0af5e SNMP: Fix handling of partially received PDUs 2023-11-08 13:10:13 +01:00
Vojtech Vilimek
fd243b6e9e SNMP: Remove support for context 2023-10-25 16:39:11 +02:00
Vojtech Vilimek
aef20fe1a7 SNMP: Better handling of errors 2023-10-25 12:56:23 +02:00
Vojtech Vilimek
151fa4b6b2 SNMP: Bugfixes, minor code improvements 2023-10-25 12:41:23 +02:00
Vojtech Vilimek
6c59bcdfbb SNMP: Remove old code 2023-10-19 16:15:15 +02:00
Vojtech Vilimek
728e968ba7 SNMP: Refactoring - Comments, Logging 2023-10-19 15:59:13 +02:00
Vojtech Vilimek
7b79f55ae9 SNMP: Add bgp trie cleanup 2023-10-18 17:39:36 +02:00
Vojtech Vilimek
9f4a68be73 SNMP: Minor changes in get, get_next handling 2023-10-18 13:31:35 +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
14bcba7040 SNMP: Refactoring 2023-09-04 14:01:08 +02:00
Vojtech Vilimek
730666be7f SNMP: Add timeout config option, refactoring 2023-09-04 13:58:59 +02:00
Vojtech Vilimek
7543da15d8 SNMP: Remove transmit hook, new macros 2023-09-04 13:46:02 +02:00
Vojtech Vilimek
df28d1cbe8 Testing Notify-PDU 2023-09-04 09:25:51 +02:00
Vojtech Vilimek
5f936b4442 Register-PDU distinguish between instance/tree reg.
Other changes include simplification of large TX buffer when it's insufficient
and purge of additional_buffer.
2023-08-08 19:00:54 +02:00
Vojtech Vilimek
4c7828779e mainly visual tweaks 2023-07-26 14:34:01 +02:00
Vojtech Vilimek
23b467318c tmp 2022-12-17 18:16:19 +01:00
Vojtech Vilimek
2a4fedb6e0 tmp: compiles and runs 2022-12-10 18:08:00 +01:00
Vojtech Vilimek
8d4926b0f5 snmp_log() wrapper 2022-12-10 13:22:37 +01:00
Vojtech Vilimek
74c68fc89e tmp 2022-12-06 16:32:26 +01:00
Vojtech Vilimek
508a420327 fix the Get and GetNext
missing some functionality around GetBulk
2022-11-15 16:29:03 +01:00
Vojtech Vilimek
9a75af4573 tmp: compiles, first tests 2022-11-05 16:29:00 +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