[U-Boot] [PATCH] sandbox: Add tap based networking
Mike Frysinger
vapier at gentoo.org
Wed Dec 14 04:35:24 CET 2011
On Tuesday 13 December 2011 18:54:59 Simon Glass wrote:
> On Sun, Dec 4, 2011 at 9:57 AM, Matthias Weisser wrote:
> > --- a/arch/sandbox/cpu/os.c
> > +++ b/arch/sandbox/cpu/os.c
> > @@ -19,6 +19,7 @@
> > * MA 02111-1307 USA
> > */
> >
> > +#include <config.h>
> > #include <fcntl.h>
> > #include <stdlib.h>
> > #include <termios.h>
> > @@ -30,6 +31,19 @@
> > #include <sys/mman.h>
> > #include <linux/types.h>
> >
> > +#ifdef CONFIG_NET_TAP
>
> I don't think we need this #ifdef
i think it's fine. the current code isn't too tied to Linux, but adding
NET_TAP unconditionally would make it completely Linux specific ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20111213/3e952547/attachment.pgp>
More information about the U-Boot
mailing list