patchlwIP - A Lightweight TCP/IP stack - Patches: patch #9182, apps/ping: Fix build error if...

 
 

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

patch #9182: apps/ping: Fix build error if !LWIP_IPV6

Submitter:  Axel Lin <axellin>
Submitted:  Sun 04 Dec 2016 10:32:58 AM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Planned Release:  None

Mon 05 Dec 2016 11:31:30 AM UTC, comment #1: 

Applied, thanks for the patch!

Dirk Ziegelmeier <dziegel>
Group administrator
Sun 04 Dec 2016 10:32:58 AM UTC, original submission:  

Fix below build error if !LWIP_IPV6:

../../../apps/ping/ping.c: In function ‘ping_send’:
../../../apps/ping/ping.c:134:25: error: implicit declaration of function ‘ip6_addr_isipv6mappedipv4’ [-Werror=implicit-function-declaration]
   if(IP_IS_V6(addr) && !ip6_addr_isipv6mappedipv4(ip_2_ip6(addr))) {
                         ^~~~~~~~~~~~~~~~~~~~~~~~~
../../../apps/ping/ping.c:134:3: error: nested extern declaration of ‘ip6_addr_isipv6mappedipv4’ [-Werror=nested-externs]
   if(IP_IS_V6(addr) && !ip6_addr_isipv6mappedipv4(ip_2_ip6(addr))) {
   ^~
../../../apps/ping/ping.c:134:51: error: implicit declaration of function ‘ip_2_ip6’ [-Werror=implicit-function-declaration]
   if(IP_IS_V6(addr) && !ip6_addr_isipv6mappedipv4(ip_2_ip6(addr))) {
                                                   ^~~~~~~~
../../../apps/ping/ping.c:134:3: error: nested extern declaration of ‘ip_2_ip6’ [-Werror=nested-externs]
   if(IP_IS_V6(addr) && !ip6_addr_isipv6mappedipv4(ip_2_ip6(addr))) {
   ^~
cc1: all warnings being treated as errors

Fixes: 8ea25831dd7c ("simhost: remove ping implementation and use ping app instead")


This patch is against lwip-contrib tree.

Axel Lin <axellin>
Group Member

 

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

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dziegel (Posted a comment)
  • -email is unavailable- added by axellin (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.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-12-05 dziegel StatusNone Done
        Open/ClosedOpen Closed
    2016-12-04 axellin Attached File- Added 0001-apps-ping-Fix-build-error-if-LWIP_IPV6.patch, #39141

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code