David van Moolenbroek
9ba9dee2aa
tcp: advance next seq nr for zero window probes
...
It is possible that the byte sent as a zero window probe is accepted
and acknowledged by the receiver side without the window being opened.
In that case, the stream has effectively advanced by one byte, and
since lwIP did not take this into account on the sender side, the
result was a desynchronization between the sender and the receiver.
That situation could occur even on a lwIP loopback device, after
filling up the receiver side's receive buffer, and resulted in an ACK
storm. This patch corrects the problem by advancing the sender's next
sequence number by one as needed when sending a zero window probe.
2016-10-04 22:06:05 +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
Dirk Ziegelmeier
bef7873042
ND6: Always set neighbor_cache.state together with counter value to avoid inconsistency
2016-10-04 13:59:05 +02:00
Dirk Ziegelmeier
ec236da972
Add comment for my last changes
2016-10-04 13:36:30 +02:00
Dirk Ziegelmeier
ee27daffc4
Fix bug #48876 : nd6: timers should be in ticks, not ms
...
delay_time and stale_time are ticks now.
reachable_time and invalidation_timer are untouched since they may originate from telegram values -> not converting them to ticks avoids an integer division
2016-10-04 13:30:23 +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 0e2354e658
.
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
d1ed89b2e4
Fix accidental TAB in tftp_server.h
2016-10-04 10:31:43 +02:00
Dirk Ziegelmeier
81549578bf
Fix compile of TFTP with MSVC
2016-10-04 08:54:52 +02:00
Dirk Ziegelmeier
f8683499a6
TFTP: Add missing newline at end of file
2016-10-03 14:33:57 +02:00
Dirk Ziegelmeier
1e5efee7cb
TFTP server depends on UDP
2016-10-03 09:50:34 +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
eb77c839fc
Minor: comment in pbuf.c
2016-10-03 09:45:59 +02:00
Axel Lin
5e15125b3d
igmp: Fix optimized code by always skipping the first entry in the linked groups list
...
commit 8c52afb6ca
("igmp: Optimize code by always skipping the first entry in the linked groups list - it is always the "allsystems" entry")
accidently changes the code logic. it should check groupref rather than group.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2016-10-02 19:36:59 +02:00
Dirk Ziegelmeier
8f8f56914b
Fix bug #47731 : IGMP state transition missing
...
Set state variable according to RFC 2236 on timeout in delaying member state
2016-10-01 21:27:00 +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
8c52afb6ca
igmp: Optimize code by always skipping the first entry in the linked groups list - it is always the "allsystems" entry
2016-10-01 17:28:36 +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
d7f8d33506
Minor: update NO_SYS_SampleCode.c for IPv6
2016-09-30 09:35:27 +02:00
Dirk Ziegelmeier
db9c866fff
Minor: Documentation update
2016-09-30 09:05: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
65796cd827
"Fix" bug #49078 : lwip cannot establish ipv6 connection, because of failed to fill ipv6 source address in Neighbor Solicitation Message by adding a note to netif_add not to forget to create a link-local IPv6 address
2016-09-29 12:02:50 +02:00
Dirk Ziegelmeier
40846260b5
Add comment about possible definitions for non-standard functions
2016-09-29 10:44:53 +02:00
Dirk Ziegelmeier
af04864094
Remove non-standard strnlen() call in snmp_msg.c
2016-09-29 08:30:33 +02:00
Dirk Ziegelmeier
5ddd2aef4b
Substitute custom itoa implementation mdns by lwip_itoa() and strlen() call
2016-09-29 08:25:57 +02:00
Dirk Ziegelmeier
17e6c9dd02
Add #include <string.h> in def.c since lwip_strnstr uses strlen and strcmp
2016-09-29 08:08:26 +02:00
Dirk Ziegelmeier
0e7f48d81c
Fix compile of new functions in def.c - I accidentally put them in a #ifdef section
...
Thanks to Daniel Elstner
2016-09-28 22:26:55 +02:00
Dirk Ziegelmeier
461b3531c7
httpd.c: add missing default in case statement
2016-09-28 22:05:52 +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
Dirk Ziegelmeier
1f68b32485
Cleanup handling of non-standard functions in lwIP
...
- itoa
- strnicmp, stricmp/strcasecmp
- strnstr
Related to patch #9115 : httpd.c: strcasecmp for GCC and stricmp for Windows
2016-09-28 21:52:11 +02:00
Dirk Ziegelmeier
f8d19e28de
Minor: Documentation updates
2016-09-28 20:58:02 +02:00
Erik Ekman
f3cec74bd6
mdns: Use macro to get mdns_host from netif v2
...
Add missing )
2016-09-28 18:15:11 +02:00
Erik Ekman
87e815030c
mdns: Use macro to get mdns_host from netif
2016-09-28 18:00:48 +02:00
Erik Ekman
78498981e2
mdns: Update error message after argument type changed
...
Method argument is no longer netif, but a mdns_host
2016-09-28 18:00:44 +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
5d811d799c
Minor: Documentation updates
2016-09-27 21:18:03 +02:00
Dirk Ziegelmeier
6abcd00f71
Convert IP address type numbers to an enum to improve documentation
2016-09-27 09:46:51 +02:00
Dirk Ziegelmeier
97b774ceb9
Minor: Documentation updates
2016-09-26 21:45:29 +02:00
Daniel Elstner
2f085aa441
ND6: Join/leave groups directly on the netif
2016-09-26 11:44:00 +02:00
Daniel Elstner
354e385453
Fix infinite loop in new MLD6 code
2016-09-26 11:43:59 +02:00
Dirk Ziegelmeier
c7c6b7ce93
Rework IGMP and MLD6 code to store group info per-netif.
...
Reasoning:
- Makes code in single-netif case perform better and smaller
- IGMP / MLD6 code is a little bit easier to read and understand
- Easier to get multicast groups per netif when implementing drivers
Downside: In multi-netif mode, there are two more pointers on each netif, even if IGMP/MLD6 is not used on it. But these systems should not be so memory-constrained that this will matter.
2016-09-21 13:33:33 +02:00
Dirk Ziegelmeier
c25de8f317
Update comment in MDNS and pbuf.c
2016-09-21 12:37:31 +02:00
Daniel Elstner
c9bae5ea9b
Fix bug #49134 : Do not announce invalid IPv4 address via mDNS
...
In a dual stack configuration it is not really feasible to wait
until the IPv4 address is valid before starting the mDNS responder.
If there is no DHCPv4 server in the network, the IPv4 address may
never become valid, which should however not preclude IPv6 mDNS
from working.
2016-09-21 12:31:13 +02:00
Dirk Ziegelmeier
dbd847b70c
Fix bugfix for bug #49136 : No SNMPv2 SetRequest response when OID does not exist
...
Last commit broke SNMPv1 answers
2016-09-20 14:28:40 +02:00
Dirk Ziegelmeier
19e2780656
Fix bug #49136 : No SNMPv2 SetRequest response when OID does not exist
2016-09-20 14:06:20 +02:00
Dirk Ziegelmeier
eb3a08308d
Improve my last docs
2016-09-20 09:14:32 +02:00