David van Moolenbroek
002e077dbd
ethip6: forward correct error code
...
On failure, nd6_get_next_hop_entry() returns an ERR_ type negative
error code. ethip6_output() erroneously assumed that that error would
always be ERR_MEM, even though it may also be ERR_RTE in practice.
With this patch, ethip6_output() simply forwards the returned error.
2016-12-14 08:29:36 +01:00
sg
9d199a6d72
netif_create_ip6_linklocal_address(): use macros to assign address state to ensure callbacks are triggered; netif_add_ip6_address(): only overwrite invalid addresses, not tentative addresses
2016-12-13 21:54:49 +01:00
Pradip De
86b01e4f29
Added LWIP_HOOK_ETHIP6_GET_GW()
...
Signed-off-by: sg <goldsimon@gmx.de>
2016-12-13 21:53:07 +01:00
Dirk Ziegelmeier
1c184da615
Update changelog for LWIP_NETIF_TX_SINGLE_PBUF
2016-12-13 18:48:26 +01:00
Dirk Ziegelmeier
e5f9f187ad
Continue to fix incorrect casts via size_t for some platforms
...
Now also for casts:
- to remove alignment warnings
- casts between pointers and ints
2016-12-12 10:17:33 +01:00
Dirk Ziegelmeier
f2a5aa2866
Fix bug #49827 : wrong cast to size_t on 16-bit x86 architecture
...
I hope I caught all of them.
TODO: Same for casts to get rid of alignment warnings, these are also casts via size_t
2016-12-12 10:07:00 +01:00
Dirk Ziegelmeier
7a1b38db6e
Minor: Save an #ifdef in ip4_frag.c
2016-12-09 21:26:53 +01:00
Dirk Ziegelmeier
26e02e84a6
Fix bug #48963 : ip6_frag does not support LWIP_NETIF_TX_SINGLE_PBUF
...
Implemented.
2016-12-09 21:26:21 +01:00
Dirk Ziegelmeier
8347d3b623
Try to fix compile warning with GCC under Linux ("large integer implicitly truncated to unsigned type")
2016-12-09 19:56:29 +01:00
Sylvain Rochet
a83c4e0897
PPP: fix build warning on wrong cast from void* to unsigned long
...
ppp/utils.c: In function 'ppp_vslprintf':
ppp/utils.c:251:12: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
val = (unsigned long) va_arg(args, void *);
^
This is because a void* type is casted into an unsigned long type,
which obviously isn't correct on LLP64 systems such as Windows.
Actually, we are not using %p, thus we remove %p support completely
instead of trying to fix the issue in unused code.
2016-12-09 14:25:47 +01:00
goldsimon
ac4d994249
mdns.c: use group initializer constants from prot/dns.h
2016-12-09 13:10:12 +01:00
goldsimon
f308694dd4
Revert "mdns.c: use constants from dns.h/.c"
...
This reverts commit 0e883bbbc5
.
2016-12-09 13:08:00 +01:00
goldsimon
0e883bbbc5
mdns.c: use constants from dns.h/.c
2016-12-09 12:49:49 +01:00
goldsimon
5774fdfe75
dns: added one-shot multicast DNS queries
2016-12-09 09:20:46 +01:00
Dirk Ziegelmeier
85817e7611
Minor documentation update about IP_ADDR_ANY
2016-12-08 16:56:19 +01:00
Dirk Ziegelmeier
a2ad9d36ca
Improve documentation: Refer to compiler/platform abstraction in NO_SYS mode description
2016-12-08 15:25:38 +01:00
Dirk Ziegelmeier
33bdf9fa76
Doxygen: Fix project description text
2016-12-08 13:38:17 +01:00
Dirk Ziegelmeier
55fd567a84
Adapt doxygen docs version number
2016-12-08 13:37:01 +01:00
Dirk Ziegelmeier
b359b8c3e0
Minor documentation improvement
2016-12-08 13:35:34 +01:00
Dirk Ziegelmeier
bb6df52ed5
Fix doxygen parsing in my last commit
2016-12-08 12:47:30 +01:00
Dirk Ziegelmeier
8a9ab9968c
Improve documentation: add compiler abstraction macros to doxygen docs
2016-12-08 12:45:21 +01:00
Dirk Ziegelmeier
a420d2530f
arch.h: Add hint for struct packing #defines on GCC/clang
2016-12-08 11:13:51 +01:00
Dirk Ziegelmeier
89cb7b7aa1
Try to remove #include <stdlib.h> from many files. Does not seem necessary any more and might cause problems when porting lwIP.
2016-12-08 11:05:01 +01:00
goldsimon
9c3bbcf4e6
removed old disabled code
2016-12-08 10:24:56 +01:00
Dirk Ziegelmeier
f446194c8a
pppos.c: Use arch.h to get size_t instead of including stddef.h
2016-12-07 22:29:24 +01:00
Dirk Ziegelmeier
1dd563a0ae
arch.h: Implement possibility to provide own header for size_t, default is stddef.h
2016-12-07 22:27:57 +01:00
Dirk Ziegelmeier
aae0fc4908
Use new IPv6 init macro in netif.c
2016-12-07 22:19:37 +01:00
Dirk Ziegelmeier
5bb83301dd
Add macro to init an IPv6 address with U32 in host byte order
2016-12-07 22:19:16 +01:00
Dirk Ziegelmeier
0ca82df062
Cleanup byte order handling a bit.
...
- Create LWIP_MAKEU32(a,b,c,d) to create an U32 value from bytes
- Use PP_HTONL() in some macros to emphasize network byte order conversion
2016-12-07 20:18:58 +01:00
goldsimon
ff3656f4f5
Added improved macros for ip address initialization: IPADDR4_INIT_BYTES(), IPADDR6_INIT_HOST() and IP4_ADDR_MAKEU32()
2016-12-07 13:06:07 +01:00
goldsimon
b31b0c8148
remove bogus LWIP_MAKE_U16() define and use PP_NTOHS() in ip4.c instead
2016-12-07 12:44:57 +01:00
goldsimon
c87855423c
DNS: added compile-time check for some defines to fit into an u8_t (bug #49658 )
2016-12-07 09:09:45 +01:00
Dirk Ziegelmeier
e00a131160
Fix bug #49778 : sntp_stop does not cancel all timers
...
Patch by Ari Suutari
2016-12-06 20:29:12 +01:00
Dirk Ziegelmeier
cb29a49a64
Update CHANGELOG
2016-12-06 11:39:03 +01:00
Axel Lin
795acf020e
lwiperf: Simplify #if LWIPERF_CHECK_RX_DATA guard
...
The variable i is equal to q->len after exit the for loop.
Check the received data should not change the logic of update packet_idx.
So let's simplify the code a bit.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2016-12-06 11:36:25 +01:00
Dirk Ziegelmeier
cc25c2634b
Cleanup: move struct ip6_addr_packed and ip6_addr_p_t type to prot/ip6.h - these types are used in prot/ip6.h and prot/mld6.h
2016-12-06 09:36:36 +01:00
Dirk Ziegelmeier
1687721600
Fix compile when IPv4 is disabled
2016-12-05 22:01:58 +01:00
Dirk Ziegelmeier
a6bc422729
Move declaration of struct ip4_addr_packed and ip4_addr_p_t to prot/ip4.h
...
The types are used in structs declared in ip4.h.
2016-12-05 21:53:43 +01:00
Axel Lin
92183bb354
icmp: Increment mib2.icmpintimeexcds counter if got ICMP_TE
...
Increment mib2.icmpintimeexcds rather than mib2.icmpindestunreachs if got ICMP_TE.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2016-12-05 12:30:09 +01:00
Sylvain Rochet
bcaf2f08aa
PPP, PPPoS: fix memory leak when disconnecting if there are remaining input bytes
...
Art says:
pppos_input() can call ppp_input() which can call pppos_disconnect() to
disconnect the interface. However, it will continue to read in
characters and allocate a pbuf from the PBUF_POOL and keep it in
pppos->in_head and in_tail. When a re-connect happens and pppos_connect()
is called, this pppos->in_head and in_tail are zeroed, hence a memory
leak. (This happens with PPP_INPROC_IRQ_SAFE not defined.)
A fix would be inside pppos_input() to break out of the loop inputting
characters after calling ppp_input() if pppos->open == 0. Note that
the loop is not even entered if pppos->open == 0.
ppp_input(ppp, inp);
if(pppos->open == 0) //get out if they disconnected
break;
Fix it in a similar way which doesn't add new code by moving the
existing pppos->open check inside the byte loop.
2016-12-03 16:12:51 +01:00
Dirk Ziegelmeier
4bbed75cc4
Minor code layout cleanup in err.c and errno.h
2016-12-01 08:55:01 +01:00
Joel Cunningham
7d0aeaf539
Doc: correct minor mis-spelling in sys_arch.txt
...
This corrects a minor mis-spelling where "by" was mis-spelled as "ny"
2016-11-30 10:28:38 -06:00
Joel Cunningham
f28e63b2a3
Add netifapi macros for set link up/down
...
This commit extends the netifapi macros to support netif_set_link_up
and netif_set_link_down
2016-11-30 08:49:23 -06:00
Joel Cunningham
7f48289fcd
Increment ip.drop when dropping due to NULL netif
...
This commit increments the ip.drop statistic when an IP packet is
dropped due to no matching netif found and forwarding is disabled
This adds parity to the other places where mib2.ipinaddrerrors and
mib2.ipindiscards are incremented which also increment ip.drop
2016-11-30 08:49:22 -06:00
Axel Lin
12e35c4c12
mdns: Fix assertion message in mdns_resp_add_service_txtitem()
...
So we know which function emits the assertion.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2016-11-30 11:36:05 +01:00
Dirk Ziegelmeier
182d7c138a
Add #include <stddef.h> to a central place (arch.h) instead of #including it in several other files throughout lwip since size_t is needed in many places
...
See http://lwip.100.n7.nabble.com/Issue-in-arch-h-for-lwIP-2-0-0-td27948.html
2016-11-30 07:43:59 +01:00
Dirk Ziegelmeier
47fd67a35c
Remove TODO comments and one check from sockets.c indicating IPV6_V6ONLY socket option handling does not work
2016-11-28 15:56:59 +01:00
goldsimon
b934c3f471
fixed bug #49726 : setsockopt() set TCP_NODELAY TCP_KEEPALIVE ... with a listen state TCP will crash
2016-11-28 15:50:59 +01:00
goldsimon
2a882b6387
minor: fixed indent
2016-11-28 12:54:17 +01:00
goldsimon
ca9342c549
fixed bug #49725 (send-timeout: netwonn_write() can return ERR_OK without all bytes being written)
2016-11-28 12:51:45 +01:00