lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #64769] LWIP_HAVE_INT64 Conditional Compilation Error


From: Ian Adams
Subject: [lwip-devel] [bug #64769] LWIP_HAVE_INT64 Conditional Compilation Error
Date: Wed, 11 Oct 2023 15:23:25 -0400 (EDT)

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

                 Summary: LWIP_HAVE_INT64 Conditional Compilation Error
                   Group: lwIP - A Lightweight TCP/IP stack
               Submitter: iadams
               Submitted: Wed 11 Oct 2023 07:23:23 PM UTC
                Category: apps
                Severity: 3 - Normal
              Item Group: Crash Error
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: 2.2.0


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Wed 11 Oct 2023 07:23:23 PM UTC By: Ian Adams <iadams>
In src/apps/snmp/snmp_mib2_tcp.c, there is an incorrectly placed preprocessor
directive that cause an error if LWIP_HAVE_INT64 is not defined. The erroneous
code starts at line 598

Current:
598   &SYNC_NODE_NAME(tcp_HCInSegs).node.node,
599 #if LWIP_HAVE_INT64
600   &SYNC_NODE_NAME(tcp_HCOutSegs).node.node,
601   &SYNC_NODE_NAME(tcp_ConnectionTable).node.node,
602 #endif

Should be:
#if LWIP_HAVE_INT64
  &SYNC_NODE_NAME(tcp_HCInSegs).node.node,
  &SYNC_NODE_NAME(tcp_HCOutSegs).node.node,
#endif
  &SYNC_NODE_NAME(tcp_ConnectionTable).node.node,

tcp_HCInSegs and tcp_HCOutSegs are defined only if LWIP_HAVE_INT64 is true in
lines 522-525 of the same file, so we get an error that tcp_HCInSegs has not
been declared.







    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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