mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08:00
snmp: remove unused prev field from snmp_varbind
This commit is contained in:
parent
f05e20101e
commit
5ee5801c2c
@ -328,7 +328,6 @@ snmp_receive(void *handle, struct pbuf *p, const ip_addr_t *source_ip, u16_t por
|
||||
struct snmp_varbind vb;
|
||||
|
||||
vb.next = NULL;
|
||||
vb.prev = NULL;
|
||||
vb.type = SNMP_ASN1_TYPE_COUNTER32;
|
||||
vb.value_len = sizeof(u32_t);
|
||||
|
||||
|
@ -351,7 +351,6 @@ snmp_send_trap_or_notification_or_inform_generic(struct snmp_msg_trap *trap_msg,
|
||||
/* First varbind is used to store sysUpTime */
|
||||
{
|
||||
NULL, /* *next */
|
||||
NULL, /* *prev */
|
||||
{ /* oid */
|
||||
8, /* oid len */
|
||||
{1, 3, 6, 1, 2, 1, 1, 3} /* oid for sysUpTime */
|
||||
@ -363,7 +362,6 @@ snmp_send_trap_or_notification_or_inform_generic(struct snmp_msg_trap *trap_msg,
|
||||
/* Second varbind is used to store snmpTrapOID */
|
||||
{
|
||||
NULL, /* *next */
|
||||
NULL, /* *prev */
|
||||
{ /* oid */
|
||||
10, /* oid len */
|
||||
{1, 3, 6, 1, 6, 3, 1, 1, 4, 1} /* oid for snmpTrapOID */
|
||||
|
@ -55,8 +55,6 @@ struct snmp_varbind
|
||||
{
|
||||
/** pointer to next varbind, NULL for last in list */
|
||||
struct snmp_varbind *next;
|
||||
/** pointer to previous varbind, NULL for first in list */
|
||||
struct snmp_varbind *prev;
|
||||
|
||||
/** object identifier */
|
||||
struct snmp_obj_id oid;
|
||||
|
Loading…
x
Reference in New Issue
Block a user