OpenBSD CVS

CVS log for src/lib/libagentx/ax.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.10 / (download) - annotate - [select for diffs], Tue Oct 24 08:54:52 2023 UTC (7 months, 2 weeks ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored)

According to RFC2741 section 6.1.1 an agentx-response-pdu shouldn't have
the NON_DEFAULT_CONTEXT set. Remove the argument from ax_response().

OK tb@

Revision 1.9 / (download) - annotate - [select for diffs], Tue Oct 24 08:48:41 2023 UTC (7 months, 2 weeks ago) by martijn
Branch: MAIN
Changes since 1.8: +3 -1 lines
Diff to previous 1.8 (colored)

Make sure that unpacking of an AgentX OID doesn't contain more than 128
elements.

OK tb@

Revision 1.8 / (download) - annotate - [select for diffs], Sun Oct 24 17:43:38 2021 UTC (2 years, 7 months ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (colored)

Initialize OID print buffer, even when oidlen is 0.
Fix printing old garbage from previous conversions.

OK tb@

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jan 2 01:06:31 2021 UTC (3 years, 5 months ago) by rob
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.6: +7 -7 lines
Diff to previous 1.6 (colored)

Whitespace.

OK martijn@

Revision 1.6 / (download) - annotate - [select for diffs], Tue Dec 29 21:44:48 2020 UTC (3 years, 5 months ago) by rob
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

Allocate new buffer space based on requested need.

OK martijn@

Revision 1.5 / (download) - annotate - [select for diffs], Tue Dec 29 21:27:05 2020 UTC (3 years, 5 months ago) by rob
Branch: MAIN
Changes since 1.4: +1 -2 lines
Diff to previous 1.4 (colored)

Remove unnecessary assignment.

OK martijn@

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: +11 -3 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 19:02:30 2020 UTC (3 years, 7 months ago) by martijn
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Set ax_rbsize before calling malloc and use it in malloc.

OK tb@ and kn@

Revision 1.2 / (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.1: +1 -0 lines
Diff to previous 1.1 (colored)

Add missing RCS tags

Revision 1.1 / (download) - annotate - [select for diffs], Mon Oct 26 15:45:56 2020 UTC (3 years, 7 months ago) by martijn
Branch: MAIN

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

Requested by and OK deraadt@

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.