Re: [Patch] Set link type on tun/tap virtual interface

2005-08-24 Thread David S. Miller
From: Mike Kershaw <[EMAIL PROTECTED]> Date: Wed, 24 Aug 2005 09:39:00 -0400 > > Do you need to do some range validation on arg before setting > > tun->dev->type? > > I shouldn't think so, the worst you could do is set it to a link type > nothing understands, and then they just either go to cook

Re: [Patch] Set link type on tun/tap virtual interface

2005-08-24 Thread Mike Kershaw
> Do you need to do some range validation on arg before setting tun->dev->type? I shouldn't think so, the worst you could do is set it to a link type nothing understands, and then they just either go to cooked socket (pcap) or confuse the app (anything that looks at type directly) or nothing (anyt

Re: [Patch] Set link type on tun/tap virtual interface

2005-08-24 Thread John W. Linville
On Tue, Aug 23, 2005 at 05:28:00PM -0400, Mike Kershaw wrote: > Very small patch to allow setting of the link type of the virtual tapX > interfaces in tun/tap. Needed for writing packets of other arp link > types to tap, ie 80211 wireless frames. > > Implemented as a simple IOCTL to set the arpty

Re: [Patch] Set link type on tun/tap virtual interface

2005-08-23 Thread David S. Miller
From: Mike Kershaw <[EMAIL PROTECTED]> Subject: [Patch] Set link type on tun/tap virtual interface Date: Tue, 23 Aug 2005 17:28:00 -0400 > Very small patch to allow setting of the link type of the virtual tapX > interfaces in tun/tap. Needed for writing packets of other arp link &g

[Patch] Set link type on tun/tap virtual interface

2005-08-23 Thread Mike Kershaw
Very small patch to allow setting of the link type of the virtual tapX interfaces in tun/tap. Needed for writing packets of other arp link types to tap, ie 80211 wireless frames. Implemented as a simple IOCTL to set the arptype. -m -- Mike Kershaw/Dragorn <[EMAIL PROTECTED]> GPG Fingerprint: 3