aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>2001-04-08 20:29:09 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>2001-04-08 20:29:09 +0000
commit9a828069731d96c0d18282129e3449c47b9a5ab2 (patch)
treecf2d039254f6d7e38e27427dbadf7c3f07e58b30
parent60391e107d5f302f450631cc582bcbb59c383c65 (diff)
Notes
-rw-r--r--sys/net/if_spppsubr.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c
index d4bdcecf8a5b..6928c9576837 100644
--- a/sys/net/if_spppsubr.c
+++ b/sys/net/if_spppsubr.c
@@ -1859,6 +1859,14 @@ sppp_lcp_up(struct sppp *sp)
sp->lcp.protos = 0;
sp->lcp.mru = sp->lcp.their_mru = PP_MTU;
/*
+ * If we are authenticator, negotiate LCP_AUTH
+ */
+ if (sp->hisauth.proto != 0)
+ sp->lcp.opts |= (1 << LCP_OPT_AUTH_PROTO);
+ else
+ sp->lcp.opts &= ~(1 << LCP_OPT_AUTH_PROTO);
+ sp->pp_flags &= ~PP_NEEDAUTH;
+ /*
* If this interface is passive or dial-on-demand, and we are
* still in Initial state, it means we've got an incoming
* call. Activate the interface.
@@ -1914,14 +1922,6 @@ sppp_lcp_down(struct sppp *sp)
static void
sppp_lcp_open(struct sppp *sp)
{
- /*
- * If we are authenticator, negotiate LCP_AUTH
- */
- if (sp->hisauth.proto != 0)
- sp->lcp.opts |= (1 << LCP_OPT_AUTH_PROTO);
- else
- sp->lcp.opts &= ~(1 << LCP_OPT_AUTH_PROTO);
- sp->pp_flags &= ~PP_NEEDAUTH;
sppp_open_event(&lcp, sp);
}