Jonathan Neuschäfer
e8b0324f81
test/fuzz: Don't crash with assertion failure when a packet is too big
...
A fuzzer may generate big packets, and it will interpret assertion
failures as bugs. Instead of asserting that the packet size is
reasonable, simply skip the packet when it's not the case.
2023-04-07 22:25:50 +02:00
Renzo Davoli
0f2de1f684
contrib/ports/unix: add vdeif
2023-04-07 22:13:55 +02:00
Renzo Davoli
427b4f9b08
add posixlib
2023-04-07 22:11:27 +02:00
Renzo Davoli
6a350a0278
contrib/port/unix/lib: exclude slipif.c source
2023-04-07 22:07:17 +02:00
Simon Goldschmidt
3fe8d2fc43
get cmake to compile under windows with ms cl compiler
...
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2023-01-03 21:34:05 +01:00
Simon Goldschmidt
eaf4926239
UPGRADING: added a not about merging contrib
2022-12-22 22:07:16 +01:00
Simon Goldschmidt
e6341a6081
some documentation fixes after merging contrib and example apps
...
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2022-12-22 21:42:42 +01:00
Simon Goldschmidt
790b914fea
pbuf_copy_partial_pbuf: fix warning about assigning to smaller type when using '-=' operator
...
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2022-12-22 20:43:18 +01:00
Steven Wartik
4b7a54c06c
Added warning to cmake instructions when lwipcfg.h isn't present.
...
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2022-12-22 20:42:25 +01:00
yuanjm
239918ccc1
tcp: Make retransmission timeout (RTO) configurable
2022-05-09 21:24:57 +02:00
Erik Ekman
876517ea3e
gitignore: *.exe moved to top level
...
Requested on lwip-devel list
2022-05-09 21:13:38 +02:00
Jonathan Demeyer
234d282936
mqtt: Fix typos on 'incomming'
2022-05-09 21:10:34 +02:00
Giuseppe Modugno
52b4649636
Replace C++ comment with standard C comment to avoid error during building with -Werror.
2022-05-09 21:07:14 +02:00
Simon Goldschmidt
124dc0a64e
vscode: fix debugging on windows
2022-03-25 21:29:31 +01:00
Simon Goldschmidt
7807402899
cmake: fix building on windows with mingw64
...
- wpcap/packet libraries were wrong (.a, not .lib; not the x64 ones)
- link order resulted in undefined references
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2022-03-22 22:38:28 +01:00
Simon Goldschmidt
215dec653b
fix some compile problems with mingw
2022-02-12 09:40:32 +01: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
34e435c786
tapif: fix strncpy
...
Adjust the strncpy() call in tapif.c to how this is coded
in other strncpy() invocations. Also gcc warns about this.
See patch #10142
2021-12-30 22:58:52 +01:00
Florian La Roche
7c3aab2ea2
gcc warning for sign conversion
...
See patch #10143
2021-12-30 22:48:18 +01:00
Florian La Roche
62ac0faad8
redefine many vars as "static"
...
See patch #10156
2021-12-30 22:13:01 +01:00
Wouter van Gulik
5ab46f82f9
Fix failing fuzzer if compiling with ubsan
...
See patch #10163
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2021-12-30 22:04:23 +01:00
Simon Goldschmidt
7e96691ccf
ignore LwipMibCompiler output files
2021-12-22 21:39:27 +01:00
weycen
9f7d9170c1
netif: fix the netif's index error
...
When using multiple netifs on one hardware interface (e.g. when mapping multiple IP addresses to one hardware interface), if the netif's low-level receive routine cannot decide for the correct netif, here the `netif` parameter may be a default netif, in this case, `p-> if_idx` will get a wrong netif index value. It should be placed after `netif = LWIP_ARP_FILTER_NETIF_FN(p, netif, lwip_htons(type));`. Filter function can returns the correct netif before assigning `p-> if_idx`.
2021-12-07 00:57:48 +01:00
0x1abin
63d21c53e5
altcp mbedtls: Compile error fix.
2021-12-07 00:47:05 +01:00
Erik Ekman
562431b034
Update gitattributes after travis removal
2021-11-28 20:56:37 +01:00
Erik Ekman
ff28f73fa0
README: Update CI link
2021-11-27 21:09:06 +01:00
Erik Ekman
853258fff0
Switch from travis to github actions for CI
...
travis.org is no longer active
2021-11-27 20:48:02 +01:00
Erik Ekman
7c84799c4f
doxygen: Remove obsolete config
...
warning: Tag 'PERL_PATH' at line 2212 of file '/home/runner/work/lwip/lwip/doc/doxygen/lwip.Doxyfile' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'MSCGEN_PATH' at line 2234 of file '/home/runner/work/lwip/lwip/doc/doxygen/lwip.Doxyfile' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
2021-11-27 20:40:54 +01:00
Erik Ekman
17413c28b4
httpd: Add documentation for http_set_cgi_handlers
2021-11-27 20:36:27 +01:00
Erik Ekman
5b9159ce0d
api: Adapt doc comment to varying parameters
2021-11-27 20:32:59 +01:00
Erik Ekman
754d628f2d
ip_addr: Add description for IP_ANY_TYPE
2021-11-27 20:32:59 +01:00
Erik Ekman
b0361f14c1
netif: Add documentation for mac filter macros
2021-11-27 20:17:30 +01:00
Erik Ekman
2711dbcac0
lwiperf: Complete documentation of lwiperf_report_fn
...
Doxygen did not like only annotating one parameter.
2021-11-27 20:17:30 +01:00
Erik Ekman
e594742801
altcp: Add doxygen comment for altcp_allocator_t
2021-11-27 20:17:30 +01:00
Erik Ekman
759c38b956
ip_addr: Add text descriptions for ip addr macros
...
Doxygen seems to ignore them otherwise.
2021-11-27 20:17:30 +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
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