Florian La Roche
089697bb1c
Use NULL instead of 0 as a pointer
...
Recommended by 'sparse' tool
2021-11-27 15:49:20 +01:00
Erik Ekman
f3300731be
example_app: Minor tweaks
...
- Make variables static
- Fix spelling
- Use NULL instead of 0 as a pointer
2021-11-26 22:41:06 +01:00
quanjia
553fedd443
ping: sizeof to struct not pointer
2021-11-25 00:14:59 +01:00
Florian La Roche
53c09fe921
tcp_out: move debug output to after checking pcb
2021-11-24 23:17:16 +01:00
Florian La Roche
3636b3e2d1
iteropts.sh: Fix warning on first run
...
Running iteropts.sh there is a warning on the first
cycle that lwipopts_test.h cannot be removed.
2021-11-24 23:04:57 +01:00
Florian La Roche
fdcfb9bdce
contrib/ports: check library has moved to github
2021-11-24 22:52:18 +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
Simon Goldschmidt
12506cda7d
doc/FILES: remove outdated entries
2021-11-10 21:14:02 +01:00
Florian La Roche
e8741da9d2
contrib/ports: Remove redundant -Wredundant-decls
2021-10-03 12:45:51 +02:00
Simon Goldschmidt
39a9c5a3c5
netif: fix removing ext-callback while callback is called
...
When a registered netif ext-callback unregisters itself when being
called (e.g. because some state is reached by this event), the invoke
iteration might access uninitialized memory or at least stop the
iteration (because next is set to null).
Fix his by caching the next pointer during iteration before calling
callbacks.
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2021-10-01 19:44:07 +02: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
bb5ee3783a
fix compiling/running tests on win32
...
- new files
- different warning settings
- all tests run in a single process (no fork)
2021-05-21 22:00:49 +02:00
Simon Goldschmidt
a8e8ce4108
dhcp: don't set a default gateway if dhcp server doesn't give one
...
see bug #60578
2021-05-14 10:32:57 +02:00
Axel Lin
919dc2019a
acd: Fix updating prev pointer in acd_remove
...
Fixes: 3a788b6e8b
("dhcp: remove acd handle when stopping dhcp")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2021-05-14 13:48:43 +08:00
Eric Koldeweij
b538bff383
ip6: Fix crash in ip6_output with debug enabled
...
It turns out the crash only occurs if LWIP_DEBUG is enabled. If the
parameter dest is NULL the function tries to find a route using the
destination address of the packet instead. If this fails as well a
debug message is printed but it is still using dest causing a NULL
pointer dereference and crash at src/core/ipv6/ip6.c line 1312.
[erik@kryo.se: Apply fix to ip6_output_hinted as well]
2021-05-13 13:40:33 +02:00
Erik Ekman
b9056e148e
acd: Fix LWIP_ASSERT argument order
2021-05-13 13:28:02 +02:00
Simon Goldschmidt
3a788b6e8b
dhcp: remove acd handle when stopping dhcp
...
see bug #57706
2021-05-12 21:05:17 +02:00
Simon Goldschmidt
fa5ca55c9d
pbuf_realloc: check that mem_trim does not move the memory
...
Our own implementation does not do this, but overridden implementations
calling 'realloc()' might invalidly do this
2021-05-12 21:05:17 +02:00
Erik Ekman
b0e347158d
dhcp: Add missing newline to debug message
2021-03-25 20:56:21 +01:00
Simon Goldschmidt
0056522cc9
netdb: improve documentation of LWIP_DNS_API_HOSTENT_STORAGE
2021-03-05 13:04:59 +01:00
Simon Goldschmidt
8a900aa81f
netdb: fix alignment warning in debug output
...
see bug #58650
2021-03-05 13:04:18 +01:00
Simon Goldschmidt
3ff267fbed
dhcp: prevent dhcp_cleanup passing external data to heap
2021-03-04 22:20:17 +01:00
Simon Goldschmidt
c7e1b35899
dhcp: convert 'subnet_mask_given' to 'flags'
...
Don't waste 7 bits (in preparation for more flags)
2021-03-04 22:16:19 +01: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
Simon Goldschmidt
f924c43621
doc: add description to get a release tgz from git
2021-03-04 21:46:58 +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
Hu Keping
ccea55370a
Remove unnecessary files in release tarball
...
This patch adds a few entries in .gitattributes to specify files that
should never end up in a distribution tarball.
Signed-off-by: Hu Keping <hukeping@huawei.com>
2021-03-04 21:22: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
Oliver Hitz
b5176936c7
tcp: make tcp_listen() inherit the netbuf_idx of the original pcb
...
This simple patch causes tcp_listen() to inherit the netbuf_idx setting
of the original pcb. Without this, it is not possible to restrict a
socket to a specific interface using SO_BINDTODEVICE before listening.
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2021-03-04 21:15:25 +01:00
Simon Goldschmidt
3666dcc66c
tcp: send RST to input netif when no pcb is available
...
If we know there's no matchin pcb (e.g. for routing), don't even
try to pass NULL but instead send the RST to the input netif.
See also patch #9988 .
2021-03-04 21:10:28 +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
Christoffer Lind
600e248f06
dhcp: generate new xid for DHCP release
2021-03-02 22:49:57 +01:00
Erik Ekman
988ce1e80e
netif: Add test for netif_find
2021-02-27 12:28:14 +01:00
Erik Ekman
e02d126b07
lowpan6: Use arch-independent printf formatters
2021-02-13 21:14:29 +01:00
Erik Ekman
74231d6873
netif: Add test for netif_is_flag_set()
2021-02-08 19:29:33 +01:00
Thomas Mueller
7a2923020f
Fix typo in definition of netif_is_flag_set() macro
2021-02-08 19:17:20 +01:00
Simon Goldschmidt
12b45506dd
fs_example: fix comment in fs_wait_read_custom
...
See bug #59866
2021-01-30 22:13:29 +01:00
Simon Goldschmidt
9aae444f49
pbuf_free: remove outdated comment about packet queues
...
See bug #59875
2021-01-30 22:08:36 +01:00
Simon Goldschmidt
3e098f90df
pbuf: fix allocating large PBUF_RAM
...
See bug #59974
2021-01-30 22:06: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
yuanjm
b00a05d086
lwip_selscan: lwip_selscan return -1 without setting errno number
...
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2021-01-28 21:00:37 +01: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
69725292a0
httpd: wrap fs_file::pextension in a config macro
...
see bug #59876
2021-01-28 08:29:25 +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
Mike Kleshov
1678b21a94
httpd: remove fs_file::is_custom_file, use fs_file::flags instead
2021-01-25 21:49:17 +03:00