source_entry_s --> node_s

flow2.png

bridge-0.2.tar.gz

Makefile
brdg.c
brdgadm.c

http://github.com/kaizawa/bridge

# make
/usr/local/bin/gcc -g -D_KERNEL -c  brdg.c  -o brdg32.o
/usr/ucb/ld -dn -r brdg32.o -o brdg32
/usr/local/bin/gcc -g -D_KERNEL -c  brdg.c -m64
/usr/ucb/ld -dn -r brdg.o -o brdg
/usr/local/bin/gcc -g -lnsl -lsocket brdgadm.c -o brdgadm
# make install
/bin/cp brdg /kernel/strmod/sparcv9/brdg
/usr/sbin/modload brdg
# make install32
/bin/cp brdg32 /kernel/strmod/brdg
/usr/sbin/modload brdg

# make uninstall 
/bin/rm /kernel/strmod/sparcv9/brdg
/usr/sbin/modunload -i `/usr/sbin/modinfo | awk '/brdg/{ print  }'`
# make uninstall
/bin/rm /kernel/strmod/sparcv9/brdg
/usr/sbin/modunload -i `/usr/sbin/modinfo | awk '/brdg/{ print  }'`
can't unload the module: Device busy
make: *** [uninstall] Error 16

Usage:  brdgadm [ -a interface | -d interface]
Options:
    -a interface     : Add interface as switch port
    -d interface     : Delete interface from port lis

# ./brdgadm -a hme0
hme0 successfully added. (muxid=8)
# ./brdgadm -a le0
le0 successfully added. (muxid=9)
# ./brdgadm
List of the interface currentry regsitered as port
       hme0
       le0
# cat /etc/brdg.mid
hme0:8
le0:9

# ./brdgadm -d hme0
muxid 8 is being deleted...Done
# ./brdgadm -d le0
muxid 9 is being deleted...Done

# ifconfig -a
lo0: flags=1000849 mtu 8232 index 1
       inet 127.0.0.1 netmask ff000000
#

  1. .....



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