summaryrefslogtreecommitdiff
path: root/net-dialup/ppp/files/ppp-2.4.9-pppol2tp-ipv6.patch
blob: 40773b2b0d54a7047a9e3033b582b0029cbd06b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
https://bugs.gentoo.org/904740
https://github.com/ppp-project/ppp/pull/319

From 44a70d6f9eb6d1843868da1d45de382134a03630 Mon Sep 17 00:00:00 2001
From: str8fast <52187302+str8fast@users.noreply.github.com>
Date: Thu, 28 Oct 2021 14:55:56 +0000
Subject: [PATCH] pppol2tp.c add '#ifdef INET6' for optional ipv6

Without it, l2tp daemon can't launch ppp, cuz undefined symbol ipv6_up_notifier.
---
 pppd/plugins/pppol2tp/pppol2tp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pppd/plugins/pppol2tp/pppol2tp.c b/pppd/plugins/pppol2tp/pppol2tp.c
index ed2d7c79..c9902afe 100644
--- a/pppd/plugins/pppol2tp/pppol2tp.c
+++ b/pppd/plugins/pppol2tp/pppol2tp.c
@@ -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 = {