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 > types to tap, ie 80211 wireless frames. > > Implemented as a simple IOCTL to set the arptype. This patch doesn't work. If you change the dev->type then you have to flush any routing or neighbour table entries. Neighbour table entries, in particular, have their operation vectors keyed off of the dev->type, see arp_constructor() for example. Probably the simplest way to handle this is to only allow the ioctl when the device is down. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html