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

15 Commits

Author SHA1 Message Date
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
53856e49c9 SNMP: Use compile-time selected byte order
In the AgentX communication the subagent chooses the byte order used. To reduce
code complexity, we decide to use compile-time selected byte order in PDU sent.
Supported options are:
  - SNMP_NATIVE: use native CPU byte order
  - SNMP_NETWORK_BYTE_ORDER: use big endian in PDUs, i.e. network byte order
It is recommended not to used both options at the same time (even it is possible
on big endian platforms).
2023-11-15 13:00:24 +01:00
Vojtech Vilimek
709d0fdd19 SNMP: Refactor - use inline functions
Macros are replaced with inline functions.
2023-11-15 11:41:54 +01:00
Vojtech Vilimek
661a4277bb SNMP: Refactoring 2023-10-25 16:48:12 +02:00
Vojtech Vilimek
fd243b6e9e SNMP: Remove support for context 2023-10-25 16:39:11 +02:00
Vojtech Vilimek
9f4a68be73 SNMP: Minor changes in get, get_next handling 2023-10-18 13:31:35 +02:00
Vojtech Vilimek
2211644ed3 SNMP: Context support and improved registering 2023-09-11 13:41:39 +02:00
Vojtech Vilimek
bdf68b3240 Extension for varbind TimeTicks, varbind type sizes 2023-08-08 17:00:20 +02:00
Vojtech Vilimek
9f8950d4d7 changes in bgp_mib.c API (mainly) 2023-07-26 14:02:23 +02:00
Vojtech Vilimek
d4d925cbea tmp: add new helper function 2023-03-24 15:00:54 +01: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
74c68fc89e tmp 2022-12-06 16:32:26 +01:00
Vojtech Vilimek
9a11ec8d83 tmp: compiles 2022-11-29 16:30:20 +01:00
Vojtech Vilimek
6f74f4a663 moving shared parts to snmp_utils 2022-11-22 14:16:09 +01:00