SoftEther


SoftEther

ste.sys
sted.exe
stehub.exe

winvpn_1.zip

  1. SteMiniportinitialize
  2. SteCreateAdapter
  3. SteRegisterDevice

  1. SteMiniportSendPackets
  2. StePutQueue
  3. ReadFile
  4. SteDispatchRead
  5. SteGetQueue

  1. WriteFile
  2. SteDispatchWrite
  3. SteAllocateRecvPacket
  4. StePutQueue
  5. NdisSetTimer


CreateEvent ObReferenceObjectByHandle ReadFile

typedef struct stehead 
{


} stehead_t;

WriteFile


struct conn_stat {

   int fd;                 /* FD */

};



C:\winvpn>build						   
BUILD: Adding /Y to COPYCMD so xcopy ops won't hang.		   
BUILD: Object root set to: ==> objchk_wnet_x86			   
BUILD: Compile and Link for i386				   
BUILD: Loading c:\WINDDK\3790\build.dat...			   
BUILD: Computing Include file dependencies:			   
BUILD: Examining c:\winvpn directory tree for files to compile.   
    c:\winvpn\exe\sted - 3 source files (1,503 lines)		   
    c:\winvpn\exe\stehub - 2 source files (593 lines)		   
    c:\winvpn\sys - 2 source files (2,533 lines)		   
BUILD: Saving c:\WINDDK\3790\build.dat...			   
Total of 7 source files (4,629 lines) to compile in 3 directories 
								   
BUILD: Compiling c:\winvpn\exe\sted directory			   
Compiling - exe\sted\sted.c for i386				   
Compiling - exe\sted\sted_socket.c for i386			   
Compiling - exe\sted\getopt_win.c for i386			   
Compiling - exe\sted\generating code... for i386		   
BUILD: Compiling c:\winvpn\exe\stehub directory		   
Compiling - exe\stehub\stehub.c for i386			   
Compiling - exe\stehub\getopt_win.c for i386			   
Compiling - exe\stehub\generating code... for i386		   
BUILD: Compiling c:\winvpn\sys directory			   
Compiling - sys\ste.c for i386					   
Compiling - sys\ste_local.c for i386				   
Compiling - sys\generating code... for i386			   
BUILD: Linking c:\winvpn\exe\sted directory			   
Linking Executable - exe\sted\.\\i386\sted.exe for i386	   
BUILD: Linking c:\winvpn\exe\stehub directory			   
Linking Executable - exe\stehub\.\\i386\stehub.exe for i386	   
BUILD: Linking c:\winvpn\sys directory				   
Linking Executable - sys\i386\ste.sys for i386			   
BUILD: Done							   
								   
    10 files compiled -  1543 LPS				   
    3 executables built					   
									      
C:\winvpn>                                                                    


SteMiniportinitialize

Usage: stehub.exe [ -p port] [-d level]
       -p port   : Port nubmer
       -d level  : Debug level[0-1]
C:\winvpn> stehub -p 8888



Usage: sted.exe [ -i instance] [-h hub[:port]] [ -p proxy[:port]] [-d level] [-I|-U]
       -i instance     : Instance number of the ste device
       -h hub[:port]   : Virtual HUB and its port number
       -p proxy[:port] : Proxy server and its port number
       -d level        : Debug level[0-3]
	-I              : Install Service
       -U              : Uninstall Service
C:\winvpn> sted.exe -i 0 -h hub.example.com 
windows_service.png


Host to Host

net_config_h2h.gif

  1. C:\> cd \winvpn
    C:\winvpn>
  2. C:\winvpn> stehub.exe -p 8888


  1. windows_network.png


  2. windows_ip_setting.png

  3. C:\> cd \winvpn
    C:\winvpn>
  4. C:\winvpn>sted.exe -h hostA:8888
    debuglevel = 0
    device path = \\.\STE0
    Successfully opened STE device
    Successfully connected with HUB

  1. hostC # make install
    /usr/sbin/install -s -f /kernel/drv/sparcv9 -m 0755 -u root -g sys ste
    /usr/sbin/install -s -f /kernel/drv -m 0644 -u root -g sys ste.conf
    /usr/sbin/install -s -d /usr/local/bin
    /usr/sbin/install -s -f /usr/local/bin -m 0755 -u root sted
    /usr/sbin/install -s -f /usr/local/bin -m 0755 -u root stehub
    hostC #
  2. hostC # /usr/sbin/ifconfig ste0 plumb
    hostC # /usr/sbin/ifconfig ste0 192.168.0.2 up
    hostC # /usr/sbin/ifconfig ste0 ether 8:0:20:0:0:2
    hostC # /usr/sbin/ifconfig -a
    lo0: flags=1000849 mtu 8232 index 1
            inet 127.0.0.1 netmask ff000000
    hme0: flags=1000843 mtu 1500 index 2
            inet 172.29.80.33 netmask ffffff00 broadcast 172.29.80.255
            ether 8:0:20:d3:da:8a
    ste0: flags=1001843 mtu 1500 index 3
            inet 192.168.0.2 netmask ffffff00 broadcast 192.168.0.255
            ether 8:0:20:0:0:2
    hostC #
  3. hostC # /usr/local/bin/sted -h hostA:8888
    Successfully connected with HUB
    Going to background mode
    hostC #


*1


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS