aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/ll_types.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-06-20 09:05:00 +0000
committerEric Andersen <andersen@codepoet.org>2003-06-20 09:05:00 +0000
commit0f08e53535a7a1c0d4f7699f2e4224a255921559 (patch)
treeceebbc8c3fd94050aaf8a775807a49ae25286981 /networking/libiproute/ll_types.c
parent8876fb2f59a0b515b3121d5894933eef88ce566a (diff)
downloadbusybox-0f08e53535a7a1c0d4f7699f2e4224a255921559.tar.gz
Patch from Lars Kellogg-Stedman:
I'm building BusyBox using a development kit for MontaVista Hardhat Linux (PPC) -- which, at least in this instance, is based around kernel 2.2.14. I've had to massage a few files in networking/libiproute/ to make it compile. Specifically: (1) Added a #include <sys/uio.h> for the iovec structure in libnetlink.c, (2) Put ifdefs in ll_types.c and ll_proto.c around various constants (ETH_P_xxx and ARPHRD_xxx) that weren't defined, (3) Make do_changename() in iplink.c require a kernel >= 2.4.0 -- the ifr structure in my environment doesn't have the ifr_name attribute. I've assumed this is a kernel dependency -- let me know if I ought to be checking something else. In the absence of the correct kernel, do_changename() always returns 0. Attached is a patch against the current CVS that will make these changes. -- Lars
Diffstat (limited to 'networking/libiproute/ll_types.c')
-rw-r--r--networking/libiproute/ll_types.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/networking/libiproute/ll_types.c b/networking/libiproute/ll_types.c
index 925d60ddc..f39f777e1 100644
--- a/networking/libiproute/ll_types.c
+++ b/networking/libiproute/ll_types.c
@@ -34,7 +34,9 @@ __PF(IEEE802,tr)
__PF(ARCNET,arcnet)
__PF(APPLETLK,atalk)
__PF(DLCI,dlci)
+#ifdef ARPHRD_ATM
__PF(ATM,atm)
+#endif
__PF(METRICOM,metricom)
#ifdef ARPHRD_IEEE1394
__PF(IEEE1394,ieee1394)
@@ -48,12 +50,16 @@ __PF(RSRVD,rsrvd)
__PF(ADAPT,adapt)
__PF(ROSE,rose)
__PF(X25,x25)
+#ifdef ARPHRD_HWX25
__PF(HWX25,hwx25)
+#endif
__PF(PPP,ppp)
__PF(HDLC,hdlc)
__PF(LAPB,lapb)
+#ifdef ARPHRD_DDCMP
__PF(DDCMP,ddcmp)
__PF(RAWHDLC,rawhdlc)
+#endif
__PF(TUNNEL,ipip)
__PF(TUNNEL6,tunnel6)