Dirk Ziegelmeier
7869d7c5f7
More snmp_traps.c documentation fixes
2018-11-08 08:35:39 +01:00
Dirk Ziegelmeier
98e31f7ba6
SNMP: Simplify two informs functions
2018-11-07 21:23:28 +01:00
Dirk Ziegelmeier
0e3bc53432
Fix comments in new SNMP code
2018-11-07 21:21:23 +01:00
Dirk Ziegelmeier
65033b6ba5
Apply patch for task #15072 : SNMP support for notifications and informs (v2c)
...
Original author: Ognjen Bjelica
with minor fixes from Dirk Ziegelmeier
2018-11-07 21:04:53 +01:00
Simon Goldschmidt
153c295b6f
altcp_tls_mbedtls: use mbedtls_entropy_func for mbedtls_ctr_drbg_seed
...
This is the default way for mbedTLS. Add entropy sources via defines (see
mbedtls_entropy_init).
This removes the use of ALTCP_MBEDTLS_RNG_FN
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-11-06 21:28:45 +01:00
Simon Goldschmidt
fa37888da2
altcp_tls_mbedtls: update list of todos
...
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-10-26 20:43:06 +02:00
David GIRAULT
6e994f9df2
bug #54744 : if altcp_close() called from recv() callback, there is some write to freed memory
...
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-10-26 19:56:54 +02:00
Dirk Ziegelmeier
ec28364a2f
SNMP_ERR_NOTWRITABLE is a more appropriate return value for the last two commits
...
The instance of the SNMP node was found, that's why the functions have been called. So if set_test() and/or set_value() do not exist, it means the SNMP node instance is not writable.
2018-10-24 09:59:06 +02:00
Dirk Ziegelmeier
ee2f5c52d1
Fix the same issue as in snmp_scalar.c in snmp_threadsync.c
2018-10-24 08:54:08 +02:00
Dirk Ziegelmeier
36e2d2255e
Fix wrong return value in snmp_scalar_array_get_value()
2018-10-24 08:34:32 +02:00
Simon Goldschmidt
6a1fbc7433
snmp: fix coding style in last commit
2018-10-23 20:01:06 +02:00
Dirk Ziegelmeier
2e7b4573a5
SNMP: Avoid NULL pointer dereference in snmp_scalar.c
2018-10-23 14:26:29 +02:00
Simon Goldschmidt
ff8d1a384f
httpd: SSI types should be overridable (task #15071 )
...
Add define LWIP_HTTPD_SSI_EXTENSIONS to make the extension list
overridable, clarify documentation of LWIP_HTTPD_SSI_BY_FILE_EXTENSION
a bit.
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-10-23 08:17:45 +02:00
Simon Goldschmidt
f6b728b24c
makefsdata: obey LWIP_HTTPD_SSI_BY_FILE_EXTENSION
...
Don't check SSI extension list if LWIP_HTTPD_SSI_BY_FILE_EXTENSION == 0
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-10-23 08:16:49 +02:00
Simon Goldschmidt
688b0935e2
Try to catch missing std includes on travis
...
By defining LWIP_PLATFORM_ASSERT to a function, we can prevent arch.h
from including stdio.h and stdlib.h
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-10-23 08:00:37 +02:00
Simon Goldschmidt
ef02b1dc20
fix missing standard includes
...
These were a problem only if arch.h does not include them.
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-10-23 07:46:13 +02:00
Dirk Ziegelmeier
06cc825431
Whitespace cleanup lwIP
2018-10-22 20:53:58 +02:00
Simon Goldschmidt
0be3e35bf2
tftp: mode_to_string() should be static
2018-10-17 21:53:04 +02:00
Simon Goldschmidt
0ee4784d0c
tftp client: pass 'mode' as an enum, not as a string constant
2018-10-17 21:37:46 +02:00
Simon Goldschmidt
fa76861481
tftp: fix cast warnings; return all error codes
...
Also keep tftp_mode in tft_state
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-10-13 20:26:06 +02:00
Dirk Ziegelmeier
437e0a6756
Fix C++ style comments in TFTP
2018-10-12 14:27:31 +02:00
Dirk Ziegelmeier
f61e57965f
Minor coding style fix in tftp.c
2018-10-09 09:07:08 +02:00
Dirk Ziegelmeier
65b1a395f4
TFTP: Fix doxygen docs
2018-10-08 22:16:40 +02:00
Dirk Ziegelmeier
abcf42b655
Fix compile of TFTP using GCC
2018-10-08 20:21:32 +02:00
Dirk Ziegelmeier
c8808f69b2
Fix tftp_init_client signature
2018-10-08 12:56:27 +02:00
Dirk Ziegelmeier
6c2fd2d25d
Improve TFTP implementation
...
- implement server/client mode (API is nicer to use)
- Increase TFTP_MAX_MODE_LEN to be able to contain "netascii" transfer mode
- Adapt tftp_example to changes
2018-10-08 12:45:29 +02:00
Dirk Ziegelmeier
7ba69d875c
Some TFTP cleanups
2018-10-08 11:41:51 +02:00
Ben Wijen
b2713601f0
tftp: Add client functionality
...
* add helper functions
* add tftp_get/tftp_put
* rename files
2018-10-08 09:00:20 +02:00
Dirk Ziegelmeier
4b672a1f3c
Adapt several comments to contrib rep move
2018-10-02 12:42:14 +02:00
Simon Goldschmidt
a044c807f8
altcp_tls: rename altcp_tls_new -> altcp_tls_wrap, add altcp_tls_new
...
The new altcp_tls_new() is a type safe version of altcp_tls_alloc()
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-09-24 22:29:54 +02:00
Simon Goldschmidt
0189e7b02f
mqtt: allow user + pass longer than 255 chars
...
See bug #54655 :
"MQTT brokers such as Google Cloud IoT Core requires MQTT clients
to send JSON Web Token (JWT) as password field of the MQTT Connect
packet. JWT can be more than 255 bytes.
Currently, the MQTT library restricts password to be less than 256
bytes, thus it prevents connectivity to Google Cloud IoT Core."
Fix that by just converting the local variables for these from u8_t
to u16_t.
Suggested-by: Richmond Umagat <richmond.umagat@brtchip.com>
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-09-13 14:59:08 +02:00
Dirk Ziegelmeier
796f98beb2
Fix no newline at end of http_client.c
2018-09-12 22:41:07 +02:00
Simon Goldschmidt
fc24d4139f
altcp_tls_mbedtls: convert #error on too small TCP_WND to warning
...
Many TLS use cases are OK with a small TCP_WND, so don't prevent these
by having a preprocessor check that cannot be disabled.
2018-09-12 22:24:05 +02:00
Dirk Ziegelmeier
cdfa3dfa9d
http_client.c: Fix compile when TCP is disabled
2018-09-12 08:27:43 +02:00
Dirk Ziegelmeier
257dc1d6fd
Fix doxygen warnings in altcp_proxyconnect.c
2018-09-10 13:30:50 +02:00
Simon Goldschmidt
7749088a83
Fix 2way-auth connections for TLS clients
...
TLS clients that need 2-way authentication (e.g. Amazon AWS IoT cloud mqtt)
need to pass a certificate and private key when creating the tls altcp_pcb.
Added a new function altcp_tls_create_config_client_2wayauth() for this that
replaces altcp_tls_create_config_client() for such clients.
See bug #54601 .
2018-09-07 20:59:31 +02:00
Axel Lin
bcd6c8a2d3
apps/sntp: Fix parameter name in doxygen comments
...
Make the parameter name in doxygen comments consistent wit the code.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2018-08-19 21:41:47 +08:00
Simon Goldschmidt
0674aa60fe
sntp_getservername: fix parameter name in doxygen comments
...
Reported-by: Gisle Vanem <gisle.vanem@gmail.com>
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-08-18 20:23:24 +02:00
Dirk Ziegelmeier
aafc0adfe1
Fix bug #54381 : SNMP RAW_DATA support is broken
2018-07-26 14:16:00 +02:00
Axel Lin
82fc0e8937
apps/netbiosns: Make *netbiosns_pcb static
...
It's only referenced by netbiosns.c, thus make it static.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2018-07-04 16:51:18 +08:00
Simon Goldschmidt
2d65251c6c
mdns: add config option to use netif ext callback
...
e.g. if the calling stack should not invoke the mdns functions due
to high stack usage, disable the option and trigger it yourself.
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-07-03 21:09:33 +02:00
Axel Lin
9b638e7c05
apps/netbiosns: Convert to use lwip_isupper instead of open-coded
...
Also remove additonal (cname == '\0' || cname == '.') check because
it's covered by !lwip_isupper(cname) test.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2018-07-03 22:55:59 +08:00
Simon Goldschmidt
cc8995823a
mdns: implement random time for initial probing
2018-06-28 22:10:45 +02:00
Simon Goldschmidt
af2cbad64a
mdns: add 2 RFC constants
2018-06-28 22:07:23 +02:00
Simon Goldschmidt
8090afa4f9
mdns: minor coding style cleanup
2018-06-28 22:04:57 +02:00
Simon Goldschmidt
4506db4331
mdns: fix implicit cast warnings (size_t to u8_t)
2018-06-28 21:58:15 +02:00
Simon Goldschmidt
814341a6ed
mdns: use an u8_t instead of an enum for mdns_hos::probing_state
...
This saves some bytes only, but it is actually more common in lwip code
2018-06-28 21:56:59 +02:00
Simon Goldschmidt
6067edfed3
mdns: add defines for mdns_name_result_cb_t result parameter
2018-06-28 21:52:58 +02:00
Jens Nielsen
9f1196fb53
MDNS send probes to verify domain before use
...
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-06-28 21:41:10 +02:00
Simon Goldschmidt
0610b34372
httpd: fixed duplicate NULL check
...
See bug #54196 .
Reported-by: Andrey Vinogradov <andrey.vinogradov@teplomonitor.ru>
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-06-27 20:53:30 +02:00