diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2010-04-06 18:07:49 +0300 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-04-06 17:45:04 +0200 |
commit | 4acf155fb2ced327495fe95e64bf62117f5d307a (patch) | |
tree | a0b37ece70ca6f9114dca4f58615baa5d3d1153c /server/reds.c | |
parent | 88aa56045a57e760beb35e659731741dc15f3aac (diff) | |
download | spice-4acf155fb2ced327495fe95e64bf62117f5d307a.tar.gz spice-4acf155fb2ced327495fe95e64bf62117f5d307a.tar.xz spice-4acf155fb2ced327495fe95e64bf62117f5d307a.zip |
server configuration: make network redirection support optional
By default it is disabled. To enable: configure --enable-tunnel.
When active, requires libslirp.
Diffstat (limited to 'server/reds.c')
-rw-r--r-- | server/reds.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/reds.c b/server/reds.c index ef088f0d..675db619 100644 --- a/server/reds.c +++ b/server/reds.c @@ -46,11 +46,13 @@ #include "red_common.h" #include "red_dispatcher.h" #include "snd_worker.h" -#include "red_tunnel_worker.h" #include <spice/stats.h> #include "stat.h" #include "ring.h" #include "config.h" +#ifdef HAVE_SLIRP +#include "red_tunnel_worker.h" +#endif CoreInterface *core = NULL; static MigrationInterface *mig = NULL; @@ -5162,6 +5164,7 @@ static void interface_change_notifier(void *opaque, VDInterface *interface, } attach_to_red_agent((VDIPortInterface *)interface); } else if (strcmp(interface->type, VD_INTERFACE_NET_WIRE) == 0) { +#ifdef HAVE_SLIRP NetWireInterface * net_wire = (NetWireInterface *)interface; red_printf("VD_INTERFACE_NET_WIRE"); if (red_tunnel) { @@ -5174,6 +5177,9 @@ static void interface_change_notifier(void *opaque, VDInterface *interface, return; } red_tunnel = red_tunnel_attach(core, net_wire); +#else + red_printf("unsupported net wire interface"); +#endif } break; case VD_INTERFACE_REMOVING: |