lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #9515] ip4_reass: Fix build error when IP_REASS_CHEC


From: Axel Lin
Subject: [lwip-devel] [patch #9515] ip4_reass: Fix build error when IP_REASS_CHECK_OVERLAP=0
Date: Wed, 13 Dec 2017 07:21:32 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

URL:
  <http://savannah.nongnu.org/patch/?9515>

                 Summary: ip4_reass: Fix build error when
IP_REASS_CHECK_OVERLAP=0
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: axellin
            Submitted on: Wed 13 Dec 2017 12:21:31 PM UTC
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

The goto freepbuf code path is also used when IP_REASS_CHECK_OVERLAP=0.
Thus remove #if IP_REASS_CHECK_OVERLAP around the freepbuf label to fix
below build error:

cc -g -Wall -DLWIP_DEBUG -pedantic -Werror -Wparentheses -Wsequence-point
-Wswitch-default -Wextra -Wundef -Wshadow -Wpointer-arith -Wcast-qual
-Wc++-compat -Wwrite-strings -Wold-style-definition -Wcast-align
-Wmissing-prototypes -Wredundant-decls -Wnested-externs -Wunreachable-code
-Wuninitialized -Wlogical-op -I. -I../../.. -I../../../../lwip/src/include
-I../../../ports/unix/port/include -I../../../../mbedtls/include
-Wno-redundant-decls -DLWIP_HAVE_MBEDTLS=1 -c
../../../../lwip/src/core/ipv4/ip4_frag.c
../../../../lwip/src/core/ipv4/ip4_frag.c: In function
‘ip_reass_chain_frag_into_datagram_and_validate’:
../../../../lwip/src/core/ipv4/ip4_frag.c:412:7: error: label ‘freepbuf’
used but not defined
       goto freepbuf;
       ^~~~




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 13 Dec 2017 12:21:31 PM UTC  Name:
0001-ip4_reass-Fix-build-error-when-IP_REASS_CHECK_OVERLA.patch  Size: 2KiB  
By: axellin

<http://savannah.nongnu.org/patch/download.php?file_id=42636>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9515>

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




reply via email to

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