From 7eb462867b53f33900485daf9c99e9e1b8d9b9b9 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Sun, 5 Nov 2017 11:51:17 +0100 Subject: [PATCH] Fix follow-up to [bug #52315] Minor typo in output of MIB compiler LWIP_SNMP_OBJ_ID_LEN -> SNMP_MAX_OBJ_ID_LEN --- src/apps/snmp/snmp_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/snmp/snmp_core.c b/src/apps/snmp/snmp_core.c index 15936b4d..3c736c01 100644 --- a/src/apps/snmp/snmp_core.c +++ b/src/apps/snmp/snmp_core.c @@ -544,7 +544,7 @@ snmp_oid_to_ip_port(const u32_t *oid, u8_t oid_len, ip_addr_t *ip, u16_t *port) void snmp_oid_assign(struct snmp_obj_id *target, const u32_t *oid, u8_t oid_len) { - LWIP_ASSERT("oid_len <= LWIP_SNMP_OBJ_ID_LEN", oid_len <= SNMP_MAX_OBJ_ID_LEN); + LWIP_ASSERT("oid_len <= SNMP_MAX_OBJ_ID_LEN", oid_len <= SNMP_MAX_OBJ_ID_LEN); target->len = oid_len; @@ -562,7 +562,7 @@ snmp_oid_assign(struct snmp_obj_id *target, const u32_t *oid, u8_t oid_len) void snmp_oid_prefix(struct snmp_obj_id *target, const u32_t *oid, u8_t oid_len) { - LWIP_ASSERT("target->len + oid_len <= LWIP_SNMP_OBJ_ID_LEN", (target->len + oid_len) <= SNMP_MAX_OBJ_ID_LEN); + LWIP_ASSERT("target->len + oid_len <= SNMP_MAX_OBJ_ID_LEN", (target->len + oid_len) <= SNMP_MAX_OBJ_ID_LEN); if (oid_len > 0) { /* move existing OID to make room at the beginning for OID to insert */ @@ -600,7 +600,7 @@ snmp_oid_combine(struct snmp_obj_id *target, const u32_t *oid1, u8_t oid1_len, c void snmp_oid_append(struct snmp_obj_id *target, const u32_t *oid, u8_t oid_len) { - LWIP_ASSERT("offset + oid_len <= LWIP_SNMP_OBJ_ID_LEN", (target->len + oid_len) <= SNMP_MAX_OBJ_ID_LEN); + LWIP_ASSERT("offset + oid_len <= SNMP_MAX_OBJ_ID_LEN", (target->len + oid_len) <= SNMP_MAX_OBJ_ID_LEN); if (oid_len > 0) { MEMCPY(&target->id[target->len], oid, oid_len * sizeof(u32_t));