SNMP: tiny preparation for SNMP to support more versions than just v1: store request version in struct snmp_msg_pstat so that the response can be sent with the same version (v2c might already work but getbulk is missing)

This commit is contained in:
goldsimon
2015-08-20 09:38:17 +02:00
parent a22a92b481
commit da5ccbf7d1
3 changed files with 9 additions and 2 deletions

View File

@@ -226,6 +226,8 @@ struct snmp_msg_pstat
ip_addr_t sip;
/* source UDP port */
u16_t sp;
/* incoming snmp version */
u8_t version;
/* request type */
u8_t rt;
/* request ID */