diff options
| author | Shteryana Shopova <syrinx@FreeBSD.org> | 2016-11-10 20:51:26 +0000 |
|---|---|---|
| committer | Shteryana Shopova <syrinx@FreeBSD.org> | 2016-11-10 20:51:26 +0000 |
| commit | 3b49535a5a124165d6521ca19e12c0a457ca13b8 (patch) | |
| tree | 70f0c9a99a955e5cc97f48b3384d52ac5e9a306f /contrib | |
| parent | cc59e3a79b5caf0bba3e9452c7cbae16f2b521ac (diff) | |
Notes
Diffstat (limited to 'contrib')
| -rw-r--r-- | contrib/bsnmp/lib/snmpagent.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/bsnmp/lib/snmpagent.c b/contrib/bsnmp/lib/snmpagent.c index a425c376d62e..f0bb2f389729 100644 --- a/contrib/bsnmp/lib/snmpagent.c +++ b/contrib/bsnmp/lib/snmpagent.c @@ -171,7 +171,10 @@ snmp_pdu_create_response(const struct snmp_pdu *pdu, struct snmp_pdu *resp) memset(resp, 0, sizeof(*resp)); strcpy(resp->community, pdu->community); resp->version = pdu->version; - resp->type = SNMP_PDU_RESPONSE; + if (pdu->flags & SNMP_MSG_AUTODISCOVER) + resp->type = SNMP_PDU_REPORT; /* RFC 3414.4 */ + else + resp->type = SNMP_PDU_RESPONSE; resp->request_id = pdu->request_id; resp->version = pdu->version; |
