<< | Thread Index | >> ]    [ << | Date Index | >> ]

Subject: Re: CIPE VPN Adapter
From: Damion Wilson <dwilson,AT,ibl,DOT,bm>
Date: Thu, 10 May 2001 19:16:49 +0200
In-reply-to: <3BC5217C8E6D9E498F4F682CD7FF75461073B4@mail10.main.ntu.edu.sg>

Hi, Prakash

The driver is loaded (if it isn't already) in the class CipeServiceBase

In the cipdrvr.c routine AdapterCreate, which gets called to create a new
adapter instance,
a serially allocated MAC address is assigned to each new adapter. You can
see these when
you do an ipconfig /all. When the service opens a TAP device in the
constructor of CipeTapIO,
it retrieves the last MAC value + 1 used by the driver using the IOCTL
function GET_LAST_MAC.
This is then incremented for each CipePeer and assigned using the
CipeGenericIO::CopyMAC method

The IP address for the adapter is set using Windows Network Control Panel.

Reading and writing the adapter just requires opening the TAP device using
the Win32 Create() call
and using ReadFile and WriteFile. Any usermode program can do it, yes.

Hope that helps,


On Saturday, May 05, 2001 at 02:39:24 [ADT] #PRAKASH SANDEEP# wrote:
> Hi,
> I would just liek to know which section of the CIPE Server code deals
> with:
> 1. loading the adapter
> 2. Setting its MAC Address
> 3. Setting the IP Address associated with the adapter
> 4. Reading from the adapter
> 5. Writing to the adapter.
> I know the sections for 4 and 5. ONce 1,2 and 3 are done 4 and 5 should
> not
> be a problem, right? I do not need to write anymore configuration code.
> Any
> user program can carry out these functions right?
> Thanks and regards,
> Sandeep

<< | Thread Index | >> ]    [ << | Date Index | >> ]