summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEivind Næss <eivnaes@yahoo.com>2023-03-17 15:52:33 -0700
committerGitHub <noreply@github.com>2023-03-18 09:52:33 +1100
commit3ffe2ef6a8f0ccf68c1656347595e1df81c5bb20 (patch)
tree928b709b1e9af61443277217ce302b345b9376d9
parente8a7e4084f3b5477eb0a73df6020a4bb14c1b200 (diff)
downloadppp-3ffe2ef6a8f0ccf68c1656347595e1df81c5bb20.tar.gz
Fix compilation without ipv6cp support (#408)
You can't reference variables that aren't included in the compile. Add #ifdef PPP_WITH_IPV6CP in the get_notifier_by_type function. Signed-off-by: Eivind Næss <eivnaes@yahoo.com>
-rw-r--r--pppd/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pppd/main.c b/pppd/main.c
index 932855e..4455199 100644
--- a/pppd/main.c
+++ b/pppd/main.c
@@ -2038,8 +2038,10 @@ struct notifier **get_notifier_by_type(ppp_notify_t type)
[NF_SIGNALED ] = &sigreceived,
[NF_IP_UP ] = &ip_up_notifier,
[NF_IP_DOWN ] = &ip_down_notifier,
+#ifdef PPP_WITH_IPV6CP
[NF_IPV6_UP ] = &ipv6_up_notifier,
[NF_IPV6_DOWN ] = &ipv6_down_notifier,
+#endif
[NF_AUTH_UP ] = &auth_up_notifier,
[NF_LINK_DOWN ] = &link_down_notifier,
[NF_FORK ] = &fork_notifier,