[rtems-libbsd commit] IFCONFIG(8): Default to AF_INET for RTEMS
Sebastian Huber
sebh at rtems.org
Wed Sep 24 08:16:02 UTC 2014
Module: rtems-libbsd
Branch: master
Commit: efb82b8d6e646ed470d88dd833c10a6195d43ce3
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=efb82b8d6e646ed470d88dd833c10a6195d43ce3
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Sep 24 10:23:43 2014 +0200
IFCONFIG(8): Default to AF_INET for RTEMS
Avoid errors due to optional AF_LOCAL.
---
freebsd/sbin/ifconfig/ifconfig.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/freebsd/sbin/ifconfig/ifconfig.c b/freebsd/sbin/ifconfig/ifconfig.c
index 43b8ea4..74800e8 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 =
More information about the vc
mailing list