Dirk Ziegelmeier
1c91118f4a
Add DHCP ports to iana.h
2017-08-08 11:46:15 +02:00
Dirk Ziegelmeier
0eb8d19e82
Move several port number #defines to iana.h
2017-08-08 11:37:08 +02:00
Dirk Ziegelmeier
5193844ac4
iana.h: Prefix #defines with LWIP_
2017-08-08 11:21:11 +02:00
goldsimon
51c4bc55a0
iana.h: added RFC
2017-08-07 22:07:09 +02:00
Dirk Ziegelmeier
629ec98dd8
Work on task #14587 : Create common header for IANA assigned numbers
...
Create include/lwip/prot/iana.h
Move DHCP and ARP #define in there
2017-08-07 21:06:19 +02:00
Dirk Ziegelmeier
42fd01547d
Fix bug #51681 : mqtt: cannot free client
...
Add free function
2017-08-07 20:43:25 +02:00
goldsimon
1981cf39d1
opt.h: improved hooks documentation by adding function signatures for all hooks
2017-08-04 21:55:10 +02:00
goldsimon
cd80e38db8
Clean up DHCP a bit: no need keep msg_out and msg_in as members in struct dhcp
...
They are used in a call stack only (p_out and options_out_len as well)
2017-08-04 21:26:29 +02:00
goldsimon
65ac160e99
Wconversion-related cleanup: split pbuf_header(s16_t) into pbuf_add_header(size_t) and pbuf_remove_header(size_t)
...
The new functions both take size_t as increment/decrement argument instead of s16_t (which needed to be range-checked before conversion everywhere) - in most places, the direction (increment or decrement) is known anyway, so no need to encode it in a sign bit
2017-08-04 13:16:18 +02:00
Dirk Ziegelmeier
006bb84368
Fix bug #50883 : struct eth_addr alignment does not fit with ETHADDR16_COPY
...
... by simply removing ETHADDR16_COPY since noone advocated to keep it
2017-07-30 17:48:16 +02:00
goldsimon
a6432c46aa
Clarify LWIP_NUM_SYS_TIMEOUT_INTERNAL regarding PPP and make the number of required timeouts per ppp_pcb configurable as we don't really know it right now ;-)
2017-07-27 20:50:40 +02:00
goldsimon
45fb7d7220
Give struct fs_file::pextension its own type & improve its documentation (see also task #14567 )
2017-07-26 22:16:26 +02:00
Dirk Ziegelmeier
b5fe13d818
Don't declare SNMP_ASN1_TYPE_COUNTER64 on systems that do not have uint64_t to avoid runtime problems
2017-07-26 09:33:15 +02:00
Dirk Ziegelmeier
3ec8b22f14
snmp_core.h: Add room for u64 values in union snmp_variant_value
2017-07-26 09:06:13 +02:00
goldsimon
0ee6ad0a3a
Removed LWIP_SOCKET_SET_ERRNO - errno is always set - if it doesn't exist, it must be provided by the port
2017-07-25 21:54:10 +02:00
Matthias Hofmann
64bceabc03
Increase SNTP_RECV_TIMEOUT to be conform with RFC.
...
Signed-off-by: goldsimon <goldsimon@gmx.de>
2017-07-25 20:52:25 +02:00
goldsimon
6d51b3ff37
Restructure compatibility headers to fix bug #51463
2017-07-20 22:11:55 +02:00
Our Air Quality
f934ca7a03
[PATCH] Deprecate sys_arch_sem_wait and sys_arch_mbox_fetch returning the time waited
...
These are now defined to return != SYS_ARCH_TIMEOUT on success rather than the time
waiting. The returned times were unused by lwip and this simplifies at
least some implementations.
Signed-off-by: goldsimon <goldsimon@gmx.de>
2017-07-20 22:04:34 +02:00
Dirk Ziegelmeier
328134fdba
Fix two -Wconversion warnings
2017-07-15 10:25:45 +02:00
Dirk Ziegelmeier
d62d3edc08
Update tcpip.c/.h documentation
2017-07-12 11:08:35 +02:00
Dirk Ziegelmeier
30a2283993
Move netifapi private definitions to priv/api_msg.h
2017-07-12 10:56:42 +02:00
Dirk Ziegelmeier
c08459490d
Update netifapi documentation
2017-07-12 10:48:43 +02:00
Dirk Ziegelmeier
66df84a5b5
Map dhcp_release_and_stop() to netifapi, mark old functions as deprecated
2017-07-12 10:43:40 +02:00
goldsimon
f3c860958f
-Wconversion (still far from finished) and other minor compilation fixes...
2017-07-06 22:47:11 +02:00
goldsimon
866d6c8637
Make PBUF_LINK_ENCAPSULATION_HLEN default signed (unsigned would be OK, but too many defines are signed already and mixing them gets bad)
2017-07-06 20:26:24 +02:00
goldsimon
2594f1a423
Try to fix the build: ip_globals.current_ip6_header cannot really be const :(
2017-07-06 11:50:02 +02:00
goldsimon
694fc7e472
work on -Wconversion...
2017-07-06 11:22:38 +02:00
goldsimon
9d61e36466
work on -Wconversion, fixed some const bug in ip4
2017-07-06 09:01:03 +02:00
goldsimon
44f7a3cb0d
work on -Wconversion...
2017-07-05 22:31:58 +02:00
goldsimon
ba6b504cc0
work on -Wconversion...
2017-07-05 12:20:26 +02:00
goldsimon
debf34ff9c
work on -Wconversion...
2017-07-04 21:26:30 +02:00
goldsimon
2b2fa0ed71
Ensure SACKs are deleted when pbuf_free_ooseq() frees ooseq pbufs (because of memory shortage)
2017-07-04 20:10:23 +02:00
goldsimon
1a1c360f1d
Fixed LWIP_TCP_SACK_VALID and its usage
2017-07-03 21:41:34 +02:00
goldsimon
6796bcf7ad
Cleaned up a bit after merging SACK_OUT support (mostly coding style)
2017-07-03 21:20:56 +02:00
Jakub Schmidtke
b1a3c37c3c
Partial SACK (RFC 2018) support
...
Adds partial support for selective acknowledgements (RFC 2018).
This change makes lwIP negotiate SACK support, and include SACK
data in outgoing empty ACK packets. It does not include it
in outgoing packets with data payload.
It also does not add support for handling incoming SACKs.
Signed-off-by: goldsimon <goldsimon@gmx.de>
2017-07-03 20:17:30 +02:00
Dirk Ziegelmeier
94beb4eddf
Make inet_chksum.c compile with -Wconversion
2017-06-30 22:17:32 +02:00
goldsimon
41177cfd1c
work on -Wconversion...
2017-06-30 22:10:16 +02:00
Joel Cunningham
229c9edad2
tcp: switch tcpflags_t to u16_t for all cases (bug #51326 )
...
This changes tcpflags_t to be a u16_t for all cases. The TCP Appropriate
Byte Count support added a new flag that used a bit past 8 and since this
flag is now required, tcpflags_t can no longer be a u8_t
This does not increase the size of struct tcp_pcb due to padding that
already existed (see bug #51326 for details)
Signed-off-by: goldsimon <goldsimon@gmx.de>
2017-06-28 21:47:33 +02:00
goldsimon
5b15234833
work on -Wconversion...
2017-06-25 23:01:57 +02:00
Matthias Hofmann
c12aa3fb40
Remove double definition of SNTP_SERVER_DNS.
...
Signed-off-by: goldsimon <goldsimon@gmx.de>
2017-06-23 21:05:30 +02:00
Dirk Ziegelmeier
d02a73c285
Replace usages of tcpip_callback_with_block(foo, bar, 0) with tcpip_try_callback()
2017-06-22 08:14:02 +02:00
goldsimon
b4921dc401
Ensure that all parts of an ip_addr are written for the various set commands when setting an ipv4 address in dual-stack configurations (for security & compiler warning reasons :)
2017-06-22 07:48:38 +02:00
goldsimon
c9e7e56389
Fix IPv4-only and IPv6-only after again last commits
2017-06-21 22:01:19 +02:00
goldsimon
c094fcc086
Try to make gcc work without -Wno-address
2017-06-21 16:07:36 +02:00
Dirk Ziegelmeier
68d36f19f0
Implement LWIP core locking support in tcpip_callback_with_block()
...
Created two new functions for API cleanup:
tcpip_callback() that blocks until message is posted, cannot be called from IRQs.
tcpip_try_callback() that does not block and just tries to post a message. Can be called from IRQs.
Add compatibility #define tcpip_callback_with_block() that maps to these two functions according to "block" parameter.
2017-06-21 13:42:54 +02:00
goldsimon
79d69ce526
Slightly optimize pbuf_alloc: encode 'header offset' in 'enum pbuf_layer' instead of switch/case (which was duplicated in pbuf_alloc and pbuf_alloced_custom)
2017-06-21 13:37:05 +02:00
goldsimon
fc23257ca0
Fix unused arg from last patch the *real* lwIP way ;-)
2017-06-20 20:13:31 +02:00
Dirk Ziegelmeier
b92bcc5f02
Fix unused arg from last patch the lwIP way
2017-06-19 14:11:35 +02:00
Our Air Quality
6e62b6090b
Silence some unsed variable warnings.
2017-06-19 14:09:07 +02:00
Dirk Ziegelmeier
c923d00340
Fix bug #51238 : LWIP_ARRAYSIZE() can't be used on lwip_cyclic_timers
...
Add const int variable containing number of array elements
2017-06-14 23:07:55 +02:00