diff options
author | mlaier <mlaier@FreeBSD.org> | 2005-08-09 11:59:02 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2005-08-09 11:59:02 +0000 |
commit | 022c2a093be8042537ed2c836805b5f99ee85a01 (patch) | |
tree | 255af287241bb2672196488f5ce32150ebeffae6 /sys/contrib/pf | |
parent | ee00ecfc998a93cf7271b5c664c99a2318e4853b (diff) | |
download | FreeBSD-src-022c2a093be8042537ed2c836805b5f99ee85a01.zip FreeBSD-src-022c2a093be8042537ed2c836805b5f99ee85a01.tar.gz |
Wrap the new world order in __FreeBSD__ to ease future imports.
Diffstat (limited to 'sys/contrib/pf')
-rw-r--r-- | sys/contrib/pf/net/if_pflog.c | 7 | ||||
-rw-r--r-- | sys/contrib/pf/net/if_pfsync.c | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/sys/contrib/pf/net/if_pflog.c b/sys/contrib/pf/net/if_pflog.c index 9047c4f..1fd6a82 100644 --- a/sys/contrib/pf/net/if_pflog.c +++ b/sys/contrib/pf/net/if_pflog.c @@ -271,10 +271,17 @@ pflogioctl(struct ifnet *ifp, u_long cmd, caddr_t data) case SIOCAIFADDR: case SIOCSIFDSTADDR: case SIOCSIFFLAGS: +#ifdef __FreeBSD__ if (ifp->if_flags & IFF_UP) ifp->if_drv_flags |= IFF_DRV_RUNNING; else ifp->if_drv_flags &= ~IFF_DRV_RUNNING; +#else + if (ifp->if_flags & IFF_UP) + ifp->if_flags |= IFF_RUNNING; + else + ifp->if_flags &= ~IFF_RUNNING; +#endif break; default: return (EINVAL); diff --git a/sys/contrib/pf/net/if_pfsync.c b/sys/contrib/pf/net/if_pfsync.c index 1df4604..1ebaba9 100644 --- a/sys/contrib/pf/net/if_pfsync.c +++ b/sys/contrib/pf/net/if_pfsync.c @@ -989,10 +989,17 @@ pfsyncioctl(struct ifnet *ifp, u_long cmd, caddr_t data) case SIOCAIFADDR: case SIOCSIFDSTADDR: case SIOCSIFFLAGS: +#ifdef __FreeBSD__ if (ifp->if_flags & IFF_UP) ifp->if_drv_flags |= IFF_DRV_RUNNING; else ifp->if_drv_flags &= ~IFF_DRV_RUNNING; +#else + if (ifp->if_flags & IFF_UP) + ifp->if_flags |= IFF_RUNNING; + else + ifp->if_flags &= ~IFF_RUNNING; +#endif break; case SIOCSIFMTU: if (ifr->ifr_mtu < PFSYNC_MINMTU) |