X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2Fifspec.c;h=f2bc2bf5fe0c757355f8c7414ced06d5eabffc00;hb=95e2774070e989fe9cf9f48dae5fa054e55e2a3e;hp=c375bcc083c2789f3813760f54ee9668655923ed;hpb=06e1018272502e1d15d6d8f32b80fa96420785b8;p=util-vserver.git diff --git a/src/ifspec.c b/src/ifspec.c index c375bcc..f2bc2bf 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 965 2004-02-20 16:59:40Z ensc $ // 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'){