Commit Graph

491 Commits

Author SHA1 Message Date
goldsimon a416f2eb2c bug #29105: Review printf formatters: added X8_F to cc.h 2010-03-08 17:11:27 +00:00
goldsimon 5604a40915 Don't use C++ style comments 2010-03-06 12:17:21 +00:00
goldsimon 8a75717dc6 Check that LWIP_NETIF_TX_SINGLE_PBUF works (in debug mode only) 2010-03-06 12:15:47 +00:00
goldsimon 6962ff18d8 Removed ppp_trace (not used by the PPP code any more) 2010-02-22 20:16:48 +00:00
goldsimon 74cd18c72e added tcp_impl.h 2010-02-21 13:54:16 +00:00
goldsimon 65b36b5173 Adapted to changes in tcp.h / added tcp_impl.h 2010-02-21 11:35:37 +00:00
goldsimon 8bb9da48de -Werror to not overlook warnings 2010-02-21 11:26:40 +00:00
goldsimon 14d8d2b9e4 Fixed compilation of proj/lib 2010-02-21 11:26:15 +00:00
goldsimon 3e130e4f7f Fixed input thread handling: pass all supported packets to netif->input 2010-02-17 16:57:16 +00:00
goldsimon 44273aed6f minor: fixed source code layout 2010-02-17 16:55:36 +00:00
goldsimon 17026e30b1 unix ports: fixed usage of sys_sem_signal after changing sys layer 2010-02-17 16:52:30 +00:00
goldsimon 520e085b7b Set link up or down when initializing the netif 2010-02-16 17:15:45 +00:00
goldsimon 977f52e6ba When ethernetif is only used for PPPoE, disable etharp and igmp on it; delay dns-example-request so that dhcp/autoip/ppp have time to bring the netif up after starting 2010-02-14 18:11:35 +00:00
goldsimon 4c65d25eda Fixed compilation under cygwin 2010-02-14 12:44:20 +00:00
goldsimon 239240e336 Fixed compilation after change of sys layer 2010-02-14 12:44:04 +00:00
goldsimon e1f2af00d7 Fix usage of stats 2010-02-13 17:34:20 +00:00
goldsimon 4add26bebd Make use of the changed sys layer api and allocate mboxes/semaphores in place (without requiring malloc) 2010-02-13 17:30:15 +00:00
goldsimon ed52d1f790 Allocate struct dhcp and struct autoip statically 2010-02-12 16:59:30 +00:00
goldsimon eda6db6ebc Adapted win32- and unix-port to changes in sys layer 2010-02-12 13:57:58 +00:00
goldsimon 8245ef55a3 Fixed typo in project files 2010-02-09 16:44:10 +00:00
goldsimon a70c0fb424 Added project files for check and unit tests, fixed check adaption to win32 2010-02-09 16:41:27 +00:00
goldsimon 540bac6fa3 Adapted contrib ports to loopif moved into netif.c 2010-02-09 16:07:46 +00:00
goldsimon e70c0bd3f5 Fixed unix port after changing struct ip_addr to ip_addr_t 2010-02-09 13:19:01 +00:00
goldsimon 9c17b2eb87 include arch.h to get cc.h's definitions and pragmas 2010-02-09 11:37:14 +00:00
goldsimon 089badd5d0 Update snmp tx/rx counters, initialize netif hostname to "lwip" 2010-02-05 11:54:38 +00:00
goldsimon a6828003d8 Replaced struct ip_addr by typedef ip_addr_t to make changing the actual implementation behind the typedef easier. 2010-02-04 18:50:12 +00:00
goldsimon 899ae6a321 Use macros defined in ip_addr.h (some of them new) to work with IP addresses (preparation for bug #27352 - Change ip_addr from struct to typedef (u32_t) - and better code). 2010-02-04 17:23:30 +00:00
goldsimon d11875c261 Deleted old msvc6 project files: it's really too old now and unmaintained, use msvc8 instead. 2010-02-02 19:40:59 +00:00
goldsimon 880ed2c01e Moved lwip_prvmib.c and private_mib.h from unix/proj/minimal to apps/snmp_private_mib and extended it for write support and usage with memory buffers instead of files to be used under non-posix OSes as an example 2010-02-02 19:39:25 +00:00
goldsimon b411c22658 Added socket_examples as and app 2010-02-02 18:39:24 +00:00
goldsimon c0b7b8de41 added netif/ppp_oe.h and netif/slipif.h 2010-02-02 15:11:14 +00:00
goldsimon a1ca06cfcc Fixed unix port after recent changes 2010-01-30 14:16:47 +00:00
goldsimon 97fa3db8fa Added def.h 2010-01-30 13:53:35 +00:00
goldsimon 6b1d5a6adc Fix compiler warning: MAC address contains unsigned values 2010-01-27 07:15:06 +00:00
goldsimon 892859455c bug #28659: Missing casts 2010-01-25 08:20:46 +00:00
goldsimon 0f5c7fa169 Added files to compile check 0.9.8 under win32 (no fork support, of course) 2010-01-24 17:36:51 +00:00
goldsimon 015165df14 Adapted win32 port project files to recent lwIP changes 2010-01-24 17:35:04 +00:00
goldsimon a097cfd003 Added new apps 2010-01-24 17:22:54 +00:00
goldsimon 292fe4a59e Added 3 new apps 2010-01-24 10:11:02 +00:00
goldsimon c2ff201fd7 Fixed compiler warnings, added 3 new apps 2010-01-24 10:10:17 +00:00
goldsimon faf826ad6d bug #26523: Compiler Warnings 2010-01-24 10:09:57 +00:00
goldsimon 8b4184a38a Fix unixsim after moving app files 2010-01-20 20:55:10 +00:00
goldsimon 379e17565c Moved 3 apps from unixsim/apps to contrib/apps (since they are by no means unix-specific) 2010-01-20 19:12:26 +00:00
goldsimon 4d999efb93 Removed unused include to errno.h (which breaks portability also -> should be placed in cc.h) 2010-01-20 07:44:01 +00:00
goldsimon f4855e7575 Fixed compilation after changing netconn_recv/_accept 2010-01-20 07:38:34 +00:00
goldsimon 82418f995c Added explanation to disabled warning numbers 2010-01-18 09:29:28 +00:00
goldsimon 826ca4dcae Updated Win32 port for new NO_SYS timers and for using ppp with NO_SYS 2010-01-13 16:07:27 +00:00
goldsimon d0c399570e Added LWIP_RAND() define 2010-01-10 11:12:07 +00:00
goldsimon e59072922c MEMP_NUM_SYS_TIMEOUT needs to be 3 since now, timers are set up even for NO_SYS==1 2010-01-08 13:40:12 +00:00
goldsimon 2bb8f85116 Unix port: fixed compilation after moving timeout handling to timers.c; fixed some threading- and other issues with initialization 2010-01-07 10:21:13 +00:00
goldsimon 45a8de7caf Added debug output on open 2009-12-31 16:42:36 +00:00
goldsimon 4c733650e6 Adapted to changed timer implementation 2009-12-31 16:24:58 +00:00
goldsimon 321ac573ce Adapted to new config option LWIP_ETHERNET 2009-12-27 11:46:05 +00:00
goldsimon a4ee79c04d Added sleep in main thread if it has nothing to do (PPPoS) 2009-12-07 14:58:51 +00:00
goldsimon 92a32dbce4 Using PPPoS on win32 blocked since read and write are used from 2 different threads and read blocked. 2009-12-07 14:56:17 +00:00
goldsimon 813b025f97 ppp_desc needs to be initialized with -1, not 0 2009-12-07 10:33:43 +00:00
goldsimon 99aab4ea68 Print out error code when sio_open fails 2009-12-07 10:32:46 +00:00
goldsimon 434227b6bd Fix compilation when using PPPoS only 2009-12-07 07:34:52 +00:00
goldsimon f744877247 Added configurable PPPoE support for MSVC port 2009-12-04 08:49:01 +00:00
goldsimon 2e84b2ba2b MSVC packetlib adapter: added the possibility to select adapter via GUID (instead of index, which can change); added some deallocations on error; printing adapter names when listing adapters 2009-12-04 08:18:07 +00:00
goldsimon 6935d26ced Init chargen if configured to 2009-11-20 16:21:18 +00:00
goldsimon deec441987 Add comments, fix source code layout 2009-11-01 19:07:53 +00:00
goldsimon 77ab1cb406 Fix adapter range detection (last adapter could not be used) 2009-11-01 19:04:05 +00:00
goldsimon 1686fc793e Added makefsdata project 2009-11-01 18:27:45 +00:00
goldsimon 06c14502a8 Use ip_ntoa instead of inet_ntoa, fix running with PPP_SUPPORT=1 (don't poll ethernetif - not initialized) 2009-08-25 14:56:31 +00:00
goldsimon 11ad41b049 Fix includes (don't include string.h -> included in all files where needed), fix LWIP_ERROR (expression was used as message) 2009-08-11 14:36:31 +00:00
goldsimon 6ce49364c5 Added many missing includes to <string.h> 2009-08-11 14:34:28 +00:00
kieranm 5cceed389c Fix unix port warnings on 64 bit compile 2009-06-25 12:51:23 +00:00
goldsimon e0675d8b82 Adapted win32 port to changes in sys.h (for NO_SYS=1 only) 2009-04-27 20:14:04 +00:00
goldsimon 105dc66785 Removed invalid brace 2009-04-18 16:21:17 +00:00
goldsimon 2bdd0c7ffc ports/unix/minimal: correct timer handling (ue defines, TCP fasttimer calls slowtimer); let mintapif use ethernet_input 2009-04-18 11:21:24 +00:00
kieranm b5bb80bbc3 BUG #25695: replace calls to sys_sem_wait() with sys_arch_sem_wait()
in unix port
2009-04-17 10:30:30 +00:00
kieranm 5c39901bdc Match unix port definition of sys_now to lwIP core definition 2009-03-25 11:01:00 +00:00
goldsimon 03534b658a Use size_t for mem_ptr_t to fix 64-bit-compatibily warnings 2009-02-18 20:45:35 +00:00
goldsimon 9e4a33112b No need to allocate a PBUF_LINK for incoming packets, PBUF_RAW is enough 2009-02-18 16:57:07 +00:00
goldsimon 5f05529a22 pkdrv/if: fixed check for invalid adapter_num, added assert if netif can't be initialized 2008-11-24 17:34:18 +00:00
kieranm 234cfd1dcf Fix name of sys_now() function (was called sys_unix_now()) in unix port 2008-11-19 13:38:10 +00:00
jifl ba11c223fa 2008-09-30 David Woodhouse <dwmw2@infradead.org> :
* ports/unix/sys_arch.c, ports/unix/include/arch/cc.h,
        ports/unix/netif/tcpdump.c, ports/unix/proj/unixsim/simhost.c:
        Fix 64-bit issues in unix port.
        * ports/unix/include/arch/cc.h: silence warning about packed
        attribute on fields, since whole struct is packed.
        * ports/unix/proj/unixsim/apps/shell.c: Remove rexmit fields
        from stat data, in line with lwip stats changes.
2008-09-30 13:48:07 +00:00
goldsimon 0eaad1ca9b Removed some warnings in unix port 2008-07-16 20:37:56 +00:00
goldsimon 2977846356 Changed MAC address settings of win32 port (MAC address to use has to be defined in lwipcfg_msvc.h) 2008-07-10 19:18:38 +00:00
goldsimon 3ab94a43bf Added new stats-defines for sys. 2008-06-27 18:38:27 +00:00
jifl 579c7a3df4 sys_jiffies(): set sec and usec correctly from gettimeofday(), and avoid sec overflow 2008-06-19 15:31:12 +00:00
goldsimon 6de783946f Fixed a warning in sys_arch_timeouts() (SYS_ARCH_DECL_PROTECT must be placed after variables) 2008-06-17 19:44:18 +00:00
goldsimon e0667a84c0 Added support for new loopback code in win32 port 2008-06-17 19:43:34 +00:00
fbernon f044a46228 contrib/ports/win32: minor change, typo. 2008-06-03 10:12:14 +00:00
fbernon f084d2fca0 contrib/ports/win32: Fix NOTIFY_LINKSTATE macro. 2008-06-03 10:10:28 +00:00
kieranm 4e543d897a Change LWIP_UDP to UDP_STATS from my earlier check in as per suggested
by Jonathan Larmour.
2008-05-30 12:26:31 +00:00
kieranm 8df3d8bdc0 Fix BUG22983: multiple fixes for unixsim 2008-05-30 11:58:40 +00:00
kieranm d959889ab5 Fix BUG23230: unlock mutex if sys_mbox_trypost() finds a full mail box 2008-05-30 11:41:51 +00:00
kieranm 43c61c1317 BUG23408: avoid deadlock by splitting mail semaphore into "not_empty"
and "not_full"
2008-05-30 11:28:28 +00:00
fbernon 24282a28df win32 port: last changes 2008-04-26 11:34:37 +00:00
fbernon 3fb00cde5b win32 port/msvc9: update port 2008-04-26 11:21:14 +00:00
fbernon eca09602e9 win32 port: minor changes 2008-04-26 11:12:50 +00:00
fbernon 85c2c164cc contrib/apps/rtp: add a rtp sample to be able to test lwip's multicast features. 2008-04-26 10:53:32 +00:00
kieranm cc36b3df63 Fix compilation of unixsim shell app after removal of MEM_SIZE_F in
patch#6414
2008-03-23 13:46:03 +00:00
fbernon f7693ad4d4 contrib/ports/win32/test.c: minor change, fix a warning. 2008-03-16 08:31:15 +00:00
fbernon f1081a0d64 contrib/ports/win32/sys_arch.c: Minor change (typo in a debug trace). 2008-03-12 10:57:24 +00:00
goldsimon 7692d054a6 Replaced spaces with underscores in msvc8 project files (unfortunately, the savannah cvs server doesn't support the command 'rename', so I had to delete the old files and add them renamed) 2008-01-27 11:43:16 +00:00
goldsimon 2d60367420 removed old msvc6 port -> included in win32 port now 2008-01-27 11:25:15 +00:00
goldsimon 43930c4be1 removed 'typedef void* sio_fd_t' (already defined in sio.h) 2008-01-27 10:36:32 +00:00
goldsimon e491f6b335 remove double-define of BYTE_ORDER; added 2 #ifndefs to compile with cygwin gcc 2008-01-27 10:35:01 +00:00
kieranm e021174865 Bring unix sys_arch.c up to current CVS HEAD API 2008-01-17 11:51:09 +00:00
kieranm bddf652073 Update unix port to 1.3.0 before release 2008-01-15 13:10:51 +00:00
jifl 18a8963351 * lwipopts.h: Reflect IP_OPTIONS -> IP_OPTIONS_ALLOWED name change. 2008-01-09 10:16:57 +00:00
fbernon 9b4be1bb96 Win32 port: add a dhcp_renew when the link become "up"... 2008-01-06 23:18:50 +00:00
fbernon 2913175ec6 Win32 port: print statistics of dropped packets. 2008-01-06 20:19:41 +00:00
goldsimon be3fc99aba Implemented the 'try' in sys_mbox_trypost (returning ERR_MEM if the mbox is full). 2008-01-06 14:16:30 +00:00
goldsimon cd55e0b82b Implemented the 'try' in sys_mbox_trypost (returning ERR_MEM if the mbox is full). 2008-01-06 14:16:12 +00:00
fbernon 5652c7d473 Win32 port: changes to adapt to sys_mbox api (just to be able to build). 2008-01-05 21:13:46 +00:00
fbernon 0ed511d380 Minor changes in contrib folder: fix some warnings 2008-01-04 22:49:56 +00:00
fbernon 52c5f3bf38 Minor changes in Win32 port: fix some warnings 2008-01-04 22:37:28 +00:00
fbernon 823c4df3a2 Minor change in Win32 port: rename LWIP_LISTEN_BACKLOG in TCP_LISTEN_BACKLOG 2008-01-04 22:24:37 +00:00
fbernon 9bee80463c Win32 port: Add a sio driver for a pipe interface 2008-01-03 22:51:03 +00:00
fbernon a75fb7dfec Minor changes in Win32 port: remove some references to local files in project. 2007-12-31 13:39:20 +00:00
fbernon 1d6a981479 Minor changes (move a trace, add some explicit options in lwipopts.h). 2007-12-31 13:29:28 +00:00
fbernon fb791aa4f8 Add AUTOIP use in Win32 port (and display ip address in status_callback). 2007-12-30 01:15:02 +00:00
fbernon bf8469722f Minor change in Win32 port: add the adapter's vendor description display 2007-12-23 15:10:27 +00:00
fbernon e63bdc8022 Minor change in Win32 port: fix wrong comment. 2007-12-23 14:41:29 +00:00
fbernon 1e68e75581 Add LWIP_NETIF_STATUS_CALLBACK and LWIP_NETIF_LINK_CALLBACK use in Win32 port. 2007-12-23 14:28:38 +00:00
fbernon 04b00f954c Minor changes (replace DNS_COMPLETE by ERR_OK). 2007-12-19 20:52:02 +00:00
goldsimon 95e5598039 support multiple interfaces 2007-12-04 21:17:38 +00:00
fbernon e7fb399b3c PPP support for win32 port (need to add some files). 2007-12-03 22:10:46 +00:00
goldsimon d0fee92fe2 Changed pktif.c/pktdrv.c implementation to remove global variables -> more than one adapter can be used (needed to test DHCP on multiple adapters); added DHCP support; initialize loopif before ethernetif (little bit faster since netif_list starts with ethernetif) 2007-12-03 20:34:18 +00:00
goldsimon cc72279627 Added lwippools.h for an example of MEM_USE_POOLS 2007-12-03 20:32:22 +00:00
goldsimon 5f52fc424f Removed redundant Win95/WinNT code, added comments, added defines for constants 2007-12-03 19:42:33 +00:00
fbernon 45a22d7a2a Minor changes: coding style and typo 2007-12-02 17:47:43 +00:00
fbernon 25215b3303 Minor changes: coding style and add some "lpAdapter" checkings. 2007-12-02 17:47:05 +00:00
goldsimon 4c51f02bcf low_level_input: allow multicast traffic, filter out feedback packets (with src MAC == my MAC - limitation in winpcap); use LINK_STATS_INC instead of #if LINK_STATS 2007-12-02 15:30:46 +00:00
goldsimon ea3f796c6c Make unix port buildable with changes to sockets.h (include sys/time.h in cc.h only and define LWIP_TIMEVAL_PRIVATE to 0 in lwipopts.h to use unix struct timeval instead of defining an own struct) 2007-12-02 15:26:35 +00:00
goldsimon 9dff15fa76 using LWIP_DIR instead of LWIP_SRC environment variable 2007-11-26 19:17:20 +00:00
fbernon 99b5faef56 Replace C++ comments from win32 port 2007-11-25 14:48:38 +00:00
goldsimon 8f1eaa5226 Fixed some warnings, added new includes, added new defines in lwipopts.h 2007-11-25 14:09:16 +00:00
goldsimon 557ffae7ea Added new files netdb.h and netdb.c to unix & win32 ports 2007-11-24 16:18:21 +00:00
fbernon b0df562291 Update win32/msvc6 port projects. 2007-11-23 22:47:58 +00:00
fbernon 1ee141d2f9 Update win32 readme.txt 2007-11-23 21:58:46 +00:00
fbernon 47ec9486c2 Update win32/msvc8 port paths 2007-11-23 21:41:43 +00:00
fbernon 8243283528 Add win32 port (for msvc6, msvc8, and others) 2007-11-23 21:06:07 +00:00
goldsimon 797387c936 Added the new inet_chkusm.c file, included moved inet.c. Hope this works as I have no possibility to check it... 2007-11-16 19:41:33 +00:00
goldsimon b7dfb0e754 Added the new inet_chkusm.c/.h files, included moved inet.c 2007-11-16 19:38:51 +00:00
goldsimon 7c45800d48 changed dns callback function name parameter to be const char* 2007-11-16 19:35:31 +00:00
fbernon 191d815ab1 Minor change for DNS client in msvc6 port. 2007-11-14 23:37:22 +00:00
goldsimon 61d74ecaaf Change header files layout in the project 2007-11-10 18:17:09 +00:00
goldsimon ea4d3a873c Added comment that slipif, ppp & pppoe are not supported by this port. 2007-11-10 18:16:40 +00:00
fbernon 65feb67dbb Integrate SNTP client in msvc6 port. 2007-11-06 22:47:30 +00:00
fbernon 6126163ef6 Add ping sample from unix ports to reuse it in any ports. 2007-11-04 21:52:57 +00:00
goldsimon f949381963 Define PACK_STRUCT_USE_INCLUDES to support packing (netbios app doesn't work without) 2007-10-28 14:19:46 +00:00
goldsimon 664faf3b58 NO_SYS=0 initialization: need to wait (using a semaphore) for initialization to finish before calling update_adapter()! 2007-10-21 13:14:53 +00:00
fbernon cfbf1497d2 msvc6 test: add some comments, remove mcast_init (will be put later in contrib/apps when I got something more useful), add a test_init function which is called in the "right" context. 2007-10-20 12:22:36 +00:00
fbernon c0c75ff1eb Add netbios sample in apps library in msvc6 port 2007-10-19 08:02:06 +00:00
fbernon 033842282b Add netbios name service sample in msvc6 port 2007-10-18 23:09:58 +00:00