goldsimon
b1d0fb5fa9
ping: fix some compile errors & warnings
8 years ago
Joel Cunningham
ddf21bd235
ping: guard ping_time with LWIP_DEBUG
...
ping_time is only used in LWIP_DEBUGF statements. When LWIP_DEBUG is
not defined (and by extension LWIP_DEBUGF is a no-op), this causes
compiler warning 550 with the ARMCC compiler:
'ping_time was set but never used'
9 years ago
goldsimon
10e2b02d13
Even more pbuf_header -> pbuf_add/remove_header replacements
9 years ago
goldsimon
058d98dbc3
Try to make gcc work without -Wno-address
9 years ago
Dirk Ziegelmeier
2233808623
Adapt to macro name change in "IPv4 mapped IPv6 addresses" in lwIP core
9 years ago
goldsimon
496023b93c
fixed compiling without LWIP_DEBUG & LWIP_ERROR and with LWIP_NOASSERT
9 years ago
sg
8d7a1fc801
apps/ping: need to include string.h for memset when PING_USE_SOCKETS==1
9 years ago
Dirk Ziegelmeier
ef96a6c582
Fix warning about uninitialized variable in ping.c (only shown at higher optimization levels)
9 years ago
Dirk Ziegelmeier
a6269211a8
Fix compile when IPv4 is disabled
9 years ago
Axel Lin
75551e6060
apps/ping: Fix build error if !LWIP_IPV6
...
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: 8ea25831dd ("simhost: remove ping implementation and use ping app instead")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
9 years ago
Dirk Ziegelmeier
8ea25831dd
simhost: remove ping implementation and use ping app instead
...
Improve ping app a bit
9 years ago
Dirk Ziegelmeier
5a62572813
Adapt to fixing the naming of some inet_addr_* macros in inet.h in lwIP core
9 years ago
Dirk Ziegelmeier
7cb5c17472
Adapt to lwip core renamings in inet.h: Consistently name some inet <-> ipaddr conversion macros
9 years ago
Dirk Ziegelmeier
cd1252fee9
Adapt some apps to new lwip_hton* and lwip_ntoh* functions
10 years ago
Erik Ekman
39cb335c89
ping: Fix build error after IPx_ADDR_ANYx rename
10 years ago
goldsimon
7f22dcd849
remove accidentally committed test code :-/
10 years ago
goldsimon
d2e34ec171
ping app: fixed setting receive timeout (depending on LWIP_SO_SNDRCVTIMEO_NONSTANDARD)
10 years ago
Dirk Ziegelmeier
de173c427a
Missed some files to adapt in my last commit
10 years ago
sg
0d924c4286
ping: fixed uninitialized variable 'fromlen' (for PING_USE_SOCKETS==1)
10 years ago
Dirk Ziegelmeier
1e4c710b16
Fix bug #47952 ping_recv() does not work with IPv4
10 years ago
sg
89d9d79140
More IPv4/IPv6 portability fixes
11 years ago
goldsimon
cf0f99bbc4
fixed some apps for IPv6-only
11 years ago
sg
44bb5fefc2
Adapt apps and win32 port to ip_addr_t changes (task #12722 : Improve IPv4/v6 address handling)
11 years ago
goldsimon
e4ec9053e9
bug #35874 reserved identifier violation, 2nd part
12 years ago
Simon Goldschmidt
b833b173cc
Fixed bug #35874 reserved identifier violation (removed leading underscores from header include guards)
12 years ago
Simon Goldschmidt
346d2f8c8a
ping app: restore original packet if packet is not eaten
13 years ago
Simon Goldschmidt
288914b5c0
ping: fixed input pbuf processing when using raw API (check p->tot_len before calling pbuf_header)
15 years ago
goldsimon
35b0b78242
Fix a compiler warning
16 years ago
goldsimon
672f01f4e3
Fixed compilation for PING_USE_SOCKETS==0
16 years ago
goldsimon
b83a115953
Fixed compilation warnings (missing casts, includes, etc.)
16 years ago
goldsimon
91cd7becdf
bug #29105 : Review printf formatters
16 years ago
goldsimon
cb7f0de9f8
Fixed bug #29068 : Fixed memory leak in ping_recv for PING_USE_SOCKETS==0
16 years ago
goldsimon
a6828003d8
Replaced struct ip_addr by typedef ip_addr_t to make changing the actual implementation behind the typedef easier.
16 years ago
goldsimon
899ae6a321
Use macros defined in ip_addr.h (some of them new) to work with IP addresses (preparation for bug #27352 - Change ip_addr from struct to typedef (u32_t) - and better code).
16 years ago
goldsimon
cceacccce6
Adapted to changed inet.h/ip_addr.h/def.h, fixed warnings
16 years ago
goldsimon
faf826ad6d
bug #26523 : Compiler Warnings
16 years ago
goldsimon
4c733650e6
Adapted to changed timer implementation
16 years ago
goldsimon
9e977b7efc
Default setting for PING_USE_SOCKETS was accidentally inverted
17 years ago
goldsimon
c813c2f691
Make socket/raw api decision configurable
17 years ago
goldsimon
15d75600bb
Checked in patch #6760 (ping calculates incorrect checksum) - slightly modified
17 years ago
goldsimon
ccb8913d65
Add casts where appropriate to fix conversion warnings
17 years ago
fbernon
73f3e94486
ping.h, ping.c: Minor change: allow to use ping sample with NO_SYS=1. You need to call the ping_send_now() in your application.
18 years ago
goldsimon
754453fd22
Remove unused arg warning
18 years ago
fbernon
b2c2a407cf
contrib/apps/ping.c: Fix bug #22530 "api_msg.c's recv_raw() does not consume data", and the ping sample (with LWIP_SOCKET=1, the code did the wrong supposition that lwip_recvfrom returned the IP payload, without the IP header).
18 years ago
fbernon
4bad9aa105
Minor changes: add a return value to ping_send with socket api.
18 years ago
fbernon
0ed511d380
Minor changes in contrib folder: fix some warnings
18 years ago
fbernon
e3105fd059
Minor changes in ping sample: update "ping_target" before each ping_send.
18 years ago
fbernon
bf55cf26f1
Minor changes: don't presume the netif_default is always initialized in some apps (avoid crashs).
19 years ago
fbernon
10fedbc940
Minor changes (regroup code in ping_prepare_echo).
19 years ago
goldsimon
15bed9a352
if using with LWIP_SOCKET=0, may not create a new thread as that leads to concurrent access to the core -> use sys_timeout instead!!!
...
send additional data in ping (some hosts don't answer ping packets without additional data), set ICMP code to 0
19 years ago