summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-05-11 17:26:46 -0700
committerKhem Raj <raj.khem@gmail.com>2023-05-21 18:11:01 -0700
commitec749b810078e2f6804edc5d28d7abc581af8f26 (patch)
tree0fd625f4948dcd5efa73c7efe8c00db42e13bfe7 /meta-networking/recipes-daemons
parent7552a268876e2b8905dc6e799970b5390f3c8146 (diff)
downloadmeta-openembedded-ec749b810078e2f6804edc5d28d7abc581af8f26.tar.gz
ippool: Port to using ppp 2.5.x
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-daemons')
-rw-r--r--meta-networking/recipes-daemons/ippool/ippool/0001-ippool-Port-to-ppp-2.5-APIs.patch60
-rw-r--r--meta-networking/recipes-daemons/ippool/ippool_1.3.bb1
2 files changed, 61 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/ippool/ippool/0001-ippool-Port-to-ppp-2.5-APIs.patch b/meta-networking/recipes-daemons/ippool/ippool/0001-ippool-Port-to-ppp-2.5-APIs.patch
new file mode 100644
index 0000000000..59d7b1e847
--- /dev/null
+++ b/meta-networking/recipes-daemons/ippool/ippool/0001-ippool-Port-to-ppp-2.5-APIs.patch
@@ -0,0 +1,60 @@
1From e1b93db6a13d955c6bab6358a7fa27fecb59479f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 11 May 2023 17:24:46 -0700
4Subject: [PATCH] ippool: Port to ppp 2.5 APIs
5
6Upstream-Status: Pending
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9 pppd/ippool.c | 10 +++++-----
10 1 file changed, 5 insertions(+), 5 deletions(-)
11
12diff --git a/pppd/ippool.c b/pppd/ippool.c
13index 88cb901..d4b5c97 100644
14--- a/pppd/ippool.c
15+++ b/pppd/ippool.c
16@@ -6,7 +6,7 @@
17 #include <stdlib.h>
18 #include <errno.h>
19 #include "pppd.h"
20-#include "pathnames.h"
21+#include "options.h"
22 #include "fsm.h" /* Needed for lcp.h to include cleanly */
23 #include "lcp.h"
24 #include "ccp.h"
25@@ -23,7 +23,7 @@
26
27 #include "ippool_rpc.h"
28
29-const char pppd_version[] = VERSION;
30+const char pppd_version[] = PPPD_VERSION;
31
32 static char *ippool_pool_name = NULL;
33 static char *ippool_pool_name2 = NULL;
34@@ -205,13 +205,13 @@ void plugin_init(void)
35 {
36 #if defined(__linux__)
37 extern int new_style_driver; /* From sys-linux.c */
38- if (!ppp_available() && !new_style_driver)
39+ if (!ppp_check_kernel_support() && !new_style_driver)
40 fatal("Kernel doesn't support ppp_generic - "
41 "needed for Ippool");
42 #else
43 fatal("No IP pool support on this OS");
44 #endif
45- add_options(ippool_options);
46+ ppp_add_options(ippool_options);
47
48 memset(&ippool_addr, 0, sizeof(ippool_addr));
49
50@@ -219,6 +219,6 @@ void plugin_init(void)
51 ip_down_hook = ippool_release_ip;
52
53 /* brute force, just in case ip_down_hook doesn't get called */
54- add_notifier(&exitnotify, ippool_cleanup, 0);
55+ ppp_add_notify(NF_EXIT, ippool_cleanup, 0);
56 }
57
58--
592.40.1
60
diff --git a/meta-networking/recipes-daemons/ippool/ippool_1.3.bb b/meta-networking/recipes-daemons/ippool/ippool_1.3.bb
index 26b03814d6..f592912f9b 100644
--- a/meta-networking/recipes-daemons/ippool/ippool_1.3.bb
+++ b/meta-networking/recipes-daemons/ippool/ippool_1.3.bb
@@ -30,6 +30,7 @@ SRC_URI = "https://sourceforge.net/projects/openl2tp/files/${BPN}/${PV}/${BPN}-$
30 file://0001-pppd-ippool.c-Fix-type-casting-issues-between-in_add.patch \ 30 file://0001-pppd-ippool.c-Fix-type-casting-issues-between-in_add.patch \
31 file://0002-ippool_rpc_server.c-Add-missing-prototype-for-ippool.patch \ 31 file://0002-ippool_rpc_server.c-Add-missing-prototype-for-ippool.patch \
32 file://0001-Use-unsigned-int-type-for-1-bit-integer-bitfield.patch \ 32 file://0001-Use-unsigned-int-type-for-1-bit-integer-bitfield.patch \
33 file://0001-ippool-Port-to-ppp-2.5-APIs.patch \
33 " 34 "
34 35
35LIC_FILES_CHKSUM = "file://LICENSE;md5=4c59283b82fc2b166455e0fc23c71c6f" 36LIC_FILES_CHKSUM = "file://LICENSE;md5=4c59283b82fc2b166455e0fc23c71c6f"