From mboxrd@z Thu Jan 1 00:00:00 1970 From: "=?iso-8859-1?q?R=E9mi?= Denis-Courmont" Subject: Re: Creating virtual interface using C++ Date: Sun, 16 Jan 2011 16:43:15 +0200 Message-ID: <201101161643.15508.remi@remlab.net> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: netdev@vger.kernel.org To: Chin Shi Hong Return-path: Received: from yop.chewa.net ([91.121.105.214]:42771 "EHLO yop.chewa.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752641Ab1APOnS convert rfc822-to-8bit (ORCPT ); Sun, 16 Jan 2011 09:43:18 -0500 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: Hello, Le dimanche 16 janvier 2011 16:37:05 Chin Shi Hong, vous avez =E9crit : > 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=20 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. --=20 R=E9mi Denis-Courmont http://www.remlab.net/ http://fi.linkedin.com/in/remidenis