summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-09-24 10:23:43 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-09-24 10:24:57 +0200
commitefb82b8d6e646ed470d88dd833c10a6195d43ce3 (patch)
tree5d83e345b5ae9e3cc8a6cda70ebb10e37daa1bf6
parentReplace RTEMS objects with custom implementation (diff)
downloadrtems-libbsd-efb82b8d6e646ed470d88dd833c10a6195d43ce3.tar.bz2
IFCONFIG(8): Default to AF_INET for RTEMS
Avoid errors due to optional AF_LOCAL.
-rw-r--r--freebsd/sbin/ifconfig/ifconfig.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/freebsd/sbin/ifconfig/ifconfig.c b/freebsd/sbin/ifconfig/ifconfig.c
index 43b8ea42..74800e85 100644
--- a/freebsd/sbin/ifconfig/ifconfig.c
+++ b/freebsd/sbin/ifconfig/ifconfig.c
@@ -991,7 +991,11 @@ status(const struct afswtch *afp, const struct sockaddr_dl *sdl,
if (afp == NULL) {
allfamilies = 1;
+#ifndef __rtems__
ifr.ifr_addr.sa_family = AF_LOCAL;
+#else /* __rtems__ */
+ ifr.ifr_addr.sa_family = AF_INET;
+#endif /* __rtems__ */
} else {
allfamilies = 0;
ifr.ifr_addr.sa_family =