Skip to content

Instantly share code, notes, and snippets.

Created April 9, 2015 03:19
What would you like to do?
Getting and Building the TAP Driver for Solaris
# git clone
Cloning into 'tuntap'...
remote: Counting objects: 134, done.
remote: Total 134 (delta 0), reused 0 (delta 0), pack-reused 134
Receiving objects: 100% (134/134), 88.35 KiB, done.
Resolving deltas: 100% (76/76), done.
# cd tuntap
# ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking for isainfo... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tun-test/Makefile
# gmake
gcc -DPACKAGE_NAME=\"tuntap\" -DPACKAGE_TARNAME=\"tuntap\" -DPACKAGE_VERSION=\"1.3.2\" -DPACKAGE_STRING=\"tuntap\ 1.3.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DTUN_VER=\"1.3.2\ 04/08/2015\" -g -O2 -Wall -DSOL11 -D_KERNEL -I. -m64 -mcmodel=large -mno-red-zone -c ./tun.c -o tun.o -DTUNTAP_TUN
ld -r -o tun tun.o
gcc -DPACKAGE_NAME=\"tuntap\" -DPACKAGE_TARNAME=\"tuntap\" -DPACKAGE_VERSION=\"1.3.2\" -DPACKAGE_STRING=\"tuntap\ 1.3.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DTUN_VER=\"1.3.2\ 04/08/2015\" -g -O2 -Wall -DSOL11 -D_KERNEL -I. -m64 -mcmodel=large -mno-red-zone -c ./tun.c -o tap.o -DTUNTAP_TAP
ld -r -o tap tap.o
# sudo gmake install
/usr/bin/ginstall -c -d -m 0755 /usr/include/net
/usr/bin/ginstall -c -d -m 0755 /usr/kernel/drv/amd64
/usr/bin/ginstall -c -m 644 ./if_tun.h /usr/include/net
/usr/bin/ginstall -c -m 644 tun /usr/kernel/drv/amd64
/usr/bin/ginstall -c -m 644 tap /usr/kernel/drv/amd64
/usr/bin/ginstall -c -m 644 ./tun.conf /usr/kernel/drv
/usr/bin/ginstall -c -m 644 ./tap.conf /usr/kernel/drv
[ -z "" ]&& /usr/sbin/rem_drv tun >/dev/null 2>&1
[ -z "" ]&& /usr/sbin/rem_drv tap >/dev/null 2>&1
[ -z "" ]&& /usr/sbin/add_drv tun
[ -z "" ]&& /usr/sbin/add_drv tap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment