Date: Tue, 30 Jan 2007 21:37:13 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 113729 for review Message-ID: <200701302137.l0ULbD9T061754@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=113729 Change 113729 by rwatson@rwatson_cinnamon on 2007/01/30 21:36:36 Add TAPGETUNIT ioctl to if_tap, which allows the user daemon to query the ifnet unit number without playing fstat() and minor device number games. Affected files ... .. //depot/projects/zcopybpf/src/sys/net/if_tap.c#2 edit .. //depot/projects/zcopybpf/src/sys/net/if_tap.h#2 edit Differences ... ==== //depot/projects/zcopybpf/src/sys/net/if_tap.c#2 (text+ko) ==== @@ -639,6 +639,10 @@ tapp->baudrate = ifp->if_baudrate; break; + case TAPGETUNIT: + *(u_int *)data = dev2unit(dev); + break; + case TAPSDEBUG: tapdebug = *(int *)data; break; ==== //depot/projects/zcopybpf/src/sys/net/if_tap.h#2 (text+ko) ==== @@ -55,6 +55,7 @@ #define TAPGDEBUG _IOR('t', 89, int) #define TAPSIFINFO _IOW('t', 91, struct tapinfo) #define TAPGIFINFO _IOR('t', 92, struct tapinfo) +#define TAPGETUNIT _IOR('t', 93, u_int) /* VMware ioctl's */ #define VMIO_SIOCSIFFLAGS _IOWINT('V', 0)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701302137.l0ULbD9T061754>