Matthias Hofmann
9b06d71aeb
Fix using DHCP IP configuration after lease time is expired.
...
Signed-off-by: goldsimon <goldsimon@gmx.de>
2017-07-25 21:46:57 +02:00
goldsimon
9b5d8f14a9
tcp_getoptbyte() -> tcp_get_next_optbyte() (to make it clearer that this function modifies something - not only a getter)
2017-07-25 21:38:06 +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
Pascal Quantin
2e78b6dcae
Fixed bug #51528 (Bug when parsing WND_SCALE option)
...
Signed-off-by: goldsimon <goldsimon@gmx.de>
2017-07-24 21:38:47 +02:00
goldsimon
afee9013ad
added passages about moved posix headers and changed SO_ERROR to CHANGELOG/UPGRADING
2017-07-24 21:15:45 +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
goldsimon
597d5459bb
Make sys_arch_sem_wait() & sys_arch_mbox_fetch() a little more robust when waiting (although this should never be a problem...)
2017-07-20 22:02:30 +02:00
Our Air Quality
66a84cb2ef
Clarify that sys_arch_protect() always has a matching unprotect.
...
This is to allow an implementation to use a nesting counter, or a
recursive mutex. Also clarify that the value returned by
sys_arch_protect() is opaque to lwip and implementation dependent.
Signed-off-by: goldsimon <goldsimon@gmx.de>
2017-07-20 21:22:35 +02:00
goldsimon
d01b3177fd
Fix bug #51507 (Keep uses of SYS_ARCH_PROTECT/UNPROTECT in alloc_socket nested)
2017-07-20 21:18:40 +02:00
Joel Cunningham
99e1f37b82
IP_PKTINFO: set msg_controllen upon output
...
This fixes a bug where when writing IP_PKTINFO to msg_control, the
msg_controllen field was not updated with the length written
This bug is exposed by applications that provide a msg_control buffer large
enough for multiple control messages. Then when calling CMSG_NXTHDR, it
returned a next cmsg pointer even though was no additional message
2017-07-20 12:29:56 -05:00
Joel Cunningham
5cd475d91b
docs: remove 'unimplemented' tag from exceptset
...
The exceptset FDs in select() are implemented and record pending socket
errors. This removes the 'unimplemented' tag in documentation
2017-07-18 16:56:02 -05:00
goldsimon
26771d0800
Add @todo: scope ip6addr?
2017-07-18 19:17:17 +02:00
Our Air Quality
5eff45cac0
Correct a few uses of sizeof(ip6_addr_t) to sizeof(ip6_addr_p_t)
...
The ip6_addr_t structure may have an addition slot so is not necessarily
the size of an ipv6 address, so some uses of sizeof(ip6_addr_t) were not
correct.
Signed-off-by: goldsimon <goldsimon@gmx.de>
2017-07-18 19:17:17 +02:00
Joel Cunningham
7b13fae833
docs: update references to global igmp_group_list
...
This updates documentation to refer to netif specific igmp group list rather
than the old global igmp_group_list
2017-07-17 14:25:14 -05:00
Dirk Ziegelmeier
328134fdba
Fix two -Wconversion warnings
2017-07-15 10:25:45 +02:00
goldsimon
3c371e4d52
Fixed bug #51379 : (Sockets: prevent select_waiting overflow)
2017-07-14 20:16:11 +02:00
Dirk Ziegelmeier
aa317dcb18
Fix dhcp documentation
2017-07-12 11:09:36 +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
Dirk Ziegelmeier
d021972785
Fix "no previous prototype" warning when TCP_QUEUE_OOSEQ is disabled
2017-07-11 09:59:11 +02:00
Dirk Ziegelmeier
449eb64fcb
Fix my last commit - break is missing
2017-07-10 09:52:48 +02:00
Dirk Ziegelmeier
57b1471254
Avoid return in case statement, makes function control flow equal to other case statement paths
2017-07-10 09:40:21 +02:00
Dirk Ziegelmeier
9130d37df7
Add "fall through" statement to Axel's patch
2017-07-10 09:37:59 +02:00
Axel Lin
6f28a874b8
pbuf: Simplify pbuf_alloc a bit
...
No need to have additional if statement for PBUF_REF/PBUF_ROM.
It can be merged to the existing swtich(type) cases.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2017-07-10 09:37:07 +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
c730a404d4
Make ioctl(FIONBIO) take an int*, not a u32_t* to got the *nix way
2017-07-06 20:25:41 +02:00
goldsimon
b8ecfe640c
work on -Wconversion...
2017-07-06 12:38:50 +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
c5607d3889
Fix compiling ASSERT (broken some commits ago)
2017-07-05 12:22:02 +02:00
goldsimon
ba6b504cc0
work on -Wconversion...
2017-07-05 12:20:26 +02:00
goldsimon
9a40597ced
work on -Wconversion...
2017-07-04 21:31:30 +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
0b91888eb1
remove invalid TODO comment
2017-07-04 20:09:41 +02:00
goldsimon
b1a90ad74a
Added TCP SACKs to CHANGELOG
2017-07-04 20:09:15 +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
goldsimon
d262132b92
work on -Wconversion...
2017-07-03 20:15:02 +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
goldsimon
c636072362
pbuf.c: work on -Wconversion...
2017-06-29 22:49:39 +02:00
goldsimon
5d10e1b6c3
test_pbuf: free pbufs at the end of tests
2017-06-29 20:44:14 +02:00