lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #55960] SNMP MIB compiler/code generator does not alwa


From: Josh
Subject: [lwip-devel] [bug #55960] SNMP MIB compiler/code generator does not always parse SIZE for textual conventions
Date: Tue, 19 Mar 2019 19:25:31 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36

URL:
  <https://savannah.nongnu.org/bugs/?55960>

                 Summary: SNMP MIB compiler/code generator does not always
parse SIZE for textual conventions
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: inojosh
            Submitted on: Tue 19 Mar 2019 11:25:29 PM UTC
                Category: apps
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: git head

    _______________________________________________________

Details:

When the MIB compiler generates "_scalars_set_test" functions, it doesn't
always parse the SIZE for textual conventions.

It does parse the SIZE for a TEXTUAL-CONVENTION that contains SIZE.
It does not parse the SIZE when added onto an existing TEXTUAL-CONVENTION.

Examples:

A working example would be a MIB object with:

SYNTAX DisplayString

Will generate the test:

if (((len >= 0) && (len <= 255)))
{
    err = SNMP_ERR_NOERROR;
}

Which is correct since it parses the SIZE for DisplayString from SNMPv2-TC.

But a MIB object with:

SYNTAX DisplayString (SIZE (0..64))

Will generate NO test, just:

err = SNMP_ERR_NOERROR;





    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?55960>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

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