Re: CIPE VPN Adapter|
Damion Wilson <dwilson,AT,ibl,DOT,bm>|
Thu, 10 May 2001 19:16:49 +0200|
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
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
This is then incremented for each CipePeer and assigned using the
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:
> I would just liek to know which section of the CIPE Server code deals
> 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
> be a problem, right? I do not need to write anymore configuration code.
> user program can carry out these functions right?
> Thanks and regards,