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
Our Air Quality
373bf8c36d
Quieten a toupper() compiler warning.
...
Gcc complains that an array index is a 'char' when passing a 'char' to
toupper(). Quieten this by coercing to an 'unsigned char'.
Signed-off-by: goldsimon <goldsimon@gmx.de>
2018-04-25 20:39:25 +02:00
Jens Nielsen
c34120e855
TFTP server handle retransmit Data packets
...
Signed-off-by: goldsimon <goldsimon@gmx.de>
2018-04-25 20:29:31 +02:00
goldsimon
b1fe8cf4b8
netbiosns: check question type before generating an answer
2018-04-18 08:17:10 +02:00
goldsimon
f65911a84b
netbios: fix response length of node status response
2018-04-18 07:28:41 +02:00
Dirk Ziegelmeier
66800925cf
Fix indent in netbiosns.c
2018-04-17 14:08:59 +02:00
Dirk Ziegelmeier
533c97f0c3
Fix bug #53626 : NetBIOS Responder generates malformed packet responding to "*" name
...
Implement corrected answer packet
2018-04-16 10:40:05 +02:00
goldsimon
4cc953d0e3
httpd: fixed compiling makefsdata.c
2018-04-04 21:45:47 +02:00
Ray Abram
b0ae967660
NetBIOS Responder should respond to "*" names
...
See bug #53325
Signed-off-by: goldsimon <goldsimon@gmx.de>
2018-04-03 22:19:18 +02:00
Tom Ferrin
82d8f08451
Add "server reachability" register to SNTP
...
Guarded with SNTP_MONITOR_SERVER_REACHABILITY (sntp_opts.h).
See patch 9581
Signed-off-by: goldsimon <goldsimon@gmx.de>
2018-04-03 21:56:33 +02:00
Tom Ferrin
e46b9ad4ac
sntp: store server IP address after DNS lookup
...
See patch #9612
Signed-off-by: goldsimon <goldsimon@gmx.de>
2018-04-03 21:16:05 +02:00
Giuseppe Modugno
2d4da92eeb
makefsdata: added options to skip and avoid compressing some extensions
...
See patch #9605
Signed-off-by: goldsimon <goldsimon@gmx.de>
2018-04-03 21:08:25 +02:00
goldsimon
c974fc9d43
http_client: fix compiling if mem_size_t is smaller than size_t
2018-03-21 09:33:00 +01:00
Axel Lin
600527dde7
apps/http: httpd: Fix unused parameter warning if !LWIP_HTTPD_SUPPORT_V09
...
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2018-03-21 15:05:33 +08:00
Axel Lin
e19d908f0e
apps/http: Fix httpd_structs.h build error
...
Fixes: bug #53382 : HTTPD_ADDITIONAL_CONTENT_TYPES doesn't compile
Reported-by: Giuseppe Modugno <giuseppe.modugno.loqed@gmail.com>
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2018-03-19 21:08:17 +08:00
goldsimon
253fcc8dcd
http_client: call tcp_recved for header bytes
...
Without this, closing the connection after successful transfer resulted
in a RST being sent because the window was not fully marked as 'recved'.
Signed-off-by: goldsimon <goldsimon@gmx.de>
2018-03-09 11:30:23 +01:00
goldsimon
61a1b98cc9
various IPv6-only compile fixes
2018-03-07 20:55:00 +01:00
goldsimon
b6d9bb6b2a
http_client: check current state when receiving FIN
2018-03-06 21:51:13 +01:00
Axel Lin
53ddb9244b
apps/sntp: Trivial build warning fix
...
Fix below build warning:
../../../../lwip/src/apps/sntp/sntp.c: In function ‘sntp_servermode_dhcp’:
../../../../lwip/src/apps/sntp/sntp.c:726:3: warning: ISO C90 forbids mixed declarations and code [-Wc90-c99-compat]
u8_t new_mode = set_servers_from_dhcp ? 1 : 0;
^~~~
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2018-03-04 19:18:26 +08:00
goldsimon
0ee0393936
fix compiling http_client and altcp_proxyconnect with gcc
2018-02-22 09:12:51 +01:00