(2005-02-19)†
http://homepage2.nifty.com/mrym3/taiyodo/eng/
(2006-11-05)†
ste.c
vpn_2.tar
| Sparc(32bit) | Sparc(64bit) |
|
| | ? | ? |
Solaris9 | ? | | ? |
Solaris10 | - | | |
2006/11/05 -
<CR><LF>
# ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for isainfo... yes
checking for uname... yes
checking for cut... yes
configure: creating ./config.status
config.status: creating Makefile
#
# make
gcc -c -O -D_KERNEL -D_SYSCALL32 -m64 -DSOL10 ste.c -o ste.o
/usr/ccs/bin/ld -dn -r ste.o -o ste
gcc -c -g -O2 sted.c -o sted.o
gcc -c -g -O2 sted_socket.c -o sted_socket.o
gcc -c -g -O2 dlpiutil.c -o dlpiutil.o
gcc -g -O2 -lsocket -lnsl sted.o sted_socket.o dlpiutil.o -o sted
gcc -c -g -O2 stehub.c -o stehub.o
gcc -g -O2 -lsocket -lnsl stehub.o -o stehub
#
# 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
/usr/sbin/add_drv ste
#
# ls -l /dev/ste
# ls -l /devices/pseudo/clone@0:ste
#
# make uninstall
/usr/sbin/rem_drv ste
/bin/rm /kernel/drv/sparcv9/ste
/bin/rm /kernel/drv/ste.conf
/bin/rm /usr/local/bin/sted
/bin/rm /usr/local/bin/stehub
#
# make uninstall
/usr/sbin/rem_drv ste
Cannot unload module: ste
Will be unloaded upon reboot.
/bin/rm /kernel/drv/sparcv9/ste
/bin/rm /kernel/drv/ste.conf
/bin/rm /usr/local/bin/sted
/bin/rm /usr/local/bin/stehub
#
# ifconfig ste0 plumb
# ifconfig ste0 10.0.0.55 up
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 10
inet 172.29.73.55 netmask ffffff00 broadcast 172.29.73.255
ether 8:0:20:c6:69:c7
ste0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 94
inet 10.0.0.55 netmask ff000000 broadcast 10.255.255.255
ether a:0:20:69:c:d1
# snoop -d ste0
Using device /dev/ste (promiscuous mode)
10.0.0.90 -> (broadcast) ARP C Who is 10.0.0.55, 10.0.0.55 ?
10.0.0.55 -> 10.0.0.90 ARP R 10.0.0.55, 10.0.0.55 is 8:0:20:0:0:55
10.0.0.90 -> 10.0.0.55 ICMP Echo request (ID: 543 Sequence number: 0)
10.0.0.55 -> 10.0.0.90 ICMP Echo reply (ID: 543 Sequence number: 0)
#
name="ste" parent="pseudo" instance=0;
name="ste" parent="pseudo" instance=1;
name="ste" parent="pseudo" instance=2;
Usage: stehub [ -p port] [-d level]
-p port : Port nubmer
-d level : Debug level[0-1]
# stehub -p 8888
Going to background mode
#
Usage: sted [ -i instance] [-h hub[:port]] [ -p proxy[:port]] [-d level]
-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]
# sted -i 0 -h hub.example.com:8888
Successfully connected with HUB
Going to background mode
#
-
hostA # cp stehub /usr/local/bin/
hostA #
-
hostA # /usr/local/bin/stehub -p 8888
Going to background mode
hostA #
-
hostB # 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
hostB #
-
hostB # /usr/sbin/ifconfig ste0 plumb
hostB # /usr/sbin/ifconfig ste0 192.168.0.1 up
hostB # /usr/sbin/ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 172.29.73.55 netmask ffffff00 broadcast 172.29.73.255
ether 8:0:20:c6:69:c7
ste0: flags=1001843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 192.168.0.1 netmask ffffff00 broadcast 192.168.0.255
ether a:0:20:69:c:d1
hostB #
-
hostB # /usr/local/bin/sted -h hostA:8888
Successfully connected with HUB
Going to background mode
hostB #
-
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 #
-
hostC # /usr/sbin/ifconfig ste0 plumb
hostC # /usr/sbin/ifconfig ste0 192.168.0.2 up
hostC # /usr/sbin/ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> 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<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 192.168.0.2 netmask ffffff00 broadcast 192.168.0.255
ether a:0:20:7c:1a:e5
hostC #
-
hostC # /usr/local/bin/sted -h hostA:8888 -p Proxy:8080
Successfully connected with HUB
Going to background mode
hostC #
-
hostA # cp stehub /usr/local/bin/
hostA #
-
hostA # /usr/local/bin/stehub -p 8888
Going to background mode
hostA #
-
hostB # 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
hostB #
-
hostB # ifconfig ste0 plumb
hostB # ifconfig ste0 172.29.80.55 netmask 255.255.255.0 broadcast + up
hostB # ifconfig ste0 ether 8:0:20:0:0:1
hostB # ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 172.29.73.55 netmask ffffff00 broadcast 172.29.73.255
ether 8:0:20:c6:69:c7
ste0: flags=1001843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 172.29.80.55 netmask ffffff00 broadcast 172.29.80.255
ether 8:0:20:0:0:1
hostB #
-
hostB # /usr/local/bin/sted -h hostA:8888
Successfully connected with HUB
Going to background mode
hostB #
-
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 #
-
hostC # make install
/bin/cp brdg /kernel/strmod/sparcv9/brdg
/usr/sbin/modload brdg
hostC #
-
hostC # ./brdgadm -a hme0
hme0 successfully added. (muxid=10)
hostC # ./brdgadm -a ste0
ste0 successfully added. (muxid=11)
hostC # ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 172.29.80.33 netmask ffffff00 broadcast 172.29.80.255
ether 8:0:20:d3:da:8a
hostC #
-
hostC # /usr/local/bin/sted -h hostA:8888 -p Proxy:8080
Successfully connected with HUB
Going to background mode
hostC #
-
- SoftEther
SoftEther