summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/ipcp.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2001-05-11 23:42:03 +0000
committerBrian Somers <brian@FreeBSD.org>2001-05-11 23:42:03 +0000
commit448374baaef07b4678dec88626c500b1e8c5bdfc (patch)
tree99d63a1c2c7c9ecc43b8b76be72e47199421500d /usr.sbin/ppp/ipcp.c
parentb012b205a7205e5c503de94c1219d4375d58cf2f (diff)
downloadsrc-test2-448374baaef07b4678dec88626c500b1e8c5bdfc.tar.gz
src-test2-448374baaef07b4678dec88626c500b1e8c5bdfc.zip
Notes
Diffstat (limited to 'usr.sbin/ppp/ipcp.c')
-rw-r--r--usr.sbin/ppp/ipcp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.sbin/ppp/ipcp.c b/usr.sbin/ppp/ipcp.c
index 3e04e479c265..d9e4a041e515 100644
--- a/usr.sbin/ppp/ipcp.c
+++ b/usr.sbin/ppp/ipcp.c
@@ -29,6 +29,7 @@
#include <netinet/ip.h>
#include <arpa/inet.h>
#include <sys/socket.h>
+#include <net/if.h>
#include <net/route.h>
#include <netdb.h>
#include <sys/un.h>
@@ -992,6 +993,12 @@ ipcp_InterfaceUp(struct ipcp *ipcp)
return 0;
}
+ if (!iface_SetFlags(ipcp->fsm.bundle->iface->name, IFF_UP)) {
+ log_Printf(LogERROR, "ipcp_InterfaceUp: Can't set the IFF_UP flag on %s\n",
+ ipcp->fsm.bundle->iface->name);
+ return 0;
+ }
+
#ifndef NONAT
if (ipcp->fsm.bundle->NatEnabled)
PacketAliasSetAddress(ipcp->my_ip);