diff options
author | brian <brian@FreeBSD.org> | 2005-01-10 11:12:10 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2005-01-10 11:12:10 +0000 |
commit | bd90e346ec6eda769f4949b74013dff121836adf (patch) | |
tree | 3933424f4d8827fe1a67ca084b4f35dc2d97c504 /usr.sbin | |
parent | 4396a151dc9a1cc9f5d84c81f4078d8b598dcf18 (diff) | |
download | FreeBSD-src-bd90e346ec6eda769f4949b74013dff121836adf.zip FreeBSD-src-bd90e346ec6eda769f4949b74013dff121836adf.tar.gz |
ifr_flagshigh is FreeBSD specific
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ppp/iface.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/ppp/iface.c b/usr.sbin/ppp/iface.c index 67768da..5c7f7d0 100644 --- a/usr.sbin/ppp/iface.c +++ b/usr.sbin/ppp/iface.c @@ -568,14 +568,20 @@ iface_ChangeFlags(const char *ifname, int flags, int how) close(s); return 0; } +#ifdef __FreeBSD__ new_flags = (ifrq.ifr_flags & 0xffff) | (ifrq.ifr_flagshigh << 16); +#else + new_flags = ifrq.ifr_flags & 0xffff; +#endif if (how == IFACE_ADDFLAGS) new_flags |= flags; else new_flags &= ~flags; ifrq.ifr_flags = new_flags & 0xffff; +#ifdef __FreeBSD__ ifrq.ifr_flagshigh = new_flags >> 16; +#endif if (ID0ioctl(s, SIOCSIFFLAGS, &ifrq) < 0) { log_Printf(LogERROR, "iface_ChangeFlags: ioctl(SIOCSIFFLAGS): %s\n", |