extern int do_if_fetch(struct interface *ife);
extern int do_if_print(struct interface *ife, void *cookie);
+extern int procnetdev_version(char *buf);
+extern int get_dev_fields(char *bp, struct interface *ife);
+extern char * get_name(char *name, char *p);
+
extern void ife_print(struct interface *ptr);
extern int ife_short;
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"
return err;
}
-static char *get_name(char *name, char *p)
+char *get_name(char *name, char *p)
{
while (isspace(*p))
p++;
return p;
}
-static int procnetdev_version(char *buf)
+int procnetdev_version(char *buf)
{
if (strstr(buf, "compressed"))
return 3;
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: