diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-09-24 10:23:43 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-09-24 10:24:57 +0200 |
commit | efb82b8d6e646ed470d88dd833c10a6195d43ce3 (patch) | |
tree | 5d83e345b5ae9e3cc8a6cda70ebb10e37daa1bf6 /freebsd/sbin | |
parent | Replace RTEMS objects with custom implementation (diff) | |
download | rtems-libbsd-efb82b8d6e646ed470d88dd833c10a6195d43ce3.tar.bz2 |
IFCONFIG(8): Default to AF_INET for RTEMS
Avoid errors due to optional AF_LOCAL.
Diffstat (limited to 'freebsd/sbin')
-rw-r--r-- | 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 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 = |