X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fsyscall_netremove.c;h=25430ab3b057a4d37bfecd93ed6fb014299d337d;hb=95e2774070e989fe9cf9f48dae5fa054e55e2a3e;hp=77af245b2a44a6e49364abe05b9e4507b48d3d9c;hpb=2822ba293eb308225c50d346930c47bf98d9927b;p=util-vserver.git diff --git a/lib/syscall_netremove.c b/lib/syscall_netremove.c index 77af245..25430ab 100644 --- a/lib/syscall_netremove.c +++ b/lib/syscall_netremove.c @@ -1,4 +1,4 @@ -// $Id: syscall_netremove.c,v 1.1 2004/04/22 20:46:43 ensc Exp $ --*- c -*-- +// $Id: syscall_netremove.c 2578 2007-08-08 20:05:26Z dhozac $ --*- c -*-- // Copyright (C) 2004 Enrico Scholz // @@ -20,23 +20,34 @@ # include #endif +#include + #include "vserver.h" +#include "virtual.h" + +#if defined(VC_ENABLE_API_NET) && defined(VC_ENABLE_API_NETV2) +# define VC_MULTIVERSION_SYSCALL 1 +#endif #include "vserver-internal.h" -#include "linuxvirtual.h" #if defined(VC_ENABLE_API_NET) # include "syscall_netremove-net.hc" #endif -#if defined(VC_ENABLE_API_NET) && 0 +#if defined(VC_ENABLE_API_NETV2) +# include "syscall_netremove-netv2.hc" +#endif + +#if defined(VC_ENABLE_API_NET) || defined(VC_ENABLE_API_NETV2) int -vc_net_remove(nid_t nid, struct vc_net_nx const *info) +vc_net_remove(nid_t nid, struct vc_net_addr const *info) { if (info==0) { errno = EFAULT; return -1; } - CALL_VC(CALL_VC_NET(vc_net_remove, nid, info)); + CALL_VC(CALL_VC_NETV2(vc_net_remove, nid, info), + CALL_VC_NET (vc_net_remove, nid, info)); } #endif