Axel Lin
7faa4bcbe2
mqtt: Prevent NULL pointer dereference before assertion checking
...
Signed-off-by: Axel Lin <axel.lin@ingics.com>
9 years ago
Erik Ekman
6c9a9b9d99
Remove duplicate netif_dhcp_data() macro
...
Fix compilation of unit tests
9 years ago
Dirk Ziegelmeier
02eec304c3
Update version to 2.0.2 DEVELOPMENT in master branch
9 years ago
Dirk Ziegelmeier
3a20ae3830
Add missing #include in netdb.c for atoi()
9 years ago
Dirk Ziegelmeier
0ffaccaec3
Add missing #include in httpd.c for atoi()
9 years ago
Dirk Ziegelmeier
e94c9ffa70
Fix warning about bad cast in pbuf_skip()
9 years ago
Dirk Ziegelmeier
72316bdb5b
Move macros to access DHCP and AUTOIP data to headers, users may want to access the members
9 years ago
Dirk Ziegelmeier
803a711e6a
Fix warning that local variable may be used uninitialized in mem.c
9 years ago
sg
8760fb677f
fixed warnings in mdns unit tests
9 years ago
Erik Ekman
d2631e6a53
mqtt: Fix pedantic enum warning
...
src/apps/mqtt/mqtt.c:81:17: error: comma at end of enumerator list [-Werror=pedantic]
9 years ago
Dirk Ziegelmeier
4059748b47
I was not satisfied with the previous debugging options structure. Improve it again.
9 years ago
Dirk Ziegelmeier
644a21b8a5
Improve debugging options documentation
9 years ago
Dirk Ziegelmeier
a3876314b7
Add debugging options to documentation
9 years ago
Dirk Ziegelmeier
e3c2b8a339
Add note about high resource-consumption in LWIP_PLATFORM_DIAG and LWIP_PLATFORM_ASSERT default implementations
9 years ago
Dirk Ziegelmeier
e12bb2a4eb
Fix comma at end of enum list in mqtt.h
9 years ago
Dirk Ziegelmeier
2096f1a657
Fix C++ style comment in mqtt.c
9 years ago
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>
9 years ago
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>
9 years ago
Dirk Ziegelmeier
b8bc7b7c71
arch.h: Add #includes necessary for default implentation of LWIP_PLATFORM_DIAG and LWIP_PLATFORM_ASSERT
9 years ago
Dirk Ziegelmeier
f874d15185
Add #include <string.h> in snmp_netconn.c because memset() is used
9 years ago
Dirk Ziegelmeier
ee034bd811
Document PACK_STRUCT_USE_INCLUDES #define
9 years ago
sg
a2a16d4193
nd6 rdnss: fixed dual-stack compilation
9 years ago
sg
98fc82fa71
added function tcp_listen_with_backlog_and_err() to get the error reason when listening fails (bug #49861 )
9 years ago
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)
9 years ago
Dirk Ziegelmeier
1466b7ac61
Several mqtt documentation fixes found by clang
9 years ago
Dirk Ziegelmeier
748e2e925b
Create documentation section "porting" and move it under lwIP section (instead of infrastructure)
9 years ago
Dirk Ziegelmeier
1fd69ddee9
Minor documentation update in def.c
9 years ago
Dirk Ziegelmeier
3a8368ef04
Provide struct packing macros on GCC/clang out of the box
9 years ago
Dirk Ziegelmeier
c1258e5c72
Compile fix in lwip/arch.h "extra tokens at end of #ifndef directive"
9 years ago
Dirk Ziegelmeier
211a71cf11
Minor documentation update in lwip/arch.h
9 years ago
Dirk Ziegelmeier
55199fc62c
More documentation updates in lwip/arch.h
9 years ago
Dirk Ziegelmeier
45ad6f2e61
Minor documentation updates in lwip/arch.h
9 years ago
Dirk Ziegelmeier
df365adf9a
Trivial typo fix in arch.h docs
9 years ago
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>
9 years ago
Dirk Ziegelmeier
c1d16c61eb
Forgot documentation on MQTT port #define
9 years ago
Dirk Ziegelmeier
83b1c397a0
Add #define with default MQTT port for convenience
9 years ago
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>
9 years ago
Dirk Ziegelmeier
2e4b368c8c
Revert "Fix bug #49914 : lwip_sendmsg uses PBUF_REF pbufs"
...
This reverts commit 4e34851c57 .
9 years ago
Dirk Ziegelmeier
4e34851c57
Fix bug #49914 : lwip_sendmsg uses PBUF_REF pbufs
...
Use PBUF_RAM and create private copy of the data
9 years ago
Dirk Ziegelmeier
3a557baedd
Move a few MQTT options from mqtt.c to mqtt_opts.h
9 years ago
Dirk Ziegelmeier
6e219b6b11
Change signature of mqtt_client_connect() to take an IP addr instead of a string
9 years ago
Dirk Ziegelmeier
ec1450bac4
Add mqtt documentation from Erik Anderson, rev 4b84fff
9 years ago
Axel Lin
5be91de56c
mqtt: Trivial error message fix
...
Fix trivial copy-paste mistake.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
9 years ago
David van Moolenbroek
24fa1c457e
opt.h: provide some hints regarding MLD settings
9 years ago
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.
9 years ago
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>
9 years ago
Dirk Ziegelmeier
876720593b
Update .gitignore once more for fuzz test
9 years ago
Dirk Ziegelmeier
dd96c71253
Fix a few -Wconversion warnings (there are many more to do)
9 years ago
Thomas Mueller
be57134810
Fixed bug #49895 : Incorrect configuration detection in lwip/dns.h
...
Signed-off-by: goldsimon <goldsimon@gmx.de>
9 years ago
Dirk Ziegelmeier
16b895b466
Undo removal of mqtt_publish() from documentation in Simon's last commit (guess it was by accident)
9 years ago