summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/bundle.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-03-28 09:45:27 +0000
committerbrian <brian@FreeBSD.org>2001-03-28 09:45:27 +0000
commit6cb53fb2873120b14ac6942814b22a1753404cf2 (patch)
treea7b0a9db380124caceb17298dd335a25fb4be049 /usr.sbin/ppp/bundle.c
parentb47bfbe544d34ff21bc24b57c556621eb2355e45 (diff)
downloadFreeBSD-src-6cb53fb2873120b14ac6942814b22a1753404cf2.zip
FreeBSD-src-6cb53fb2873120b14ac6942814b22a1753404cf2.tar.gz
Bring the PPPoE interface UP if required
Suggested by: archie
Diffstat (limited to 'usr.sbin/ppp/bundle.c')
-rw-r--r--usr.sbin/ppp/bundle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c
index c2e659e..325f37b 100644
--- a/usr.sbin/ppp/bundle.c
+++ b/usr.sbin/ppp/bundle.c
@@ -791,7 +791,7 @@ bundle_Create(const char *prefix, int type, int unit)
#endif
#endif
- if (!iface_SetFlags(bundle.iface, IFF_UP)) {
+ if (!iface_SetFlags(bundle.iface->name, IFF_UP)) {
iface_Destroy(bundle.iface);
bundle.iface = NULL;
close(bundle.dev.fd);
@@ -886,7 +886,7 @@ static void
bundle_DownInterface(struct bundle *bundle)
{
route_IfDelete(bundle, 1);
- iface_ClearFlags(bundle->iface, IFF_UP);
+ iface_ClearFlags(bundle->iface->name, IFF_UP);
}
void
OpenPOWER on IntegriCloud