]> git.ozlabs.org Git - ppp.git/commitdiff
pppol2tp.c add '#ifdef INET6' for optional ipv6
authorstr8fast <52187302+str8fast@users.noreply.github.com>
Thu, 28 Oct 2021 14:55:56 +0000 (14:55 +0000)
committerGitHub <noreply@github.com>
Thu, 28 Oct 2021 14:55:56 +0000 (14:55 +0000)
Without it, l2tp daemon can't launch ppp, cuz undefined symbol ipv6_up_notifier.

pppd/plugins/pppol2tp/pppol2tp.c

index ed2d7c7942a11db2ac6eb8152d0ad87507bf2886..c9902afed2f8e24f79cb3c688ad495b01d989876 100644 (file)
@@ -509,8 +509,10 @@ void plugin_init(void)
         */
        add_notifier(&ip_up_notifier, pppol2tp_ip_up, NULL);
        add_notifier(&ip_down_notifier, pppol2tp_ip_down, NULL);
+#ifdef INET6
        add_notifier(&ipv6_up_notifier, pppol2tp_ip_up, NULL);
        add_notifier(&ipv6_down_notifier, pppol2tp_ip_down, NULL);
+#endif
 }
 
 struct channel pppol2tp_channel = {