Skip to content

Commit 5ee5801

Browse files
j123b567yarrick
authored andcommitted
snmp: remove unused prev field from snmp_varbind
1 parent f05e201 commit 5ee5801

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

src/apps/snmp/snmp_msg.c

-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ snmp_receive(void *handle, struct pbuf *p, const ip_addr_t *source_ip, u16_t por
328328
struct snmp_varbind vb;
329329

330330
vb.next = NULL;
331-
vb.prev = NULL;
332331
vb.type = SNMP_ASN1_TYPE_COUNTER32;
333332
vb.value_len = sizeof(u32_t);
334333

src/apps/snmp/snmp_traps.c

-2
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@ snmp_send_trap_or_notification_or_inform_generic(struct snmp_msg_trap *trap_msg,
351351
/* First varbind is used to store sysUpTime */
352352
{
353353
NULL, /* *next */
354-
NULL, /* *prev */
355354
{ /* oid */
356355
8, /* oid len */
357356
{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,
363362
/* Second varbind is used to store snmpTrapOID */
364363
{
365364
NULL, /* *next */
366-
NULL, /* *prev */
367365
{ /* oid */
368366
10, /* oid len */
369367
{1, 3, 6, 1, 6, 3, 1, 1, 4, 1} /* oid for snmpTrapOID */

src/include/lwip/apps/snmp.h

-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ struct snmp_varbind
5555
{
5656
/** pointer to next varbind, NULL for last in list */
5757
struct snmp_varbind *next;
58-
/** pointer to previous varbind, NULL for first in list */
59-
struct snmp_varbind *prev;
6058

6159
/** object identifier */
6260
struct snmp_obj_id oid;

0 commit comments

Comments
 (0)