aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBernd Eckenfels <net-tools@lina.inka.de>2002-03-05 00:47:36 +0000
committerBernd Eckenfels <net-tools@lina.inka.de>2002-03-05 00:47:36 +0000
commitadd5d92ac1654d937651884430e5c15c16e3479c (patch)
tree33baf8522417519d35efc0641d8b6b09872bc8cd /lib
parentmake RX-OK and TX-OK col. in "netstat -i" 1 digit longer by left aligning (diff)
downloadnet-tools-add5d92ac1654d937651884430e5c15c16e3479c.tar.gz
net-tools-add5d92ac1654d937651884430e5c15c16e3479c.tar.bz2
net-tools-add5d92ac1654d937651884430e5c15c16e3479c.zip
export procnetdev_version, get_dev_fields, get_name from
lib/interface.c for general usage (e.g. in my next patch to iptunnel)
Diffstat (limited to 'lib')
-rw-r--r--lib/interface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/interface.c b/lib/interface.c
index c5f09de..ad268ae 100644
--- a/lib/interface.c
+++ b/lib/interface.c
@@ -7,7 +7,7 @@
8/2000 Andi Kleen make the list operations a bit more efficient.
People are crazy enough to use thousands of aliases now.
- $Id: interface.c,v 1.22 2002/02/23 21:27:30 ecki Exp $
+ $Id: interface.c,v 1.23 2002/03/05 00:47:36 ecki Exp $
*/
#include "config.h"
@@ -202,7 +202,7 @@ out:
return err;
}
-static char *get_name(char *name, char *p)
+char *get_name(char *name, char *p)
{
while (isspace(*p))
p++;
@@ -229,7 +229,7 @@ static char *get_name(char *name, char *p)
return p;
}
-static int procnetdev_version(char *buf)
+int procnetdev_version(char *buf)
{
if (strstr(buf, "compressed"))
return 3;
@@ -238,7 +238,7 @@ static int procnetdev_version(char *buf)
return 1;
}
-static int get_dev_fields(char *bp, struct interface *ife)
+int get_dev_fields(char *bp, struct interface *ife)
{
switch (procnetdev_vsn) {
case 3: