Dirk Ziegelmeier
f457769fe8
Add netconn_join_leave_group_netif() that takes netif index as argument
2017-08-21 09:42:57 +02:00
Dirk Ziegelmeier
e58e398267
Implement IPv6 IPV6_JOIN_GROUP/IPV6_LEAVE_GROUP socket options
2017-08-16 17:41:46 +02:00
Dirk Ziegelmeier
9d74883491
Moving eth_type to iana.h was incorrect - these are assigned by IEEE. IANA published a document containing these numbers, but does not assign them. I didn't see that in the first place :-(
...
Now we have ieee.h, too.
2017-08-15 13:50:12 +02:00
Dirk Ziegelmeier
c6fac10b62
Rename eth_type enum in iana.h to be prefixed with lwip_iana_
2017-08-15 13:42:39 +02:00
Dirk Ziegelmeier
aaee7ed1e7
Improve documentation in iana.h
2017-08-15 13:40:37 +02:00
Dirk Ziegelmeier
2013f4cbd4
Move eth_type definition to iana.h
2017-08-15 13:35:30 +02:00
Joel Cunningham
b8a3cf3a4a
tcp: use tcp_set_flags() rather than manually setting flag
2017-08-09 12:15:52 -05:00
Joel Cunningham
ba7a3204cb
tcp: use tcp_ack_now rather than manually setting TF_ACK_NOW
2017-08-09 10:13:41 -05:00
goldsimon
90873d6c71
Continue fixing the spirit of bug #51663 : don't change pcb state if retransmission can't be done because segments are still queued for transmission
...
- add a better-documented static function tcp_output_segment_busy
- try to reduce the number of checks
- tcp_rexmit_rto: iterate pcb->unacked only once
- no need to check for ref==1 in tcp_rexmit_fast when tcp_rexmit does
- call tcp_rexmit_fast if dupacks >= 3 (not == 3) and use TF_INFR flag to guard the fast-rexmit case (that way, it's triggered again on the next dupack)
2017-08-08 23:02:14 +02:00
Joel Cunningham
902d393aef
tcp: map tcp_ack_now() directly to tcp_set_flags()
...
Also remove extra set of parenthesis in tcp_ack()
2017-08-08 14:56:00 -05:00
goldsimon
fed916b852
tiny doc change to LWIP_HOOK_IP4_ROUTE_SRC
2017-08-08 21:03:41 +02:00
goldsimon
6d28e9de79
Some cleanups after applying David Girault's altcp patches
2017-08-08 12:59:49 +02:00
David Girault
0486100a2b
altcp_tls: some fixes
...
- added `altcp_tls_free_config()`.
- added `altcp_tls_context()` function to allow mbedtls parameter tweak.
Since state structure isn't exported, this allow application to get
internal context (port dependent) to tweak it.
- free altcp_pcb when lower error callback called.
2017-08-08 12:59:47 +02:00
David Girault
ee89d906ec
altcp_tcp: some fixes
...
- expose `altcp_tcp_setup()` so we can wrap altcp over existing tcp pcb.
- avoid calling tcp_close() with NULL pcb.
- free altcp_pcb struct when error callback called.
According to `mqtt_tcp_err_cb()` in src/apps/mqtt/mqtt.c, altcp socket should
work the same way than raw tcp socket. So freeing altcp_pcb ensure this.
2017-08-08 12:59:46 +02:00
Dirk Ziegelmeier
60dd518887
Implement task #14594 : Improve consistency of ip route API parameters
...
reverse parameters of ip4_route_src to be consistent with other ip*_route* functions
This commit will break applications using this function!
2017-08-08 12:41:19 +02:00
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