Dirk Ziegelmeier
b70ddf7b54
Cleanup unmap_ipv6_mapped_ipv4() macro
2016-11-16 21:37:41 +01:00
Dirk Ziegelmeier
1dd97e7d53
sockets.c, lwip_sendto(): Remove check whether IP address matches socket type. Is checked in lower layers anyway.
2016-11-16 21:37:41 +01:00
Dirk Ziegelmeier
2f37dc0606
api_msg.c: Partly add support for IPv6 mapped IPv4 addresses
...
- lwip_netconn_do_getaddr(): Convert IPv4 addresses to IPv6 mapped IPv4 addresses
- lwip_netconn_do_send(): Support IPv6 mapped IPv4 addresses
- Not done: connect(), bind()
2016-11-16 21:37:41 +01:00
Dirk Ziegelmeier
ee7a2f346c
inet.h: Consistently name some inet <-> ipaddr conversion macros
...
They operate on ip4_addr_t, not on ip_addr_t
This should be clearly visible in their names
2016-11-16 20:30:13 +01:00
Dirk Ziegelmeier
fdcd8f6faf
Fix bug #49578 : lwip_socket_drop_registered_memberships API may not work with LWIP_SOCKET_OFFSET
2016-11-11 11:13:25 +01:00
Axel Lin
4dffe521a3
api_msg.c: Trivial code cleanup
...
Slightly improve readability by testing apiflags with NETCONN_DONTBLOCK.
Also remove an empty else clause.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2016-10-14 09:20:10 +02:00
sg
0a343948d9
Fix netconn/socket race condition when receiving RST while waiting on recvmbox
2016-10-10 21:35:07 +02:00
Dirk Ziegelmeier
f6e27940bd
Make lwIP compile with clang -Wdocumentation -> several documentation fixes
2016-10-09 12:21:39 +02:00
goldsimon
69be49fdc3
Try to fix !defined(LWIP_PROVIDE_ERRNO)
2016-10-07 16:22:33 +02:00
Axel Lin
740182de3c
err: Fixup error code range checking in err_to_errno
...
This also fixes build error in non-debug build because err_strerr is
guarded by LWIP_DEBUG.
Fixes: a1c0a0185bc0 ("bug #48823 : posix errors should be removed from arch.h (to new file 'lwip/errno.h'))"
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2016-10-07 07:41:21 +02:00
Dirk Ziegelmeier
ad3530ee10
One more compile fix in err.c
2016-10-06 20:20:07 +02:00
Dirk Ziegelmeier
86a92543de
Try to fix unix build after Simon's errno changes (need sys_arch.h)
2016-10-06 16:01:32 +02:00
goldsimon
a1c0a0185b
bug #48823 : posix errors should be removed from arch.h (to new file 'lwip/errno.h')
2016-10-06 13:21:00 +02:00
Dirk Ziegelmeier
13fb616bb2
Cleanup hton*/ntoh* function handling and platform abstraction
...
Let lwip use functions/macros prefixed by lwip_ internally to avoid naming clashes with external #includes.
Remove over-complicated #define handling in def.h
Make functions easier to override in cc.h. The following is sufficient now (no more LWIP_PLATFORM_BYTESWAP):
#define lwip_htons(x) <your_htons>
#define lwip_htonl(x) <your_htonl>
2016-10-06 12:55:57 +02:00
Dirk Ziegelmeier
95754ba95a
Another try to fix bug #49264 : Crash Error when LWIP_SOCKET_OFFSET is in use
2016-10-04 14:05:56 +02:00
goldsimon
cdc97d2779
Correctly fix bug #49209 : netconn_drain() fails to handle 'netconn_aborted' pointer
2016-10-04 12:35:51 +02:00
goldsimon
d9c6badc55
Revert "Fixed bug #49209 : netconn_drain() fails to handle 'netconn_aborted' pointer"
...
This reverts commit 0e2354e658d9dc193d60048a8394517a41ca64ff.
2016-10-04 12:35:50 +02:00
Dirk Ziegelmeier
30251b1404
Fix bug #49264 : Crash Error when LWIP_SOCKET_OFFSET is in use
...
Handle LWIP_SOCKET_OFFSET in lwip_socket_drop_registered_memberships, lwip_socket_unregister_membership and lwip_socket_register_membership.
2016-10-04 12:34:53 +02:00
Dirk Ziegelmeier
682b82aad8
Improve documentation: Some words about multiple execution contexts in lwIP
2016-09-29 12:51:45 +02:00
Dirk Ziegelmeier
633696c153
Implement consistent IPx_ADDR_ANYx macro naming between IPv4 and IPv6
...
- rename IP4_ADDR_ANY to IP4_ADDR_ANY4
- IP4_ADDR_ANY (= IP_ADDR_ANY) is now IPv4 any address in ip_addr_t format
2016-09-28 12:56:57 +02:00
goldsimon
0e2354e658
Fixed bug #49209 : netconn_drain() fails to handle 'netconn_aborted' pointer
2016-09-28 12:53:07 +02:00
Dirk Ziegelmeier
aeae4e91db
Fix compile when UDP is disabled
2016-09-06 12:30:15 +02:00
Axel Lin
ab8a1a0430
netbuf: Fixup a copule LWIP_ERROR messages
...
Fix trivial copy-n-paste mistake.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Dirk Ziegelmeier <dirk@ziegelmeier.net>
2016-08-31 12:23:12 +02:00
Dirk Ziegelmeier
9078f31544
Minor: memcpy -> MEMCPY / SMEMCPY
2016-08-30 21:56:09 +02:00
sg
452f5d6296
fix tcpip.c for LWIP_TIMERS==0
2016-08-25 21:15:26 +02:00
Axel Lin
42c193821c
netbuf: Use memset to zero the allocated memory for netbuf_new
...
Use memset to zero the allocated memory rather than explicitly init each field.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: goldsimon <goldsimon@gmx.de>
2016-08-23 08:59:11 +02:00
goldsimon
14fb48cd7a
minor: whitespace cleanups
2016-08-19 09:41:34 +02:00
Dirk Ziegelmeier
8eb9db18a2
Reduce usage of netif/ethernet.h header, mostly lwip/prot/ethernet.h is sufficient
2016-08-19 08:36:00 +02:00
Dirk Ziegelmeier
c61c8f3766
Use udp_get_multicast_ttl/udp_set_multicast_ttl accessors where applicable
2016-08-16 08:08:06 +02:00
Dirk Ziegelmeier
8d07629b71
Some documentation cleanups and include more comments that have been already in code into doxygen docs
2016-08-07 10:05:34 +02:00
Dirk Ziegelmeier
ccc830c99c
Work on lwIP documentation
2016-07-27 13:03:36 +02:00
Dirk Ziegelmeier
6b524367a3
Documentation review with Simon, minor changes
2016-07-27 08:05:38 +02:00
Dirk Ziegelmeier
4a7d07a2e0
Document netdb API, add socket functions implemented by lwip to documentation, just for reference
2016-07-26 22:06:54 +02:00
Dirk Ziegelmeier
c7e20150f0
Update and restructure docs of some lwip core functions
2016-07-26 19:42:16 +02:00
Dirk Ziegelmeier
8a9de94b1f
Restructure documentation. Create two top-level sections for thread-safe and callback-style APIs.
2016-07-26 18:39:53 +02:00
Dirk Ziegelmeier
8140c77d7d
Document Socket API in doxygen module style
2016-07-26 18:26:58 +02:00
Dirk Ziegelmeier
dc0859b8d1
Document DHCP and AUTOIP API in doxygen module style
2016-07-26 18:10:05 +02:00
Dirk Ziegelmeier
9c10daba93
Document netif API in doxygen module style
2016-07-26 17:53:07 +02:00
Dirk Ziegelmeier
0fea2bc02e
Document netconn API in doxygen module style
2016-07-26 17:40:55 +02:00
sg
f98c3dd4b5
LWIP_MPU_COMPATIBLE: help dumb compilers to see 'msg' is used (MSVC :(
2016-07-21 21:54:13 +02:00
Dirk Ziegelmeier
7037b340c1
Move etharp to core/ipv4, which is a more appropriate place for it
2016-07-19 09:29:51 +02:00
Dirk Ziegelmeier
087ecab891
Add some comments to places where we cast through a void* to get rid of alignment warnings
2016-07-07 21:56:43 +02:00
Dirk Ziegelmeier
4b136d631a
Fix (correct) clang warning about increased alignment requirements in netifapi.c and pppapi.c
2016-07-05 08:59:25 +02:00
Dirk Ziegelmeier
8dc77ef558
doxygen updates - include IPv6 in documentation. Exclude include/netif/ppp/polarssl.
...
Convert TODO -> @todo
2016-06-22 20:18:23 +02:00
goldsimon
344de0e119
fixed comments on netconn_shutdown to prevent using full-duplex wording...
2016-05-24 10:01:03 +02:00
Dirk Ziegelmeier
6c8c3fd48c
Fix more doxygen errors
2016-05-23 21:38:18 +02:00
Dirk Ziegelmeier
90a656ed78
Fix several doxygen errors all over the code
2016-05-23 21:18:16 +02:00
goldsimon
c6949d88d9
fixed unused variable warning in tcpip_api_call() for certain configurations
2016-05-11 09:43:06 +02:00
Dirk Ziegelmeier
30e6f908ee
Fix bug #47512 : MPU_COMPATIBLE may fail on empty pool
2016-04-27 21:14:17 +02:00
Dirk Ziegelmeier
e653ac9db7
Remove netconn_recved() call - it was only needed in sockets implementation and contributed to bug #47512
...
Simon and I think it can be removed - the receive window handling get a little less precise, but that should be OK for a lightweight stack.
Receive window is now updated with the whole pbuf size (instead of only count of read bytes from socket) as soon as socket implementation gets a pbuf from netconn layer.
Work on bug #47512 : MPU_COMPATIBLE may fail on empty pool (still not finished)
2016-04-27 21:02:16 +02:00