Commit Graph

633 Commits

Author SHA1 Message Date
Simon Goldschmidt
acc69ff333 Added missing files (test_pbuf.c/.h) 2013-01-11 21:24:39 +01:00
Simon Goldschmidt
e7723b295d Fixed compiling tcpdump.c after removing the macro TCPH_OFFSET() (patch by Erik Ekman) 2012-09-26 21:33:25 +02:00
Simon Goldschmidt
f9147eb997 bug #37151 HTTP header corrupted in http_post_request 2012-08-22 22:21:35 +02:00
Simon Goldschmidt
7c9f0dce5a Fixed bug #36905 SNTP problem with SNTP_STARTUP_DELAY symbol (by adding a new optional macro SNTP_STARTUP_DELAY_FUNC) 2012-08-13 21:43:43 +02:00
Simon Goldschmidt
b14da81fb9 Patch by Sylvain Rochet: Fixed bug #36436: ethernet input flag not set on unix proj minimal mintapif 2012-05-11 22:42:32 +02:00
Simon Goldschmidt
ec429c725a Fixed bug #36374 makefsdata.exe can't handle files with non-C characters (allow only 'A-Z', 'a-z', '0-9' and '_' for C variable names) 2012-05-02 22:19:30 +02:00
Simon Goldschmidt
00e04f9cdb Added dhcp unit test to Win32 project 2012-03-25 17:26:22 +02:00
Erik Ekman
4ad9b0501c Add unit tests for DHCP
Three simple tests that test the basic functionality of the DHCP client.
They require that UDP checksums are off for now.
2012-03-25 17:24:34 +02:00
Simon Goldschmidt
5b1bd88115 unixif: fixed unused variable warning, replaced tabs with spaces 2012-03-01 19:15:38 +01:00
Simon Goldschmidt
600b8665a5 patch #7731 contrib: Add -fPIC to CFLAGS in unix/proj/lib (by Erik Ekman) 2012-03-01 18:59:22 +01:00
Simon Goldschmidt
6f002beae5 httpd: don't shadow globals ('abort' is declared under linux) 2012-02-23 19:01:05 +01:00
Simon Goldschmidt
cc786efa73 unixsim: change lwipopts.h to not break init.c sanity checks 2012-02-23 19:00:59 +01:00
goldsimon
ae3ba92f3f httpd: updated example index.html to provide links to our savannah page and wiki instead of adam's (not updated) site only 2012-02-23 19:00:48 +01:00
goldsimon
79761834da Win32 pcapif: use pcap_findalldevs(), not pcap_findalldevs_ex() (we don't capture remotely), added missing casts 2012-02-23 08:46:55 +01:00
Simon Goldschmidt
72e48fada0 unix unit test Makefile: use lwipopts.h from test/unit instead of using our own configuration. 2012-02-22 21:49:08 +01:00
Simon Goldschmidt
1cd61ba1ae sntp: added function sntp_stop() to stop the module, removed the (incomplete) socket part. 2012-02-22 21:10:45 +01:00
Simon Goldschmidt
3af14514dd httpd: use better default values: support HTTP request in up to 5 pbufs by default 2012-02-22 20:56:45 +01:00
Simon Goldschmidt
59c83ef10e httpd: ensure tcp_write() isn't called with len==0 2012-02-22 20:55:27 +01:00
goldsimon
2cb9d29591 win32 projects: fixed warning level and build options 2012-02-16 15:48:22 +01:00
goldsimon
8eb51799aa httpd:
- include 'struct fs_file' in 'struct http_state' to prevent file allocation fails when connection allocation succeeded (plus have less allocations/pools);
- added (conditional) code to abort the oldest connection when allocating a new connection fails;
- fixed some warnings;
2012-02-16 15:39:15 +01:00
goldsimon
98b666de5d changed win32 projects to compile unit tests using correct lwipopts.h, removed unncessesary <FileConfigurations> 2012-02-16 13:24:13 +01:00
Simon Goldschmidt
88b5a36be2 Added Makefile to run the unit tests under unix/linux 2012-02-14 21:55:20 +01:00
Simon Goldschmidt
48e301d329 Fixed unix makefiles by adding IPv6 source files to the binary 2012-02-14 21:43:21 +01:00
Simon Goldschmidt
49fcad8f65 Fixed warning about unused http_continue() 2012-02-14 21:25:06 +01:00
Simon Goldschmidt
907ea97876 Fixed warnings when assigning time_t to int/u32_t 2012-02-14 21:11:42 +01:00
Simon Goldschmidt
2a2617bc19 Use C-style comments, not C++ style 2012-02-13 20:46:40 +01:00
Simon Goldschmidt
00b2bb461a udpecho: no need netconn_connect, since the netbuf contains the address (bug #34921) 2012-01-20 21:57:26 +01:00
goldsimon
5ab0be592b Prevent multiple calls to httpd_post_finished, since it might have already been called before from httpd_post_data_recved(). 2012-01-12 15:45:27 +01:00
Simon Goldschmidt
2d6a677a08 - include opt.h as first file (as done in all other C files);
- explain tcp_setprio instead of that nonsense comment :-)
2011-11-29 21:48:32 +01:00
Simon Goldschmidt
16e98196e0 Fixed type in define: CUSTUM -> CUSTOM 2011-11-28 22:22:17 +01:00
Simon Goldschmidt
7546907c7b makefsdata:
- fixed typo (struct ffblk, not fflbk);
- changed include path to be relative to lwip's 'include' dir
2011-11-25 17:59:09 +01:00
Simon Goldschmidt
af07304f02 Fixed typos (used pcapif_ instead of pcapifh_) 2011-11-24 20:51:49 +01:00
Simon Goldschmidt
62a162ac66 pcapif_low_level_input: let IPv6-multicast MAC addresses through, correctly check IPv4-multicast MAC addresses 2011-11-23 21:29:43 +01:00
Kieran Mansley
3a5de6effd Bug34596: remove LWIP_TIMEVAL_PRIVATE setting from unix project lwipopts.h 2011-11-01 12:57:57 +00:00
Kieran Mansley
0b90e53845 Bug34596: set LWIP_TIMEVAL_PRIVATE in unix port 2011-10-28 13:42:54 +01:00
Simon Goldschmidt
2b8147b8d9 win32 test: added support for (multiple) SLIP netifs (routing between pcap and SLIP works, 2 SLIP netifs can be used for "loopback" SLIP traffic via named pipes) 2011-10-21 22:43:10 +02:00
Simon Goldschmidt
cc16cae039 win32 sio.c: added missing function sio_tryread(), fixed COM port usage (now it works for me to connect lwIP from win32 to my AVR target using SLIP) 2011-10-21 22:27:55 +02:00
Simon Goldschmidt
cac420aec5 pcapif: remove trailing spaces from adapter names, deleted old (unused) files 2011-10-21 20:03:37 +02:00
goldsimon
a412496558 SMTP: disable compilation when LWIP_TCP is disabled 2011-10-21 13:28:01 +02:00
Simon Goldschmidt
b9eba2dc8e Merge branch 'master' of git.sv.gnu.org:/srv/git/lwip/lwip-contrib 2011-10-18 20:14:28 +02:00
Simon Goldschmidt
7b92f34341 sys_now() should work for NO_SYS, too (where sys_init() is not called) 2011-10-18 20:14:05 +02:00
goldsimon
eaf034149e Fixed bug #34582 missing limits.h for unix arch (needed for default value "INT_MAX" of RECV_BUFSIZE_DEFAULT) 2011-10-18 10:36:38 +02:00
goldsimon
bdcf5c1ef9 fixed msvc project files for compiling/running unit tests 2011-10-11 09:17:26 +02:00
Simon Goldschmidt
eee1d67e7a Patch by Gisle Vanem: fix Win32 port for MinGW 2011-09-29 21:43:53 +02:00
Simon Goldschmidt
288914b5c0 ping: fixed input pbuf processing when using raw API (check p->tot_len before calling pbuf_header) 2011-09-22 21:12:06 +02:00
Simon Goldschmidt
52aa714af2 Changed PBUF_POOL_SIZE to not break the sanity checks in init.c 2011-09-21 18:52:33 +02:00
goldsimon
c662bb3aa3 win32 port: fixed compilation of test.c, added ppp_impl.h to project 2011-09-13 07:54:33 +02:00
Simon Goldschmidt
e3bcc2fe4e pcapif: added the possibility to instantiate more than one pcap driver by passing the adapter index as 'state' to netif_add() 2011-09-11 12:49:57 +02:00
Simon Goldschmidt
7f3c08494a Win32 sys_init(): initialize the random seed (or we use the same random values for every process) 2011-09-11 12:46:18 +02:00
Simon Goldschmidt
d1bf1ee0da httpd + makefsdata:
- added delayed open/read functionality (so that SSI code can delay sending of a file until internal data is available);
- clean up fs-handling: additional read is not required with our current fs implementation;
- kill oldest connection when running out of http_state memory;
- splitted SSI state into its own struct so that non-SSI pages don't consume too much memory (SSI buffer can get quit big);
- added support for HTTP/1.1 persistent connections (use the '-11' switch of makefsdata; not available for SSI files since we cannot calculate the file length in advance);
- splitted the unreadably-long function http_send_data into multiple smaller functions;
2011-09-04 19:26:46 +02:00