git://git.onelab.eu
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge 0.30.214.
[util-vserver.git]
/
src
/
ifspec.c
diff --git
a/src/ifspec.c
b/src/ifspec.c
index
c375bcc
..
f2bc2bf
100644
(file)
--- 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 <enrico.scholz@informatik.tu-chemnitz.de>
// based on ifspec.cc by Jacques Gelinas
// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
// based on ifspec.cc by Jacques Gelinas
@@
-24,6
+24,10
@@
NETMASK=
BCAST=
*/
NETMASK=
BCAST=
*/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@
-120,7
+124,7
@@
int ifconfig_print (
ret = 0;
}
else {
ret = 0;
}
else {
- perror("ioctl(SIOCGIFADDR)");
+ perror("i
fspec: i
octl(SIOCGIFADDR)");
}
if (maskstr != NULL && maskstr[0] != '\0'){
}
if (maskstr != NULL && maskstr[0] != '\0'){
@@
-138,7
+142,7
@@
int ifconfig_print (
ret = 0;
}
else {
ret = 0;
}
else {
- perror("ioctl(SIOCGIFNETMASK)");
+ perror("i
fspec: i
octl(SIOCGIFNETMASK)");
}
if (bcaststr != NULL && bcaststr[0] != '\0'){
}
if (bcaststr != NULL && bcaststr[0] != '\0'){