Blame SOURCES/net-snmp-5.8-engine-id.patch
|
|
e194dd |
From 79f014464ba761e2430cc767b021993ab9379822 Mon Sep 17 00:00:00 2001
|
|
|
e194dd |
From: Wes Hardaker <opensource@hardakers.net>
|
|
|
e194dd |
Date: Tue, 8 Jan 2019 08:52:29 -0800
|
|
|
e194dd |
Subject: [PATCH] NEWS: snmptrap: BUG: 2899: Patch from Drew Roedersheimer to
|
|
|
e194dd |
set library engineboots/time values before sending
|
|
|
e194dd |
|
|
|
e194dd |
---
|
|
|
e194dd |
apps/snmptrap.c | 3 +++
|
|
|
e194dd |
1 file changed, 3 insertions(+)
|
|
|
e194dd |
|
|
|
e194dd |
diff --git a/apps/snmptrap.c b/apps/snmptrap.c
|
|
|
e194dd |
index d16d2fa671..12808d07e4 100644
|
|
|
e194dd |
--- a/apps/snmptrap.c
|
|
|
e194dd |
+++ b/apps/snmptrap.c
|
|
|
e194dd |
@@ -237,6 +237,9 @@ main(int argc, char *argv[])
|
|
|
e194dd |
session.engineBoots = 1;
|
|
|
e194dd |
if (session.engineTime == 0) /* not really correct, */
|
|
|
e194dd |
session.engineTime = get_uptime(); /* but it'll work. Sort of. */
|
|
|
e194dd |
+
|
|
|
e194dd |
+ set_enginetime(session.securityEngineID, session.securityEngineIDLen,
|
|
|
e194dd |
+ session.engineBoots, session.engineTime, TRUE);
|
|
|
e194dd |
}
|
|
|
e194dd |
|
|
|
e194dd |
ss = snmp_add(&session,
|
|
|
e194dd |
|