lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #52300] Minor type in snmp_opts.h


From: Mike Kleshov
Subject: [lwip-devel] [bug #52300] Minor type in snmp_opts.h
Date: Sat, 28 Oct 2017 07:07:41 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.36

URL:
  <http://savannah.nongnu.org/bugs/?52300>

                 Summary: Minor type in snmp_opts.h
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: kleshov
            Submitted on: Sat 28 Oct 2017 02:07:39 PM MSK
                Category: apps
                Severity: 2 - Minor
              Item Group: Change Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: git head

    _______________________________________________________

Details:

The comments for MIN and MAX need to be swapped:
/**
 * The maximum size of a value.
 */
#define SNMP_MIN_VALUE_SIZE             (2 * sizeof(u32_t*)) /* size required
to store the basic types (8 bytes for counter64) */
/**
 * The minimum size of a value.
 */
#define SNMP_MAX_VALUE_SIZE            
LWIP_MAX(LWIP_MAX((SNMP_MAX_OCTET_STRING_LEN),
sizeof(u32_t)*(SNMP_MAX_OBJ_ID_LEN)), SNMP_MIN_VALUE_SIZE)





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?52300>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]