From b5edacdfeec0ff65e9a365324992214f056f46d0 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Sun, 15 Jun 2008 06:56:12 +0000 Subject: [PATCH] Add multilink_join_hook, called when a links joins the bundle. Patch from James Chapman. --- pppd/auth.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pppd/auth.c b/pppd/auth.c index 424b3e5..22941af 100644 --- a/pppd/auth.c +++ b/pppd/auth.c @@ -68,7 +68,7 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define RCSID "$Id: auth.c,v 1.114 2008/06/15 06:53:06 paulus Exp $" +#define RCSID "$Id: auth.c,v 1.115 2008/06/15 06:56:12 paulus Exp $" #include #include @@ -190,6 +190,11 @@ int (*null_auth_hook) __P((struct wordlist **paddrs, int (*allowed_address_hook) __P((u_int32_t addr)) = NULL; +#ifdef HAVE_MULTILINK +/* Hook for plugin to hear when an interface joins a multilink bundle */ +void (*multilink_join_hook) __P((void)) = NULL; +#endif + /* A notifier for when the peer has authenticated itself, and we are proceeding to the network phase. */ struct notifier *auth_up_notifier = NULL; @@ -855,6 +860,8 @@ start_networks(unit) #ifdef HAVE_MULTILINK if (multilink) { if (mp_join_bundle()) { + if (multilink_join_hook) + (*multilink_join_hook)(); if (updetach && !nodetach) detach(); return; -- 2.39.2