From 55c1ec29258d43c6daeaa333ea89aaa890fbc5c4 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Sat, 2 Jun 2012 14:12:54 +0200 Subject: [PATCH] re-enabled auth notifiers --- src/netif/ppp/auth.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/netif/ppp/auth.c b/src/netif/ppp/auth.c index 45989347..09acdee5 100644 --- a/src/netif/ppp/auth.c +++ b/src/netif/ppp/auth.c @@ -203,14 +203,12 @@ int (*allowed_address_hook) __P((u_int32_t addr)) = NULL; void (*multilink_join_hook) __P((void)) = NULL; #endif -#if 0 /* UNUSED */ /* A notifier for when the peer has authenticated itself, and we are proceeding to the network phase. */ struct notifier *auth_up_notifier = NULL; /* A notifier for when the link goes down. */ struct notifier *link_down_notifier = NULL; -#endif /* UNUSED */ /* * Option variables. @@ -704,6 +702,8 @@ void link_down(unit) int unit; { + notify(link_down_notifier, 0); + if (!doing_multilink) { upper_layers_down(unit); if (phase != PHASE_DEAD && phase != PHASE_MASTER) @@ -860,9 +860,8 @@ network_phase(unit) notice("peer from calling number %q authorized", remote_number); #endif /* UNUSED */ -#if 0 /* UNUSED */ /* - * If the peer had to authenticate, run the auth-up script now. + * If the peer had to authenticate, notify it now. */ if (0 #if CHAP_SUPPORT @@ -877,7 +876,6 @@ network_phase(unit) ) { notify(auth_up_notifier, 0); } -#endif /* UNUSED */ #if CBCP_SUPPORT /*