Dirk Ziegelmeier
e12bb2a4eb
Fix comma at end of enum list in mqtt.h
2017-01-01 20:26:28 +01:00
Dirk Ziegelmeier
2096f1a657
Fix C++ style comment in mqtt.c
2017-01-01 20:23:11 +01:00
Axel Lin
1f3c18fcbe
tcp: Make tcp_listen_with_backlog_and_err return NULL if the address/port is already used
...
The caller of tcp_listen_with_backlog_and_err() usually check if the return
pcb is NULL before checking the err reason. I think the commit adding
tcp_listen_with_backlog_and_err() accidently change the behavior, Fix it.
Fixes: 98fc82fa71
("added function tcp_listen_with_backlog_and_err() to get the error reason when listening fails")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2017-01-01 19:53:51 +01:00
Axel Lin
edfeab7932
mqtt: Trivial coding style fix
...
Add proper blank for if/for/while statements.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2017-01-01 19:20:24 +01:00
Dirk Ziegelmeier
b8bc7b7c71
arch.h: Add #includes necessary for default implentation of LWIP_PLATFORM_DIAG and LWIP_PLATFORM_ASSERT
2017-01-01 12:40:23 +01:00
Dirk Ziegelmeier
f874d15185
Add #include <string.h> in snmp_netconn.c because memset() is used
2017-01-01 12:38:34 +01:00
Dirk Ziegelmeier
ee034bd811
Document PACK_STRUCT_USE_INCLUDES #define
2017-01-01 12:31:02 +01:00
sg
a2a16d4193
nd6 rdnss: fixed dual-stack compilation
2016-12-31 15:51:59 +01:00
sg
98fc82fa71
added function tcp_listen_with_backlog_and_err() to get the error reason when listening fails (bug #49861 )
2016-12-31 15:36:31 +01:00
Dirk Ziegelmeier
1884c7e83f
Fix TCP unit tests after changes from "Add hook for TCP Initial Sequence Number generation" commit
...
(pcb->lastack and friends are not initialized during allocation any more, but by connect() / bind() call)
2016-12-31 11:46:27 +01:00
Dirk Ziegelmeier
1466b7ac61
Several mqtt documentation fixes found by clang
2016-12-29 09:44:07 +01:00
Dirk Ziegelmeier
748e2e925b
Create documentation section "porting" and move it under lwIP section (instead of infrastructure)
2016-12-29 09:29:24 +01:00
Dirk Ziegelmeier
1fd69ddee9
Minor documentation update in def.c
2016-12-29 09:28:45 +01:00
Dirk Ziegelmeier
3a8368ef04
Provide struct packing macros on GCC/clang out of the box
2016-12-29 09:28:28 +01:00
Dirk Ziegelmeier
c1258e5c72
Compile fix in lwip/arch.h "extra tokens at end of #ifndef directive"
2016-12-29 09:05:52 +01:00
Dirk Ziegelmeier
211a71cf11
Minor documentation update in lwip/arch.h
2016-12-28 21:52:10 +01:00
Dirk Ziegelmeier
55199fc62c
More documentation updates in lwip/arch.h
2016-12-28 10:14:36 +01:00
Dirk Ziegelmeier
45ad6f2e61
Minor documentation updates in lwip/arch.h
2016-12-28 09:53:11 +01:00
Dirk Ziegelmeier
df365adf9a
Trivial typo fix in arch.h docs
2016-12-26 10:53:41 +01:00
Axel Lin
7b40d1eb6f
doc: mqtt_client: Update example code after adding port parameter to mqtt_client_connect()
...
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2016-12-24 15:10:56 +01:00
Dirk Ziegelmeier
c1d16c61eb
Forgot documentation on MQTT port #define
2016-12-24 12:06:53 +01:00
Dirk Ziegelmeier
83b1c397a0
Add #define with default MQTT port for convenience
2016-12-24 12:05:27 +01:00
Axel Lin
bfa0358a52
mqtt: Allow setting server port to connect
...
This is a mqtt client, so it does not make sense to determinate the server port
at compile time. Update mqtt_client_connect() function to allow setting server
port.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2016-12-23 09:52:31 +01:00
Dirk Ziegelmeier
2e4b368c8c
Revert "Fix bug #49914 : lwip_sendmsg uses PBUF_REF pbufs"
...
This reverts commit 4e34851c57
.
2016-12-23 09:51:26 +01:00
Dirk Ziegelmeier
4e34851c57
Fix bug #49914 : lwip_sendmsg uses PBUF_REF pbufs
...
Use PBUF_RAM and create private copy of the data
2016-12-22 21:19:53 +01:00
Dirk Ziegelmeier
3a557baedd
Move a few MQTT options from mqtt.c to mqtt_opts.h
2016-12-21 09:42:25 +01:00
Dirk Ziegelmeier
6e219b6b11
Change signature of mqtt_client_connect() to take an IP addr instead of a string
2016-12-21 09:36:28 +01:00
Dirk Ziegelmeier
ec1450bac4
Add mqtt documentation from Erik Anderson, rev 4b84fff
2016-12-21 09:29:47 +01:00
Axel Lin
5be91de56c
mqtt: Trivial error message fix
...
Fix trivial copy-paste mistake.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2016-12-21 08:54:57 +01:00
David van Moolenbroek
24fa1c457e
opt.h: provide some hints regarding MLD settings
2016-12-20 22:28:11 +01:00
David van Moolenbroek
71810d0415
ipv6: adjust MLD membership on address state changes
...
If MLD support is enabled, each locally assigned IPv6 address in the
appropriate state must be a member of the solicited-node multicast
group corresponding to that address. Ensure that this is always the
case by (re-)deciding on the membership upon every address state
change. By doing so, this patch enforces that user-initiated state
changes to addresses (e.g., deletion) never cause a desynchronization
with the corresponding solicited-node multicast group membership,
thereby making such user-initiated state changes simpler and safer.
2016-12-20 22:28:02 +01:00
Axel Lin
d5bc856f45
mqtt: Check conn_state before create request for sub_unsub
...
This also avoid a request leak in client->conn_state == TCP_DISCONNECTED error
path.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2016-12-20 19:45:31 +01:00
Dirk Ziegelmeier
876720593b
Update .gitignore once more for fuzz test
2016-12-20 14:25:46 +01:00
Dirk Ziegelmeier
dd96c71253
Fix a few -Wconversion warnings (there are many more to do)
2016-12-20 14:22:51 +01:00
Thomas Mueller
be57134810
Fixed bug #49895 : Incorrect configuration detection in lwip/dns.h
...
Signed-off-by: goldsimon <goldsimon@gmx.de>
2016-12-20 14:21:26 +01:00
Dirk Ziegelmeier
16b895b466
Undo removal of mqtt_publish() from documentation in Simon's last commit (guess it was by accident)
2016-12-20 10:48:19 +01:00
Dirk Ziegelmeier
dcb761637d
Minor documentation fix in MQTT
2016-12-20 10:42:56 +01:00
Axel Lin
02f4610b1c
mqtt: Use LWIP_ARRAYSIZE to replace hardcoded value
...
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2016-12-20 10:36:42 +01:00
goldsimon
b6a131edfb
mqtt: fix C usage (declaration after statement), fix casting to smaller type
2016-12-20 10:27:43 +01:00
Dirk Ziegelmeier
12bc2c0425
MQTT cleanups:
...
- create mqtt_opts.h file and move options in there
- documentation cleanups
2016-12-20 10:08:50 +01:00
Dirk Ziegelmeier
14e36866f5
Some cleanups in MQTT client
...
Integrate in documentation
Compile fixes, mostly: Variables must be declared before any statement in a function
2016-12-20 09:41:21 +01:00
Dirk Ziegelmeier
1e82465766
task #14281 : Add MQTT client
...
Thanks to Erik Andersen
Taken from https://github.com/erian747/ , branch mqtt, rev 5d59470
2016-12-20 09:16:21 +01:00
goldsimon
fb07d47b82
more LWIP_NOASSERT fixes
2016-12-19 10:34:49 +01:00
goldsimon
c71733252c
Fix compiling with LWIP_NOASSERT (and debug/error disabled, too)
2016-12-19 10:29:16 +01:00
Dirk Ziegelmeier
e0c0ba7e1b
Fix compile with LWIP_NOASSERT
...
Pointed out by Nirav Desai
2016-12-19 10:11:23 +01:00
Dirk Ziegelmeier
7f319f5ec5
Fix compile of test_tcp.c unit test after introduction of tcp_next_iss hook
2016-12-18 21:46:49 +01:00
Dirk Ziegelmeier
c21763f6cb
Minor code cleanup api_lib.c
2016-12-18 21:31:14 +01:00
Axel Lin
f488c5b7bc
igmp: Fix optimized code for igmp_remove_group
...
The code in the for loop checks tmp_group->next == group, so current code
actually checks from the 3rd entry in the linked groups list. Fix it.
Fixes: 5c1dd6a4c6
("Optimization in igmp_remove_group() pointed out by Axel Lin")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2016-12-17 22:01:30 +01:00
Dirk Ziegelmeier
5c1dd6a4c6
Optimization in igmp_remove_group() pointed out by Axel Lin
...
No need to handle special case "first in list" since this is always the allsystems group that shall not be removed
2016-12-17 15:06:33 +01:00
Dirk Ziegelmeier
102a50fa96
Fix bug #39145 : IGMP membership report for 224.0.0.1
...
Ensure allsystems group is always first in linked list
2016-12-17 13:36:24 +01:00