Commit Graph

671 Commits

Author SHA1 Message Date
Kieran Mansley
4ebfe86430 fix use of inet_chksum_pseudo in unixsim 2011-07-29 13:38:53 +01:00
Simon Goldschmidt
2f3fdb4c97 Tried to fix the unix port projects after adding IPv6 2011-07-28 21:55:53 +02:00
goldsimon
32b341c04a Fix compiler warnings in debug macros 2011-07-06 08:37:01 +00:00
goldsimon
cf57b51527 Adapted include path to inet_chksum.c 2011-07-06 07:15:13 +00:00
goldsimon
87a03a8aad ... and changed some more files 2011-07-06 07:14:35 +00:00
goldsimon
c2b8b721e3 Fix VisualStudio project files after adding IPv6 2011-07-06 07:07:52 +00:00
goldsimon
b73187713f httpd: move some variables from rwdata- to rodata- or bss-section 2011-03-27 13:07:48 +00:00
goldsimon
1c84fa5e5d Added unsigned modifier 'U' to defined constants 2011-02-18 13:24:21 +00:00
kieranm
c67a905dd9 Fix compile error in httpd.c 2011-02-03 12:44:15 +00:00
goldsimon
61cd545508 Improved debug output on sending data 2010-11-20 17:29:35 +00:00
goldsimon
dc0cd64e63 Fix compilation warnings (due to undefined defines) 2010-09-30 10:41:09 +00:00
goldsimon
a679e2aec6 - strip '?' from all uris before passing them to fs_open;
- http_close_conn must handle hs==NULL correctly (when called from http_poll);
- added LWIP_HTTPD_ABORT_ON_CLOSE_MEM_ERROR to call tcp_abort when tcp_close fails with out-of-memory error;
- httpd_init checks if the memp pool MEMP_HTTPD_STATE is big enough if HTTPD_USE_MEM_POOL==1
2010-07-19 14:26:36 +00:00
kieranm
9c86a78404 Set netif->flags appropriate for Ethernet device 2010-07-16 12:49:02 +00:00
goldsimon
c0b51ff573 Fixed HTTP header for 400 (Bad Request) and 501 (Not Implemented) 2010-07-07 08:17:12 +00:00
goldsimon
5afec09b38 Fixed compilation for LWIP_HTTPD_POST_MANUAL_WND==0 2010-07-06 20:24:36 +00:00
goldsimon
19de161358 - added LWIP_HTTPD_SSI_INCLUDE_TAG (default on): when off, don't include the SSI tag in the output sent to clients (so SSI tags can be used anywhere, even in input boxes);
- fixed copy/nocopy for SSI files;
- added LWIP_HTTPD_SSI_MULTIPART (default off): when on, SSI functions have one more argument that is used as state for an SSI tag to return more than LWIP_HTTPD_MAX_TAG_INSERT_LEN bytes (the handler function is then called multiple times);
- added LWIP_HTTPD_POST_MANUAL_WND (default off): when on, post callbacks can throttle RX speed by manually sending window updates (i.e. tcp_recved is called manually by calling httpd_post_data_recved);
- added LWIP_HTTPD_FILE_STATE (default off): when on, fs_open/fs_close call application defined functions fs_state_init/fs_state_free (fs_state_init returns a void pointer that is passed to every call to an SSI handler);
- compacted the code a bit by moving the code that calls tcp_write() in a loop to its own function;
- error files may have the extension shtml, too;
- fixed that returning default 404 page did not work any more;
2010-07-05 14:32:24 +00:00
goldsimon
4adc78384b Minor: added newlines in console output 2010-07-05 14:21:50 +00:00
goldsimon
90d5a61e85 In some cases, pcap_findalldevs_ex needs the correct source to find local devices 2010-07-05 14:10:07 +00:00
kieranm
c932196e11 Remove definition of function that isn't used 2010-06-28 13:46:45 +00:00
kieranm
0d1f02f931 Don't use local variable index as it clashes with global string.h define 2010-06-28 13:46:17 +00:00
goldsimon
bcf978f58d fixed compiler warning: use size_t, not int 2010-06-25 18:42:17 +00:00
goldsimon
04cbdfe912 Use the packed version of ip_addr_t in struct netbios_name_hdr 2010-06-14 16:04:57 +00:00
goldsimon
c7acce523a fixed signed/unsigned comparision, fixed indentation 2010-05-17 12:19:42 +00:00
goldsimon
3a06d130c3 performance improvements:
- don't stop sending after inserting a tag (leads to delayed ACKs);
- enqueue FIN in last data packet;
fix usage of tcp_close() after correcting close vs. shutdown
2010-05-17 11:20:59 +00:00
goldsimon
2de3924493 Added missing #if LWIP_HTTPD_CUSTOM_FILES 2010-05-17 11:07:43 +00:00
goldsimon
debf0134df Fixed compilation for LWIP_HTTPD_DYNAMIC_HEADERS==1, fixed a few warnings, changed the init code a bit 2010-05-16 16:18:39 +00:00
goldsimon
3e59a70f02 Added LWIP_HTTPD_CUSTOM_FILES to open files that are not included in fsdata.c 2010-05-16 16:15:15 +00:00
goldsimon
35b0b78242 Fix a compiler warning 2010-05-16 16:07:11 +00:00
goldsimon
3fa77d67be Use the new PP_HTONx macros 2010-05-16 16:05:41 +00:00
goldsimon
5e7c830745 Correctly initialize used_adapter to NULL 2010-05-16 16:05:26 +00:00
goldsimon
672f01f4e3 Fixed compilation for PING_USE_SOCKETS==0 2010-05-10 14:08:14 +00:00
goldsimon
48bb647dc2 Added pcapif that uses the (win)pcap library instead of the (undocumented) packet library. This makes it also usable under other OSes than win32 2010-04-26 20:08:13 +00:00
goldsimon
e28cf98b4d Fix compilation with LWIP_NETIF_HOSTNAME==0 2010-04-14 14:32:48 +00:00
goldsimon
6eca921e70 If a COM port is used, set it to 115200/8N1 2010-04-02 15:20:17 +00:00
goldsimon
4b47d17a37 -f argument handler didn't copy the full filename ... :-) 2010-04-01 13:02:58 +00:00
goldsimon
62ea62ffc3 Fixed compiler warnings 2010-04-01 12:57:45 +00:00
goldsimon
30d352cec7 Don't include any directory starting with a dot (to not include my ".svn" directories), added parameter "-f:<filename>" to output to another file than the default "fsdata.c" 2010-04-01 12:49:08 +00:00
goldsimon
2689478bbb Fixed compilation under WIN32 (htons etc. was duplicate) 2010-04-01 12:25:46 +00:00
goldsimon
543490634b Added missing include directory 2010-04-01 12:24:56 +00:00
goldsimon
9db401aa63 Added HTTPD_USE_CUSTUM_FSDATA to include "fsdata_custom.c" instead of "fsdata.c" for the file system (to prevent changing the file included in CVS) 2010-04-01 12:19:18 +00:00
goldsimon
4c42e56c7c Fix usage of memcpy (after moving from bcopy to memcpy in an attempt to write more portable code) 2010-03-31 08:07:07 +00:00
goldsimon
8d0e721c22 used memcpy instead of bcopy 2010-03-26 16:16:38 +00:00
goldsimon
57c1f7a16d Fixed compilation with LWIP_UDP/LWIP_TCP disabled 2010-03-26 16:10:32 +00:00
goldsimon
581b363d79 Make shell work with some or all stats disabled, too 2010-03-26 15:48:28 +00:00
goldsimon
64763950ca Fixed invalid assertion in error() 2010-03-26 14:44:20 +00:00
goldsimon
e4ad203b0b sys_thread_new(): name is a const char* 2010-03-26 14:37:54 +00:00
goldsimon
12d42c5801 unixsim: enable more warnings and fix the newly found warnings in ports/unix 2010-03-26 14:20:39 +00:00
goldsimon
c2f3fcc72a Set LWIP_HTTPD_STRNSTR_PRIVATE on by default, prevent old-style function declaration 2010-03-26 14:16:04 +00:00
goldsimon
bafc19addd make some char-pointer-arrays const, add default cases on all switches 2010-03-26 14:11:55 +00:00
goldsimon
d8f5406985 make udpecho_thread() static 2010-03-26 14:11:19 +00:00