Jerome Forissier
b1edb7780f
tftp: bind to TFTP port only when in server mode
...
The TFTP app should not bind to the TFTP server port when configured as
a client. Instead, the local port should be chosen from the dynamic
range (49152 ~ 65535) so that if the application is stopped and started
again, the remote server will not consider the new packets as part of
the same context (which would cause an error since a new RRQ would be
unexpected).
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
2025-07-15 22:09:27 +02:00
Mike Kleshov
ca0395c5ae
Revert "Apply patch #10511 : remove code with no effect in httpd.c"
...
This reverts commit f877b457a1bb759d48567326ec020be7e3a3d989.
2025-04-02 10:22:43 +03:00
Mike Kleshov
f877b457a1
Apply patch #10511 : remove code with no effect in httpd.c
2025-03-21 19:35:05 +03:00
Mike Kleshov
6c8874bf5d
Apply patch #10047 : HTTP11_CONNECTIONKEEPALIVE2 not needed any more
2025-03-21 19:25:31 +03:00
Oswin Bult
8459488006
Apply patch #10406 : simplify sign extension
2025-03-21 18:48:50 +03:00
Jarno Malmari
e55896319b
Fix compilation with LWIP_DEBUG
...
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2025-02-24 21:52:41 +01:00
Jan Breuer
5ee5801c2c
snmp: remove unused prev field from snmp_varbind
2024-11-29 18:26:07 +01:00
Jan Breuer
f05e20101e
snmp: remove handling of varbind->prev because it is never used
...
No code in snmp traverses varbinds backwards so prev is never used.
This also fixes false positive dangling pointer detection by GCC.
2024-11-29 18:26:07 +01:00
Jan Breuer
52bb3eedd7
snmp: fix dangling pointer in snmp_traps
2024-11-29 18:26:07 +01:00
Erik Ekman
3cae475d63
apps/snmp: Remove @retval tags on void methods
...
Fixing clang 19.1.0 error:
src/apps/snmp/snmp_traps.c:140:15: error: empty paragraph passed to '@retval' command [-Werror,-Wdocumentation]
2024-11-26 23:45:57 +01:00
jeans
86c9f79991
refactor: added apple macro for fs handling
2024-05-14 13:53:42 +02:00
Krzysztof Mazur
e799c266fa
makefsdata: extend file type matching with .shtml and .shtm
...
[Problem]
When using makefsdata perl script to convert shtml files with SSI tags
the shtml files get generated with text/plain content type, making
browsers not render them correctly
[Solution]
Extend the regex to generate text/html content type for any of:
.htm, .html, .shtm, .shtml extensions
2024-02-19 20:58:58 +01:00
Simon Goldschmidt
25de99d1c1
Introduce constant-time memcmp and use it for snmpv3_get_engine_boots
...
See #65118
2024-01-09 21:14:49 +01:00
Simon Goldschmidt
09188668c7
update tinydir.h to newest version (1.2.6)
...
Update to cxong/tinydir version 1.2.6 commit 8124807 ("Fix buffer overflow in tinydir_file_open with long path names")
Although we're not affected of this bug, prevent others copying from our repo being affected...
2024-01-04 22:00:56 +01:00
Simon Goldschmidt
b413b04093
makefsdata: fix buffer corruption with very long paths
...
See bug #64941
2023-11-29 22:03:46 +01:00
Simon Goldschmidt
ee1523630a
httpc with LWIP_HTTPC_HAVE_FILE_IO: fix heap buffer overflow for long local filenames
...
See bug #64940
2023-11-29 21:35:38 +01:00
Erik Ekman
5e45328bb5
src/apps: Fix speling issues
...
Found by codespell
2023-10-14 18:08:00 +02:00
Erik Ekman
3c06267d8e
apps/http_client: Fix speling issues
...
Found by codespell
2023-10-14 17:51:01 +02:00
David Fries
35cbad52cc
Document that sntp_setservername doesn't copy the string
...
I was expecting the string to be duplicated, doing a Google search
shows others did as well.
2023-10-12 21:04:11 +02:00
Simon Goldschmidt
583f352f60
altcp_mbedtls: don't ignore return value of mbedtls_ssl_flush_output
...
see bug #64045/task #16283
2023-10-11 21:18:56 +02:00
Simon Goldschmidt
ab1f582043
httpd: fix bug #64458 : When tcp_err() is invoked, tcp_pcb is freed but httpd_post_finished() is not called by httpd.c
2023-10-10 20:40:42 +02:00
Simon Goldschmidt
b5f6720f88
apps/tftp: fix compiling for 64-bit
2023-10-10 20:39:45 +02:00
Simon Goldschmidt
98e63b6acf
apps: http client: improve the HTTP client; ensure connection settings are passed
...
Without connection settings, the caller is not informed of success vs failure of a transfer.
See bug #63554
2023-10-04 22:26:22 +02:00
Simon Goldschmidt
14444c1c7f
mqtt: support binary Will Message
...
see patch #10049
2023-09-29 22:08:03 +02:00
Simon Goldschmidt
2159f84682
httpd: compare client requests case-insensitive
...
Fixes bug #10047 (Fix case-sensitive comparison of Content-Length header for POST requests)
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2023-09-28 22:30:47 +02:00
Simon Goldschmidt
3792075baf
Fix bug #64637 ("iperf -n 1000 -r" does not work)
2023-09-27 21:01:52 +02:00
Shawn Silverman
e29870c15e
Fix a printf conversion specifier in mdns.c
...
Use U32_F to print a u32_t.
2023-05-11 22:16:49 +02:00
Shawn Silverman
f84076b112
Add missing terminating newlines to LWIP_DEBUGF statements
2023-05-11 22:13:51 +02:00
Mingjie Shen
e3a20b3bc2
mdns: Add null check for pbuf_skip
2023-05-11 21:26:22 +02:00
Jan Breuer
1c5cc7bc02
snmp_v3: fix reported usmUserAuthProtocol for SHA
2023-05-11 21:05:16 +02:00
Simon Goldschmidt
3a9c1e48dd
altcp_tls_mbedtls: note which version of mbedtls we are compatible to
...
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2023-05-10 21:00:23 +02:00
Jonathan Demeyer
234d282936
mqtt: Fix typos on 'incomming'
2022-05-09 21:10:34 +02:00
Simon Goldschmidt
a55679224f
fs: move prototypes required to implement custom files as fs addon to header
2022-02-12 09:40:32 +01:00
Florian La Roche
62ac0faad8
redefine many vars as "static"
...
See patch #10156
2021-12-30 22:13:01 +01:00
0x1abin
63d21c53e5
altcp mbedtls: Compile error fix.
2021-12-07 00:47:05 +01:00
Florian La Roche
089697bb1c
Use NULL instead of 0 as a pointer
...
Recommended by 'sparse' tool
2021-11-27 15:49:20 +01:00
Bas Prins
a44fcb2e2e
http_client: reset timeout when receiving data
...
This fixes downloads longer than 15 seconds.
See bug #60787 (http_client does not reset timeout counter)
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2021-11-12 23:11:22 +01:00
Simon Goldschmidt
a72fc743ef
update tinydir.h to newest version
...
Update to cxong/tinydir commit 97a6032ddb ("Fix tinydir_file_open for root or subfolder of root in Linux.")
This should fix bug #61106 (compiling newest source fails with "-O3" optims)
2021-11-12 22:56:56 +01:00
Tom Collins
601e1bb326
altcp mbedtls: fix error in preprocessor logic setting ALTCP_MBEDTLS_PLATFORM_ALLOC
...
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2021-11-12 22:31:04 +01:00
Jannis Achstetter
7ec4e9be30
makefsdata: Support using the system's zlib instead of only minizip for deflate compression and note so in the readme
...
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2021-05-21 22:32:37 +02:00
Simon Goldschmidt
18b1178e0c
makefsdata: add version info
...
This is required to make it possible to see you're using an old version if something doesn't work...
See task #15331
2021-03-04 21:51:06 +01:00
Harrold Spier
79c8a04152
SNMP netconn API should not check for core locked
...
See patch #9907
2021-03-04 21:29:20 +01:00
Jeremy HU
4a169109a7
makefsdata: Fix flags missing
...
Fix the Perl script from which the generated fsdata.c cause runtime assertion: "HTTP headers not included in file system".
2021-03-04 21:16:48 +01:00
Simon Goldschmidt
1f4a029d10
mqtt: check data_cb != NULL
2021-03-04 20:18:04 +01:00
Simon Goldschmidt
d7a0757764
mqtt: allow calling mqtt_set_inpub_callback before mqtt_client_connect
...
See also patch #10037
2021-03-04 20:14:46 +01:00
Mike Kleshov
6fee08daab
httpd: revert part of previous change
...
pextension needs to be zeroed in case fs_file structure
is reused in a persistent HTTP connection
2021-01-29 08:02:56 +03:00
Simon Goldschmidt
fc5b6f7b0e
lwiperf: fix double-free of pcb on error
...
See bug #59841 (PCB double-free happened at lwiperf TCP error)
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2021-01-28 20:00:11 +01:00
Mike Kleshov
9b040624c0
httpd: follow-up to previous commit
...
see bug #59876
2021-01-28 19:53:57 +03:00
Mike Kleshov
89dca4588f
httpd: follow-up to previous commit, replace strstr() with memcmp()
2021-01-27 19:28:19 +03:00
Mike Kleshov
fdd702e61b
httpd: fix bug #58223
2021-01-26 19:19:32 +03:00