Re: [9fans] tun/tap support for 9vx

2010-05-07 Thread Bakul Shah
On Sat, 08 May 2010 03:54:26 +1000 Tully Gray wrote: > > I have modified Erik Quanstrom's raw socket ethernet driver > for 9vx so that it uses the Linux kernel's "tap" device. Neat! > < if((fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL))) < 0) > --- > > if((fd = open("/dev/net/tun",

Re: [9fans] tun/tap support for 9vx

2010-05-07 Thread Tully Gray
On Fri, May 07, 2010 at 02:04:47PM -0400, erik quanstrom wrote: > > 2010/5/7 Tully Gray : > > > Hi, > > > > > > I have modified Erik Quanstrom's raw socket ethernet driver > > > for 9vx so that it uses the Linux kernel's "tap" device. > > > It seems to work just fine. I create the tap device first

Re: [9fans] tun/tap support for 9vx

2010-05-07 Thread Devon H. O'Dell
2010/5/7 erik quanstrom : >> interesting.  what's the advantage of the tap device? >> is the code available online? > > duh.  sorry.  missed the attachment.  having peeked > at the code, do you think that the tap devices is a > complete replacement for the raw socket? Yes. The tap(4) interface all

Re: [9fans] tun/tap support for 9vx

2010-05-07 Thread erik quanstrom
> interesting. what's the advantage of the tap device? > is the code available online? duh. sorry. missed the attachment. having peeked at the code, do you think that the tap devices is a complete replacement for the raw socket? - erik

Re: [9fans] tun/tap support for 9vx

2010-05-07 Thread erik quanstrom
> 2010/5/7 Tully Gray : > > Hi, > > > > I have modified Erik Quanstrom's raw socket ethernet driver > > for 9vx so that it uses the Linux kernel's "tap" device. > > It seems to work just fine. I create the tap device first > > using "tunctl" which comes with the Usermode Linux toolkit > > but I don

Re: [9fans] tun/tap support for 9vx

2010-05-07 Thread Devon H. O'Dell
2010/5/7 Tully Gray : > Hi, > > I have modified Erik Quanstrom's raw socket ethernet driver > for 9vx so that it uses the Linux kernel's "tap" device. > It seems to work just fine. I create the tap device first > using "tunctl" which comes with the Usermode Linux toolkit > but I don't think this is