* lib/hw.c This file contains the top-level part of the hardware
* support functions module.
*
- * Version: $Id: hw.c,v 1.12 1999/04/18 20:28:43 philip Exp $
+ * Version: $Id: hw.c,v 1.19 2008/10/03 01:52:04 ecki Exp $
*
* Maintainer: Bernd 'eckes' Eckenfels, <net-tools@lina.inka.de>
*
*/
#include <sys/types.h>
#include <sys/socket.h>
+#include <net/if_arp.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
extern struct hwtype slip6_hwtype;
extern struct hwtype cslip6_hwtype;
extern struct hwtype adaptive_hwtype;
+extern struct hwtype strip_hwtype;
extern struct hwtype ether_hwtype;
extern struct hwtype fddi_hwtype;
extern struct hwtype hippi_hwtype;
extern struct hwtype tr_hwtype;
+#ifdef ARPHRD_IEEE802_TR
+extern struct hwtype tr_hwtype1;
+#endif
extern struct hwtype ax25_hwtype;
extern struct hwtype rose_hwtype;
extern struct hwtype netrom_hwtype;
+extern struct hwtype x25_hwtype;
extern struct hwtype tunnel_hwtype;
extern struct hwtype ash_hwtype;
extern struct hwtype sit_hwtype;
+extern struct hwtype irda_hwtype;
+
+extern struct hwtype ec_hwtype;
+
+extern struct hwtype ib_hwtype;
+
+extern struct hwtype eui64_hwtype;
+
static struct hwtype *hwtypes[] =
{
&cslip6_hwtype,
&adaptive_hwtype,
#endif
+#if HAVE_HWSTRIP
+ &strip_hwtype,
+#endif
#if HAVE_HWASH
&ash_hwtype,
#endif
#endif
#if HAVE_HWTR
&tr_hwtype,
+#ifdef ARPHRD_IEEE802_TR
+ &tr_hwtype1,
+#endif
#endif
#if HAVE_HWAX25
&ax25_hwtype,
#if HAVE_HWHIPPI
&hippi_hwtype,
#endif
+#if HAVE_HWIRDA
+ &irda_hwtype,
+#endif
+#if HAVE_HWEC
+ &ec_hwtype,
+#endif
+#if HAVE_HWX25
+ &x25_hwtype,
+#endif
+#if HAVE_HWIB
+ &ib_hwtype,
+#endif
+#if HAVE_HWEUI64
+ &eui64_hwtype,
+#endif
&unspec_hwtype,
NULL
};
#if HAVE_HWNETROM
netrom_hwtype.title = _("AMPR NET/ROM");
#endif
+#if HAVE_HWX25
+ x25_hwtype.title = _("generic X.25");
+#endif
#if HAVE_HWTUNNEL
tunnel_hwtype.title = _("IPIP Tunnel");
#endif
#if HAVE_HWSIT
sit_hwtype.title = _("IPv6-in-IPv4");
#endif
+#if HAVE_HWIRDA
+ irda_hwtype.title = _("IrLAP");
+#endif
+#if HAVE_HWTR
+ tr_hwtype.title = _("16/4 Mbps Token Ring");
+#ifdef ARPHRD_IEEE802_TR
+ tr_hwtype1.title = _("16/4 Mbps Token Ring (New)") ;
+#endif
+#endif
+#if HAVE_HWEC
+ ec_hwtype.title = _("Econet");
+#endif
+#if HAVE_HWIB
+ ib_hwtype.title = _("InfiniBand");
+#endif
+#if HAVE_HWEUI64
+ eui64_hwtype.title = _("Generic EUI-64");
+#endif
sVhwinit = 1;
}