X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fsyscall_netadd.c;h=d25d25fb1a8f7cea4855054488a3b5c65fd05af1;hb=3c0b8b665e96cad3d8acdbad63367979303463e4;hp=176c93c679db6e04d1127772a293fd76917859bf;hpb=9c78378bebc1a9f3d400f422df8ede9efea57dea;p=util-vserver.git diff --git a/lib/syscall_netadd.c b/lib/syscall_netadd.c index 176c93c..d25d25f 100644 --- a/lib/syscall_netadd.c +++ b/lib/syscall_netadd.c @@ -20,23 +20,34 @@ # include #endif +#include + #include "vserver.h" -#include "vserver-internal.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" + #if defined(VC_ENABLE_API_NET) # include "syscall_netadd-net.hc" #endif -#if defined(VC_ENABLE_API_NET) +#if defined(VC_ENABLE_API_NETV2) +# include "syscall_netadd-netv2.hc" +#endif + +#if defined(VC_ENABLE_API_NET) || defined(VC_ENABLE_API_NETV2) int -vc_net_add(nid_t nid, struct vc_net_nx const *info) +vc_net_add(nid_t nid, struct vc_net_addr const *info) { if (info==0) { errno = EFAULT; return -1; } - CALL_VC(CALL_VC_NET(vc_net_add, nid, info)); + CALL_VC(CALL_VC_NETV2(vc_net_add, nid, info), + CALL_VC_NET (vc_net_add, nid, info)); } #endif