Re: _IOR/W with if_tun
From: Jordan Abel (jmabel_at_purdue.edu)
Date: 10/29/05
- Previous message: Michel Talon: "Re: Look for WiFi networks under FreeBSD?"
- In reply to: bsder: "_IOR/W with if_tun"
- Next in thread: bsder: "Re: _IOR/W with if_tun"
- Reply: bsder: "Re: _IOR/W with if_tun"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 29 Oct 2005 09:57:46 +0000 (UTC)
On 2005-10-29, bsder <snort_sam@yahoo.com> wrote:
> Hi,
>
> Can anyone tell me what does the following codes do:
>
> /* ioctl's for get/set debug */
> #define TUNSDEBUG _IOW('t', 90, int)
> #define TUNGDEBUG _IOR('t', 89, int)
> #define TUNSIFINFO _IOW('t', 91, struct tuninfo)
> #define TUNGIFINFO _IOR('t', 92, struct tuninfo)
> #define TUNSLMODE _IOW('t', 93, int)
>
> I tried to find out the implementation of the _IOR/W functions, but I
> found nothing in the src directory.
>
> Can anyone please tell me where can I allocate the implemetation of
> these _IOR/W functions?
>
> Thanks
> Sam
It probably does some bit-shifting and stuff. It is most definitely
a macro, rather than a function.
Here it is - /usr/include/sys/ioccom.h
- Previous message: Michel Talon: "Re: Look for WiFi networks under FreeBSD?"
- In reply to: bsder: "_IOR/W with if_tun"
- Next in thread: bsder: "Re: _IOR/W with if_tun"
- Reply: bsder: "Re: _IOR/W with if_tun"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|