vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

commit f13823178c8e50e56aa5d4631866f5a241185a33
parent 1aaf87b74f88ed55a5916fe58205c4f37cee4e97
Author: Jesus Galan Lopez (yiyus) <yiyu.jgl@gmail.com>
Date:   Tue, 22 Jun 2010 00:26:10 +0200

optional compilation of pcap/tap ve devices

Diffstat:
src/9vx/Makefrag | 14++++++++++++--
src/9vx/nopcap.c | 5+++++
src/9vx/notap.c | 5+++++
3 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/src/9vx/Makefrag b/src/9vx/Makefrag @@ -19,6 +19,12 @@ endif # If you don't have/want X11 #PLAN9GUI=nogui +# Virtual ethernet devices +PLAN9PCAP=etherpcap +#PLAN9PCAP=nopcap +PLAN9TAP=ethertap +#PLAN9TAP=notap + ifeq ($(PLAN9VX),1) all: 9vx/9vx @@ -115,8 +121,8 @@ PLAN9_IP_OBJS = \ $(addprefix 9vx/,\ devip.o \ devip-posix.o \ - etherpcap.o \ - ethertap.o \ + $(PLAN9PCAP).o \ + $(PLAN9TAP).o \ vether.o \ ) \ $(addprefix 9vx/a/,\ @@ -151,7 +157,11 @@ PLAN9_IP_OBJS = \ tcp.o \ udp.o \ ) +ifneq ($(PLAN9PCAP), nopcap) PLAN9_IP_LIBS = -lpcap +else +PLAN9_IP_LIBS = +endif PLAN9_nogui_OBJS = \ $(addprefix 9vx/,\ diff --git a/src/9vx/nopcap.c b/src/9vx/nopcap.c @@ -0,0 +1,5 @@ +void +etherpcaplink(void) +{ + iprint("ve: virtual pcap device not compiled\n"); +} diff --git a/src/9vx/notap.c b/src/9vx/notap.c @@ -0,0 +1,5 @@ +void +ethertaplink(void) +{ + iprint("ve: virtual tap device not compiled\n"); +}