On Tue, 2020-10-27 at 19:09 +0100, Martijn van Duren wrote:
> To prevent any future confusion around unsigned ints I'd like to add
> agentx_varbind_unsigned32 as an alias to agentx_varbind_gauge32.
> 
> According to RFC 2578 section 2:
> -- an unsigned 32-bit quantity
> -- indistinguishable from Gauge32
> 
> OK?
> Still OK to ride yesterdays bump?
> 
> martijn@
> 
And of course the manpage bits:

Index: agentx.3
===================================================================
RCS file: /cvs/src/lib/libagentx/agentx.3,v
retrieving revision 1.3
diff -u -p -r1.3 agentx.3
--- agentx.3    27 Oct 2020 17:33:05 -0000      1.3
+++ agentx.3    27 Oct 2020 18:15:39 -0000
@@ -62,6 +62,7 @@
 .Nm agentx_varbind_ipaddress ,
 .Nm agentx_varbind_counter32 ,
 .Nm agentx_varbind_gauge32 ,
+.Nm agentx_varbind_unsigned32 ,
 .Nm agentx_varbind_timeticks ,
 .Nm agentx_varbind_opaque ,
 .Nm agentx_varbind_counter64 ,
@@ -222,6 +223,8 @@
 .Ft void
 .Fn agentx_varbind_gauge32 "struct agentx_varbind *sav" "uint32_t value"
 .Ft void
+.Fn agentx_varbind_unsigned32 "struct agentx_varbind *sav" "uint32_t value"
+.Ft void
 .Fo agentx_varbind_timeticks
 .Fa "struct agentx_varbind *sav"  "uint32_t value"
 .Fc
@@ -517,6 +520,8 @@ Set the return value to ipaddress.
 Set the return value to an uint32_t of type counter32.
 .It Fn agentx_varbind_gauge32
 Set the return value to an uint32_t of type gauge32.
+.It Fn agentx_varbind_unsigned32
+A wrapper around agentx_varbind_gauge32.
 .It Fn agentx_varbind_timeticks
 Set the return value to an uint32_t of type timeticks.
 .It Fn agentx_varbind_opaque

Reply via email to