X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2Fifspec.c;fp=src%2Fifspec.c;h=85c1960f74d46f352d9b47b6365de1f8d7f27e65;hb=8cf13bb177d92c93eb73dc8939777150536c2d00;hp=c375bcc083c2789f3813760f54ee9668655923ed;hpb=6bf3f95de36c804c97716b2d0bdf10680c559044;p=util-vserver.git diff --git a/src/ifspec.c b/src/ifspec.c index c375bcc..85c1960 100644 --- a/src/ifspec.c +++ b/src/ifspec.c @@ -1,4 +1,4 @@ -// $Id: ifspec.c,v 1.1.4.1 2003/11/21 16:01:09 ensc Exp $ +// $Id: ifspec.c,v 1.4 2004/02/20 16:59:40 ensc Exp $ // Copyright (C) 2003 Enrico Scholz // based on ifspec.cc by Jacques Gelinas @@ -24,6 +24,10 @@ NETMASK= BCAST= */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include #include #include @@ -120,7 +124,7 @@ int ifconfig_print ( ret = 0; } else { - perror("ioctl(SIOCGIFADDR)"); + perror("ifspec: ioctl(SIOCGIFADDR)"); } if (maskstr != NULL && maskstr[0] != '\0'){ @@ -138,7 +142,7 @@ int ifconfig_print ( ret = 0; } else { - perror("ioctl(SIOCGIFNETMASK)"); + perror("ifspec: ioctl(SIOCGIFNETMASK)"); } if (bcaststr != NULL && bcaststr[0] != '\0'){