Skip to content

Commit

Permalink
snmp: remove unused prev field from snmp_varbind
Browse files Browse the repository at this point in the history
  • Loading branch information
j123b567 committed Nov 29, 2024
1 parent 55e4e2d commit 5f36247
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/apps/snmp/snmp_msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 0 additions & 2 deletions src/apps/snmp/snmp_traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,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 */
Expand All @@ -368,7 +367,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 */
Expand Down
2 changes: 0 additions & 2 deletions src/include/lwip/apps/snmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5f36247

Please sign in to comment.