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
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
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
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
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
Dirk Ziegelmeier
4bbed75cc4
Minor code layout cleanup in err.c and errno.h
2016-12-01 08:55:01 +01: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
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
aea872431c
Fix naming of some inet_addr_* macros in inet.h
...
From inet4_addr_* to inet_addr_* - inet_addr is a "known word", don't change it
2016-11-25 22:13:12 +01:00
Dirk Ziegelmeier
e8e853f2cb
Move ICMP6 protocol constants to include/lwip/prot/icmp6
2016-11-16 23:49:44 +01:00
Dirk Ziegelmeier
d026a3954a
Dual-stack fixes in raw/udp/tcp
...
bind() may change IP type when previous type is IPADDR_TYPE_ANY
connect() IP type must exactly match bind IP type
Use correct IPADDRx_ANY type when calling ip_route()
2016-11-16 23:30:19 +01:00
Dirk Ziegelmeier
1712b06a64
Work on dual-stack netconn
...
IPv6 netconns are created as IPADDR_TYPE_ANY raw/udp/tcp PCBs internally
bind, connect and sendto now accept IPv6 mapped IPv4 addresses or IPv4 addresses as argument
getaddr and receive functions now return IPv6 mapped IPv4 addresses instead of IPv4 addresses
This behavior is close to BSD socket API
2016-11-16 22:58:38 +01:00
Dirk Ziegelmeier
010f3550b6
Cleanup macro parameter names
2016-11-16 21:37:41 +01:00
Dirk Ziegelmeier
b70ddf7b54
Cleanup unmap_ipv6_mapped_ipv4() macro
2016-11-16 21:37:41 +01:00
Dirk Ziegelmeier
c1eb6d8aa4
Minor: Add macros to map/unmap IPv6 mapped IPv4 addresses
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
Joel Cunningham
6dc3a2108a
WND_SCALE: duplicate define check & doc cleanup
...
This commit cleans up a duplicate #if check for LWIP_WND_SCALE in init.c
which was already under #if LWIP_WND_SCALE
This commit also improves documentation for TCP_WND in the window scaling
case to communicate TCP_WND is always the calculated (scaled) window value,
not the value reported in the TCP header
Our developers were confused by having to set both the window and scaling
factor and only after studying the usage of TCP_WND throughout the code, was
it determined to be the calculated (scaled) window
2016-11-11 16:06:54 -06:00
Erik Ekman
b90682dc8b
Update email address
...
I am leaving Verisure at the end of the month.
2016-11-10 11:19:51 +01:00
Dirk Ziegelmeier
b9dc415178
master: Set version to 2.0.1
2016-11-10 09:59:05 +01:00
Sylvain Rochet
dde55c6c0e
PPP, IPCP: fix reset state before reconnecting
...
Commit 7df5496e7b revealed a regression introduced in commit 5a71509353
which broke IPCP reset state.
ask_for_local was set to 0 if ouraddr initial value is 0, if
ask_for_local was false go->ouraddr was cleared in reset callback,
commit 5a71509353 breaks it by removing this clearing. This regression
was silent because the whole ppp pcb runtime data was cleared before
reconnecting until commit 7df5496e7b which removed this giant clearing.
Fix it by reintroducing ask_for_local boolean value, with proper initial
value following what unused function ip_check_options do.
Fixes: 7df5496e7b ("PPP, rework initial/reconnect cleanup")
Fixes: 5a71509353 ("PPP, CORE, IPCP: removed useless ask_for_local boolean")
2016-11-05 22:07:04 +01:00
Dirk Ziegelmeier
132dafa3fc
Correct macro parentheses in tcpip_priv.h
2016-11-05 15:15:08 +01:00
Dirk Ziegelmeier
b6f32caaad
Fix inet_addr_to_ipaddr_p() macro
2016-11-05 10:51:06 +01:00
Joel Cunningham
d4384cfac4
Sockets: check external FD_SETSIZE against number of sockets
...
This commit adds a compiler check to verify an external FD_SETSIZE has
enough space to store the configured number of sockets
2016-11-03 08:59:19 -05:00
Dirk Ziegelmeier
37d5691b19
Fix bug #49321 : error.h missing opening "#ifdef __cplusplus"
...
Reported by Martin Kortmann
2016-10-12 07:37:39 +02:00
goldsimon
697be5c2c3
Make some pbuf functions take const pbuf pointers
2016-10-11 09:23:45 +02:00
Dirk Ziegelmeier
f6e27940bd
Make lwIP compile with clang -Wdocumentation -> several documentation fixes
2016-10-09 12:21:39 +02:00
Dirk Ziegelmeier
9cd555c51a
Minor: documentation typo fix
2016-10-09 10:24:26 +02:00
Dirk Ziegelmeier
4e74ae4bc9
Minor: documentation updates
2016-10-09 10:23:36 +02:00
Ari Suutari
70ccea9207
Make sys_restart_timeouts public also for !NO_SYS targets
2016-10-07 20:31:15 +02:00
goldsimon
69be49fdc3
Try to fix !defined(LWIP_PROVIDE_ERRNO)
2016-10-07 16:22:33 +02:00
goldsimon
2afc2a52d5
Fix comment on sys_mbox_new() (bug #49279 )
2016-10-06 13:25:11 +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
05419912e0
def.h: Provide hton* / ntoh* functions to users by default for compatibility (can be turned off)
...
Add note to UPGRADING document
2016-10-06 13:13:10 +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
ec236da972
Add comment for my last changes
2016-10-04 13:36:30 +02:00
Dirk Ziegelmeier
d1ed89b2e4
Fix accidental TAB in tftp_server.h
2016-10-04 10:31:43 +02:00
Dirk Ziegelmeier
b040544628
task #14150 : Add TFTP server from Logan Gunthorpe
...
Originally written by Logan Gunthorpe, modifications/fixes/IPv6 by Dirk Ziegelmeier
2016-10-03 09:47:41 +02:00
Dirk Ziegelmeier
b33070e0cf
Add documentation for bug #49139 : IGMP "All Systems" vs MLD "All Nodes" inconsistency
2016-10-01 21:13:05 +02:00
Dirk Ziegelmeier
df5a79966d
Fix bug #48886 : raw pcbs are not handled on netif address change
2016-10-01 17:13:33 +02:00
Dirk Ziegelmeier
149701b347
Fix bug #49218 : pbuf_clen() overflow as a result of tcp_write concatenation
...
Let pbuf_clen() return u16_t
2016-09-30 09:04:36 +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
40846260b5
Add comment about possible definitions for non-standard functions
2016-09-29 10:44:53 +02:00
Dirk Ziegelmeier
4144d54642
Fix implementation of lwip_itoa to take more parameters
2016-09-28 22:05:18 +02:00
Dirk Ziegelmeier
837b7b3f98
Fix comment in my last commit
2016-09-28 21:55:29 +02:00