From 1c445f779f1d1e706b1fd2769dfbab1e3b2cb1fa Mon Sep 17 00:00:00 2001 From: Gabriel Fidder Date: Tue, 16 Nov 2021 22:36:16 -0600 Subject: [PATCH] fixing Unsigned32 PDU --- snmpclitools/cli/pdu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snmpclitools/cli/pdu.py b/snmpclitools/cli/pdu.py index 47831ca..1db550d 100644 --- a/snmpclitools/cli/pdu.py +++ b/snmpclitools/cli/pdu.py @@ -229,7 +229,7 @@ def p_varBindSpec(self, args): class _WritePduGenerator(_ReadPduGenerator): TYPE_MAP = { 'i': rfc1902.Integer(), - 'u': rfc1902.Integer32(), + 'u': rfc1902.Unsigned32(), 's': rfc1902.OctetString(), 'n': univ.Null(), 'o': univ.ObjectIdentifier(),