Commit Graph

44 Commits

Author SHA1 Message Date
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
5b1bd88115 unixif: fixed unused variable warning, replaced tabs with spaces 2012-03-01 19:15:38 +01:00
Simon Goldschmidt
bce6087f47 Merge branch 'master' of git.sv.gnu.org:/srv/git/lwip/lwip-contrib 2011-08-24 22:53:49 +02:00
Simon Goldschmidt
1494ad3919 Added IPv6 support to unix tapif driver: patch by Dan Pomohaci, couldn't test it, yet :-( 2011-08-24 20:00:08 +02:00
Kieran Mansley
4ebfe86430 fix use of inet_chksum_pseudo in unixsim 2011-07-29 13:38:53 +01:00
kieranm
9c86a78404 Set netif->flags appropriate for Ethernet device 2010-07-16 12:49:02 +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
12d42c5801 unixsim: enable more warnings and fix the newly found warnings in ports/unix 2010-03-26 14:20:39 +00:00
goldsimon
65b36b5173 Adapted to changes in tcp.h / added tcp_impl.h 2010-02-21 11:35:37 +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
eda6db6ebc Adapted win32- and unix-port to changes in sys layer 2010-02-12 13:57:58 +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
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
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
kieranm
8df3d8bdc0 Fix BUG22983: multiple fixes for unixsim 2008-05-30 11:58:40 +00:00
goldsimon
8f1eaa5226 Fixed some warnings, added new includes, added new defines in lwipopts.h 2007-11-25 14:09:16 +00:00
fbernon
f1f5c7dd80 Update for new sys_thread_new parameters (see task #7252 : "Create sys_thread_new_ex()" ). Some @todo are integrate to do some suggestions to port maintainers. 2007-09-05 16:48:11 +00:00
marcbou
5a8adb3d94 ethbroadcast now a shared global provided by etharp. 2007-08-16 20:52:59 +00:00
goldsimon
dac9674c0d set netif->output to etharp_output by default to save a function call & removed all the xxx_output() functions that directly called etharp_output(). 2007-06-08 22:52:59 +00:00
christiaans
1fb9e9d885 Disabled ARP table update on ingress IP packets. 2006-05-05 13:35:17 +00:00
christiaans
d95d7cd960 Made util.h depend on openbsd, to fix linux build. 2005-11-08 12:36:17 +00:00
christiaans
967f8aa38e A few small build fixes for unixsim. 2005-11-08 12:00:45 +00:00
christiaans
ca90f6fce9 Some build fixes for OpenBSD. 2005-10-10 07:25:35 +00:00
kieranm
dd1265444f Kieran Mansley, kieranm@gtemail.net, 10th Aug 2004
- Comment out #includes of netnet/in.h and arpa/inet.h to avoid reported redefinitions
2004-08-10 14:06:19 +00:00
likewise
5acf6d24d5 Made compliant with API changes in CVS HEAD. 2004-05-05 18:47:21 +00:00
marcbou
b1defea1d6 Added authType to pppSetAuth() and CHAP client support
(build unix port with -DLWIP_PPP_CHAP_TEST to test it)
2003-06-27 19:37:16 +00:00
marcbou
751297c61b Added PPP support to unix port. Works over serial or pseudo-tty, talking
to the host's pppd.
2003-06-19 11:42:56 +00:00
marcbou
01c8eeed90 Patch #1621: Add tcpdump() calls to pcapif tapif, improve tcpdump_init(). 2003-06-19 10:47:44 +00:00
kieranm
e754426f52 Changed DEBUGF to LWIP_DEBUGF 2003-06-10 10:45:29 +00:00
jani
77ebfac7d0 set hwaddr_len field 2003-05-27 13:35:08 +00:00
likewise
b4eaa5a113 Major stylo search/replace for "One space between keyword and opening bracket." 2003-05-01 13:27:52 +00:00
jani
faa3747c04 better error reporting in tapif, patch from Marc 2003-05-01 09:08:35 +00:00
davidhaas
b484f95228 In keeping with pbuf->ref always having the count of the number of pointers
to the particular buffer (and the last rewrite of pbuf_free), changed most
pbuf_ref_chain() calls back to pbuf_ref(). I think this was causing some pbuf
leaks.
2003-03-31 22:10:09 +00:00
davidhaas
0a46ef6af4 Fixed up and made work a PBUF_REF type. Most of the code uses this now
instead of PBUF_ROM. This addition allows support of copy-on-demand where the
lower layers can call pbuf_unref() which tests for any PBUF_REF buffers and
replaces them with PBUF_POOL buffers. This is now used
everywhere. pbuf_unref() is called in ARP queueing and in the coldfire
driver, which puts frames on a DMA queue and frees them later.

Along with this change pbuf_free() now goes through the entire chain of
buffers and tests all the ref counters, not just the first one. Generally now
pbuf_ref_chain() should be called and not pbuf_ref(). This change was made
because it is possible for the head of the pbuf chain to have a different
count than the payload pbuf which might have been passed by the application.

Coldfire ethernet driver also had some minor other updates and STATS was
changed to LWIP_STATS.
2003-03-19 22:16:31 +00:00
jani
0749599eab the contrib part of thread priority patch by floriZ.Also take out unused unix netifs from unixsim makefile for now 2003-03-19 15:28:31 +00:00
jani
489fc69cce updated netif init functions to return err_t 2003-02-20 16:24:39 +00:00
davidhaas
eef68488bc Fix some compile issues with both coldfire and unix builds. 2003-02-12 15:09:15 +00:00
jani
d33bf3a9e2 list.h is gone remove #includes 2003-02-11 09:09:46 +00:00
davidhaas
3cbe86d8a7 Added lightweight protection. In coldfire this is implemented by disabling
interrupts. In unixsim this is implemented by using a mutex. Uses #define
SYS_LIGHTWEIGHT_PROT to enable. It is enabled in coldfire by default, but
disabled in unixsim.

Fixes bug 2005 if you enable SYS_LIGHTWEIGHT_PROT. So the bug is closed.
2003-02-04 22:52:01 +00:00
jani
b63196d62a Add Unix port 2003-01-18 18:18:02 +00:00