OpenBSD CVS

CVS log for src/lib/libagentx/agentx.h


[BACK] Up to [local] / src / lib / libagentx

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.7 / (download) - annotate - [select for diffs], Fri Oct 14 15:26:58 2022 UTC (19 months, 4 weeks ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

Add an agentx_retry call.
If a session, agentcaps, region, index, or object doesn't properly open
because of an error returned by the AgentX master it remained closed until
a reconnect. This new function call walks the tree and tries to reopen
everything in a closed state.

OK sthen@

Revision 1.6 / (download) - annotate - [select for diffs], Sun Oct 24 18:03:27 2021 UTC (2 years, 7 months ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

Even though AgentX supports null-oids and incidentally has a valid usecase
for them, they don't map on ber, which needs a minimum of 2 identifiers.
Enforce this minimum in libagentx.

While here add some additional checks where they were lacking.

OK claudio@

Revision 1.5 / (download) - annotate - [select for diffs], Tue Oct 27 18:24:01 2020 UTC (3 years, 7 months ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored)

Add agentx_varbind_unsigned32 as a wrapper around agentx_varbind_gauge32 to
be more clear what to use when a normal unsigned is desired.

This is in conformance with RFC 2578/SMIv2.

Ride yesterday's bump

OK tb@

Revision 1.4 / (download) - annotate - [select for diffs], Tue Oct 27 17:19:44 2020 UTC (3 years, 7 months ago) by martijn
Branch: MAIN
Changes since 1.3: +5 -5 lines
Diff to previous 1.3 (colored)

According to SMI (RFC 2578) an integer is signed. Somehow I managed to
overlook this. This change prevens indices larger then INT32_MAX, but this
shouldn't happen in the current code (relayd) anyway. In all other cases
the bytes would've been passed on to SNMP anyway, so there's no effective
difference there.

Probably no ABI-change, but we can ride yesterday's bump anyway.

OK tb@

Revision 1.3 / (download) - annotate - [select for diffs], Mon Oct 26 16:02:16 2020 UTC (3 years, 7 months ago) by tb
Branch: MAIN
Changes since 1.2: +1 -0 lines
Diff to previous 1.2 (colored)

Add missing RCS tags

Revision 1.2 / (download) - annotate - [select for diffs], Mon Oct 26 15:45:56 2020 UTC (3 years, 7 months ago) by martijn
Branch: MAIN
Changes since 1.1: +125 -210 lines
Diff to previous 1.1 (colored)

s/agentx_/ax_/g and s/subagentx_/agentx_/g

Requested by and OK deraadt@

Revision 1.1 / (download) - annotate - [select for diffs], Wed Sep 16 10:48:52 2020 UTC (3 years, 8 months ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8

Import libagentx.

This is the same code as I committed earlier to relayd with some fixes by
bluhm@. Not yet linked to the build so developers can return home before
things explode.
To be used by other daemons soon(tm).

OK bluhm@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.