buglwIP - A Lightweight TCP/IP stack - Bugs: bug #64769, LWIP_HAVE_INT64 Conditional...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #64769: LWIP_HAVE_INT64 Conditional Compilation Error

Submitter:  Ian Adams <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 Planned Release:  None
lwIP version:  2.2.0

Wed 11 Oct 2023 07:23:23 PM UTC, original submission:  

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.

Ian Adams <iadams>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by iadams (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code