optional compilation of pcap/tap ve devices - vx32 - Local 9vx git repository for patches.
       
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit f13823178c8e50e56aa5d4631866f5a241185a33
 (DIR) parent 1aaf87b74f88ed55a5916fe58205c4f37cee4e97
 (HTM) 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(-)
       ---
 (DIR) 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/,\
 (DIR) 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");
       +}
 (DIR) 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");
       +}