mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-22 07:21:30 +00:00
re-enabled auth notifiers
This commit is contained in:
parent
0f1c18e675
commit
55c1ec2925
@ -203,14 +203,12 @@ int (*allowed_address_hook) __P((u_int32_t addr)) = NULL;
|
|||||||
void (*multilink_join_hook) __P((void)) = NULL;
|
void (*multilink_join_hook) __P((void)) = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 0 /* UNUSED */
|
|
||||||
/* A notifier for when the peer has authenticated itself,
|
/* A notifier for when the peer has authenticated itself,
|
||||||
and we are proceeding to the network phase. */
|
and we are proceeding to the network phase. */
|
||||||
struct notifier *auth_up_notifier = NULL;
|
struct notifier *auth_up_notifier = NULL;
|
||||||
|
|
||||||
/* A notifier for when the link goes down. */
|
/* A notifier for when the link goes down. */
|
||||||
struct notifier *link_down_notifier = NULL;
|
struct notifier *link_down_notifier = NULL;
|
||||||
#endif /* UNUSED */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Option variables.
|
* Option variables.
|
||||||
@ -704,6 +702,8 @@ void
|
|||||||
link_down(unit)
|
link_down(unit)
|
||||||
int unit;
|
int unit;
|
||||||
{
|
{
|
||||||
|
notify(link_down_notifier, 0);
|
||||||
|
|
||||||
if (!doing_multilink) {
|
if (!doing_multilink) {
|
||||||
upper_layers_down(unit);
|
upper_layers_down(unit);
|
||||||
if (phase != PHASE_DEAD && phase != PHASE_MASTER)
|
if (phase != PHASE_DEAD && phase != PHASE_MASTER)
|
||||||
@ -860,9 +860,8 @@ network_phase(unit)
|
|||||||
notice("peer from calling number %q authorized", remote_number);
|
notice("peer from calling number %q authorized", remote_number);
|
||||||
#endif /* UNUSED */
|
#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 (0
|
||||||
#if CHAP_SUPPORT
|
#if CHAP_SUPPORT
|
||||||
@ -877,7 +876,6 @@ network_phase(unit)
|
|||||||
) {
|
) {
|
||||||
notify(auth_up_notifier, 0);
|
notify(auth_up_notifier, 0);
|
||||||
}
|
}
|
||||||
#endif /* UNUSED */
|
|
||||||
|
|
||||||
#if CBCP_SUPPORT
|
#if CBCP_SUPPORT
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user