hello:
 
I am trying to write a simple program which functions like this:
first create a socket and bind the socket to the virtual tap_win32
driver provided
by openVPN, the tap ip was setted as "10.0.3.1". So if I use the socket
to send
out packet, the packet will be transmitted to the user space,right? 
And then, I use a program which get a handle associated with the tap
driver
through "createfile" in tun.c and use "readfile" (in tun.c) trying to
get the
packet ,but the readfile always return failure(err=31). 
 
My question is: did I understand the usage procedure correctly? If so,
is the
method used in my program correctly? If not,can you give me some advice?
thank
you very much!
 
best wishes!
michael,wang

 

 

Reply via email to