X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fsrc%2Fchbind.c;h=6c626df679ba0fc4485867a7ac3d2cf1a7bc632a;hb=e035f164c858115c488d0f2fc1e0d356a9096996;hp=90bf13ccaacc17064d6f57fb4ab10be0c459a681;hpb=0e682b2d060bbf4e3178f942408c900625a92696;p=util-vserver.git diff --git a/util-vserver/src/chbind.c b/util-vserver/src/chbind.c index 90bf13c..6c626df 100644 --- a/util-vserver/src/chbind.c +++ b/util-vserver/src/chbind.c @@ -38,6 +38,7 @@ #include #include +#define ENSC_WRAPPERS_PREFIX "chbind: " #define ENSC_WRAPPERS_IO 1 #define ENSC_WRAPPERS_UNISTD 1 #include "wrappers.h" @@ -276,7 +277,7 @@ int main (int argc, char *argv[]) if (vc_set_ipv4root(bcast,nbaddrs,ips)!=0) { - perror("vc_set_ipv4root()"); + perror("chbind: vc_set_ipv4root()"); exit(wrapper_exit_code); } @@ -302,7 +303,6 @@ void test() { struct vc_ip_mask_pair ip; uint32_t bcast; - uint32_t tmp; bcast = 0; readIP("1.2.3.4", &ip, &bcast); @@ -317,9 +317,11 @@ void test() readIP("localhost", &ip, &bcast); assert(ip.ip==ntohl(0x7f000001) && ip.mask==ntohl(0xffffff00) && bcast==0); +#if 0 if (ifconfig_getaddr("lo", &tmp, &tmp, &tmp)!=-1) { readIP("lo", &ip, &bcast); assert(ip.ip==ntohl(0x7f000001) && ip.mask==ntohl(0xff000000) && bcast==ntohl(0x7fffffff)); } +#endif } #endif