summaryrefslogtreecommitdiffstats
path: root/lib/libagentx
AgeCommit message (Collapse)AuthorFilesLines
2021-03-12spellingjsg1-3/+3
2021-02-02article fixes; from eddie yousephjmc1-3/+3
2021-01-02Whitespace.rob2-39/+39
OK martijn@
2020-12-29Allocate new buffer space based on requested need.rob1-3/+3
OK martijn@
2020-12-29Remove unnecessary assignment.rob1-2/+1
OK martijn@
2020-12-03grammar fixes from Varik "The Genuine Article!!!" Valefor;jmc1-3/+3
2020-10-27Add agentx_varbind_unsigned32 as a wrapper around agentx_varbind_gauge32 tomartijn4-3/+16
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@
2020-10-27Adjust manpage to uint32_t->int32_t change.martijn1-9/+9
2020-10-27According to SMI (RFC 2578) an integer is signed. Somehow I managed tomartijn4-48/+83
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@
2020-10-26Set ax_rbsize before calling malloc and use it in malloc.martijn1-3/+3
OK tb@ and kn@
2020-10-26The agentx API will first appear in 6.9.tb1-2/+2
2020-10-26Add missing RCS tagstb6-0/+6
2020-10-26use installed include filederaadt2-3/+3
ok martijn
2020-10-26make includes should be more verbosederaadt1-5/+8
ok martijn
2020-10-26s/agentx_/ax_/g and s/subagentx_/agentx_/gmartijn15-6551/+6551
Requested by and OK deraadt@
2020-10-26Initialize srl to NULL to silence gcc. There is no case where this ismartijn1-1/+1
uninitialized and clang doesn't trip over this. Pointed out by and OK stsp@
2020-10-26Remove trailing spaces & tabsdenis2-18/+17
OK martijn@
2020-10-18Fix typo in reference, period that should be comma.bentley1-3/+3
The error is present in the RFC byline, but that's no reason to ignore an obvious typo when the correct punctuation is visible right above it. ok jmc@ martijn@
2020-09-30Fix two minor memory leaks.martijn1-3/+7
the first is when a varbind index is of the type ipaddress. the second is on EOMV and the a varbind index is ipaddress or octetstring, where the wrong field is being freed (which in this case is always NULL and unused)
2020-09-29Fix 3 bugs:martijn1-5/+11
1) Don't declare subagentx_index SA_DSTATE_CLOSE until all subfunctions are done with it. This prevents premature freeing of the object. 2) In subagentx_index_free make sure that if an subagentx_object moves out from under us we correct for this. 3) Don't call subagentx_index_free_finalize if sai_cstate is not SA_CSTATE_CLOSE. The first and last can be triggered when calling free while we're disconnected from the agentx master. The second one can only be triggered with when the freed object is not the last one in the list.
2020-09-16Apparently some time ago I moved the timeout argument to the final positionmartijn1-10/+6
of subagentx_session and subagentx_region but forgot to update it in the manpage. While here also fix a wrong quote and remove a function reference of the non-existing variety.
2020-09-16simple mdoc(7) fixes:schwarze1-20/+19
* delete one stray .Ft line * escape double quotes in a macro argument * some .Nm -> .Fn and .Nm -> .Vt replacements where needed * avoid excessive .Bl -tag -width OK martijn@
2020-09-16Import libagentx.martijn10-0/+6916
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@