goldsimon
c510e92cf4
get lowpan6_ble.c to compile
2018-02-23 13:16:14 +01:00
goldsimon
69eaafecca
lowpan6_ble.c: fixed whitespace & indentation
2018-02-23 13:08:00 +01:00
Benjamin Aigner
10209ee788
Added a RFC7668 netif.
...
Works as expected, but some features are not implemented yet.
(See patch #9364 : RFC7668 - 6lowpan over Bluetooth Low Energy -- a new netif)
(I've change the file names only; sg)
Signed-off-by: goldsimon <goldsimon@gmx.de>
2018-02-23 13:07:31 +01:00
Dirk Ziegelmeier
f595445ec0
Some fixes to DHCPv6 documentation
2018-02-23 12:54:51 +01:00
Dirk Ziegelmeier
aa04944ae0
Add DHCPv6 to documentation
2018-02-23 12:35:45 +01:00
goldsimon
d2ee10977f
dhcp6: try to fix docs (clang complains)
2018-02-23 10:26:19 +01:00
goldsimon
7ad680c2bf
Try to fix dhcp6.c on travis
2018-02-23 09:54:04 +01:00
goldsimon
7d007cfee5
DHCPv6: make LWIP_IPV6_DHCP6_STATELESS==LWIP_IPV6_DHCP6 by default
2018-02-23 09:26:46 +01:00
goldsimon
8600259a78
tiny cleanup in dhcp.c
2018-02-22 22:33:48 +01:00
goldsimon
76a13054ee
add initial support for stateless DHCPv6
...
Signed-off-by: goldsimon <goldsimon@gmx.de>
2018-02-22 22:33:16 +01:00
goldsimon
37b4494921
http_client: fix function documentation
2018-02-22 09:55:32 +01:00
goldsimon
0ee0393936
fix compiling http_client and altcp_proxyconnect with gcc
2018-02-22 09:12:51 +01:00
Axel Lin
fe3bb8bb78
etharp: Remove superfluous assert checking in free_etharp_q
...
The same checking is done while iterating the list in the while loop.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2018-02-22 11:27:29 +08:00
Axel Lin
e93cecf527
Fix build error for http files
...
The HTTPDFILES is renamed to HTTPFILES now.
Fixes: 1f0867299d
("add new http files to Filelists.mk")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2018-02-22 09:21:33 +08:00
goldsimon
1f0867299d
add new http files to Filelists.mk
2018-02-21 22:17:51 +01:00
goldsimon
7b9e145fc5
http_client: change user-agent and make it overridable
2018-02-21 20:18:29 +01:00
goldsimon
2753eb1fb1
add an altcp layer for http proxy connect (e.g. to tunnel TLS through a http proxy)
...
Signed-off-by: goldsimon <goldsimon@gmx.de>
2018-02-21 20:18:05 +01:00
goldsimon
a0e900dd02
makefsdata: update usage output to code
2018-02-21 14:42:47 +01:00
goldsimon
325cdf3c0b
altcp_tls_mbedtls: restructure upper callbacks to prevent double-free
...
This fixes bug #53192 : use-after-free in altcp_mbedtls
Signed-off-by: goldsimon <goldsimon@gmx.de>
2018-02-21 14:20:34 +01:00
goldsimon
a7b43dae49
altcp: default shutdown for both sides is close
2018-02-21 12:50:42 +01:00
goldsimon
d66c0e3381
altcp: mbedtls: move freeing state->rx from close to dealloc (catch-all)
2018-02-20 22:12:11 +01:00
goldsimon
bcff67b00e
altcp_tls_alloc: need to close inner conn instead of freeing it
2018-02-20 17:08:00 +01:00
goldsimon
3bd87e3815
doc: altcp: keep altcp_alloc/altcp_free out of the docs
...
Those functions are for implementing altcp layers, not for applications
2018-02-20 14:08:04 +01:00
Dirk Ziegelmeier
333fff3e66
Improve altcp allocator documentation
2018-02-20 13:31:27 +01:00
Dirk Ziegelmeier
fc3c186289
Improve altcp allocator documentation
2018-02-20 13:25:50 +01:00
goldsimon
3a41f4fe8a
altcp_alloc: add to Filelists.mk
2018-02-20 11:21:32 +01:00
Axel Lin
e9bd31b190
icmp6: Fix "LWIP_ICMP6_DATASIZE" redefined build warning if it was set to 0
...
Need to undefine LWIP_ICMP6_DATASIZE before change the setting.
While at it, also remove the unneeded #ifndef LWIP_ICMP6_DATASIZE
checking because it is set in lwip/opt.h.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2018-02-20 17:54:49 +08:00
Axel Lin
a894140bb0
igmp: Use angle brackets for including string.h
...
Use angle brackets(<>) for including system header files.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2018-02-20 15:20:14 +08:00
goldsimon
842b9f4429
altcp: simplify creating different types by adding an allocator concept
...
This is done with an example in the http_client
Signed-off-by: goldsimon <goldsimon@gmx.de>
2018-02-19 21:41:48 +01:00
Dirk Ziegelmeier
5b33d33e34
Add HTTP client to documentation
2018-02-19 09:01:44 +01:00
Dirk Ziegelmeier
2501913cde
Move ethernetif.c from lwIP main rep to contrib examples directory where it has a chance to be actually found by users
2018-02-19 07:46:56 +01:00
Dirk Ziegelmeier
47c55c3d96
Improve documentation for 6LOWPAN and SLIPIF
2018-02-18 17:49:54 +01:00
goldsimon
ef29f2d401
http_client: httpc_tcp_recv did not return inner_conn's recv return value
...
Signed-off-by: goldsimon <goldsimon@gmx.de>
Reported-by: Our Air Quality <info@ourairquality.org>
2018-02-18 09:02:00 +01:00
goldsimon
ca0a356221
sockets_stresstest: don't compile when LWIP_SOCKET is disabled
2018-02-18 08:56:57 +01:00
goldsimon
e6f0700c81
fuzz: fix compile error, ignore 0 length pbufs
2018-02-18 08:56:23 +01:00
goldsimon
b5448a86fd
ip4_reass: free datagram entry if p == NULL
2018-02-18 08:55:11 +01:00
Dirk Ziegelmeier
5b459c1282
dns.h depends on err.h
2018-02-17 16:53:03 +01:00
goldsimon
2b09c18c4e
altcp_tls.h: minor whitespace cleanup
2018-02-16 13:59:00 +01:00
goldsimon
2648d30843
altcp_tls_mbedtls.c: tiny function rename
2018-02-16 13:57:38 +01:00
goldsimon
bd656efd64
http client: add https support, fix parsing header with chained pbufs
2018-02-16 12:29:40 +01:00
goldsimon
e87392cc85
http client: fix proxy support
2018-02-16 09:18:35 +01:00
goldsimon
3dafa72ec8
apps: add http client
...
Signed-off-by: goldsimon <goldsimon@gmx.de>
2018-02-15 22:10:29 +01:00
goldsimon
d4c4b0eec5
rename folder 'src/apps/httpd' to 'http'
...
Signed-off-by: goldsimon <goldsimon@gmx.de>
2018-02-15 20:13:25 +01:00
goldsimon
58de2af5f2
test/fuzz: add some applications, add an experimental multi-packet mode
...
The experimental multi-packet mode splits input bytes depending on a length
decoded from the first 2 bytes and does that until the end of input.
To use this mode, compile with "make D=-DLWIP_FUZZ_MULTI_PACKET"
Signed-off-by: goldsimon <goldsimon@gmx.de>
2018-02-15 14:35:08 +01:00
goldsimon
cd1516e2e4
mqtt: rewrote check for topc_len so that coverity is happy...
2018-02-15 09:15:40 +01:00
goldsimon
216f21dcd1
simple whitespace cleanup
2018-02-15 06:41:16 +01:00
Axel Lin
5d5b8fbb46
Fix trivial copy & paste mistake for comment in header files
...
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2018-02-14 22:49:12 +08:00
goldsimon
133bf70ab5
mqtt: slightly change some overflow checks
2018-02-14 12:37:35 +01:00
goldsimon
eea95459c9
mqtt: add more length validity checks in mqtt_message_received
...
This also (but not only) fixes bug #52345 ("MQTT buffer length check seems wrong")
2018-02-14 12:08:15 +01:00
goldsimon
546a8c4860
Revert "vj_compress_tcp: help coverity to see we're not accessing out of bounds (this is a union)"
...
This reverts commit 2390eb6826
.
I've already marked other issues like this as 'invalid', so do this here, too.
Although I don't like the code, there's not much use in fixing this in one place only.
2018-02-14 07:34:05 +01:00