[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <AANLkTimuMO-8XcdaPXMTVDtzdgk_2-jyVndx_znK6398@mail.gmail.com>
Date: Sun, 16 Jan 2011 23:26:14 +0800
From: Chin Shi Hong <cshong87@...il.com>
To: Rémi Denis-Courmont <remi@...lab.net>
Cc: netdev@...r.kernel.org
Subject: Re: Creating virtual interface using C++
2011/1/16 Rémi Denis-Courmont <remi@...lab.net>:
> Hello,
>
> Le dimanche 16 janvier 2011 16:37:05 Chin Shi Hong, vous avez écrit :
>> Can someone give me suggestion for C++ codes that will create a
>> virtual network interface
>
> It depends what you mean by virtual. Normally, you should use /dev/net/tun
> which is documented at linux-2.6/Documentation/networking/tuntap.txt
>
>> for the existing network interface
>> (including wired and wireless network interface)?
>
> But that part of your question does not make any sense.
>
> --
> Rémi Denis-Courmont
> http://www.remlab.net/
> http://fi.linkedin.com/in/remidenis
>
Don't know how to explain by virtual. But, you know the "iw" utility
(http://wireless.kernel.org/en/users/Documentation/iw)? If you
installed this utility, and then run the command "sudo iw dev
<wireless interface> interface add <virtual interface name> type
<wireless mode>", for example "sudo iw dev wlan0 interface add mon0
type monitor", it will add an virtual wireless interface named "mon0"
for the wireless interface "wlan0", then switch it to monitor mode. if
you run that command, you will know what I mean.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists