File:  [ELWIX - Embedded LightWeight unIX -] / elwix / patches / freebsd.bsnmp.main.patch
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Thu Mar 11 13:59:52 2021 UTC (3 years, 2 months ago) by misho
Branches: MAIN
CVS tags: elwix2_8, elwix2_7, HEAD, ELWIX2_7, ELWIX2_6
ver 2.6

Index: contrib/bsnmp/snmpd/main.c
===================================================================
--- contrib/bsnmp/snmpd/main.c	(revision 245044)
+++ contrib/bsnmp/snmpd/main.c	(working copy)
@@ -627,6 +627,7 @@
 		} else
 			community = comm->value;
 	} else if (pdu->nbindings == 0) {
+		pdu->flags |= SNMP_MSG_AUTODISCOVER;
 		/* RFC 3414 - snmpEngineID Discovery */
 		if (strlen(pdu->user.sec_name) == 0) {
 			asn_append_oid(&(pdu->bindings[pdu->nbindings++].var),

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>