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
Axel Lin
4027a2ae58
Introduce lwip_toupper and use it in netbiosns.c
...
This fixes build error when LWIP_NO_CTYPE_H=1.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-06-27 23:16:03 +08:00
Axel Lin
a56e61c942
Fix compiling with LWIP_NOASSERT defined
...
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2018-06-24 18:18:35 +08:00
Simon Goldschmidt
d80e84864e
httpd deduplicate code in http_send_data_ssi
...
Keep lead-in/lead-out tag in an array
2018-06-22 22:23:26 +02:00
Lucas Vinicius Hartmann
0acf37fd75
Added JavaScript-friendly ssi /*#tag*/.
2018-06-22 22:06:14 +02:00
Simon Goldschmidt
58f928a181
lwiperf: remove the comments that this is IPv4 only
...
IPv6 works (tested against iperf version 2.0.9 on linux)
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-06-22 06:39:04 +02:00
Simon Goldschmidt
b9b74b2d92
lwiperf: make tradeoff client mode work
2018-06-21 22:06:36 +02:00
Simon Goldschmidt
9992b48e90
fix compiling with LWIP_NOASSERT defined
...
See bug #54157
2018-06-20 20:56:20 +02:00
Simon Goldschmidt
871f27628b
lwiperf: fix unused function warning/error
2018-06-18 07:24:42 +02:00
Simon Goldschmidt
58b5a5fc5a
lwiperf: implemented "dual" client mode
2018-06-17 21:04:57 +02:00
Simon Goldschmidt
a057caee45
lwiperf: start implementing iperf client
...
Only the transmission side works for now (todo: dual and tradeoff mode).
Also, only a 10 second timeout mode is implemented for now.
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-06-15 22:26:32 +02:00
Simon Goldschmidt
eb91fdd861
httpd: fix missing null termination when searching for a default file in file system folder
2018-06-12 20:14:04 +02:00
Dirk Ziegelmeier
d996d0f486
Apply patch #9629 : tftp_cleanup() should clean up more
...
By Jens Nielsen
2018-05-21 09:27:31 +02:00
Simon Goldschmidt
0f165ff136
etharp: use generic types in external access to ARP table
...
This should hide the internal type used for access to the ARP table
which currently is s8_t or u8_t, depending on the use case.
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-05-17 21:16:06 +02:00
Axel Lin
ec8c764fcb
apps/smtp: Fix build warning when !(SMTP_SUPPORT_AUTH_PLAIN || SMTP_SUPPORT_AUTH_LOGIN)
...
Fix build warning: ‘smtp_base64_encode’ declared ‘static’ but never defined.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2018-05-17 19:50:17 +08:00
Axel Lin
795f05c5d3
apps/smtp: Fix build warning when SMTP_CHECK_DATA==0
...
Fix build warning: 'smtp_verify' declared 'static' but never defined.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2018-05-17 17:06:31 +08:00
goldsimon
a445172661
makefsdata: fix hiding local variable 'i'
2018-05-02 10:05:24 +02:00
goldsimon
b2ef9d9046
netbiosns: fix bug #53747 (need to verify received packet length)
2018-04-25 20:56:34 +02:00