aboutsummaryrefslogtreecommitdiffstats
path: root/package/ppp/patches/400-simplify_kernel_checks.patch
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-06-19 17:03:24 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-06-19 17:03:24 +0000
commit6387e8e4581312c11d00c07821fb5d0ce35a862e (patch)
treea793cc6fe8062d296696ecad4ae9511b741667e4 /package/ppp/patches/400-simplify_kernel_checks.patch
parentf4afa00862b7db8a2da8c012843a286716c0a534 (diff)
downloadupstream-6387e8e4581312c11d00c07821fb5d0ce35a862e.tar.gz
upstream-6387e8e4581312c11d00c07821fb5d0ce35a862e.tar.bz2
upstream-6387e8e4581312c11d00c07821fb5d0ce35a862e.zip
ppp: annotate most patches with description and S-o-b
SVN-Revision: 32463
Diffstat (limited to 'package/ppp/patches/400-simplify_kernel_checks.patch')
-rw-r--r--package/ppp/patches/400-simplify_kernel_checks.patch20
1 files changed, 15 insertions, 5 deletions
diff --git a/package/ppp/patches/400-simplify_kernel_checks.patch b/package/ppp/patches/400-simplify_kernel_checks.patch
index 6ddf86a1ba..ec82576cbc 100644
--- a/package/ppp/patches/400-simplify_kernel_checks.patch
+++ b/package/ppp/patches/400-simplify_kernel_checks.patch
@@ -1,3 +1,13 @@
+pppd: Remove runtime kernel checks
+
+On embedded system distributions the required kernel features for pppd are
+more or less guaranteed to be present, so there is not much point in
+performing runtime checks, it just increases the binary size.
+
+This patch removes the runtime kernel feature checks.
+
+Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
+
--- a/pppd/sys-linux.c
+++ b/pppd/sys-linux.c
@@ -203,7 +203,7 @@ static int driver_is_old = 0;
@@ -88,11 +98,11 @@
return 0;
--- a/pppd/plugins/pppoatm/pppoatm.c
+++ b/pppd/plugins/pppoatm/pppoatm.c
-@@ -171,14 +171,6 @@ static void disconnect_pppoatm(void)
+@@ -170,14 +170,6 @@ static void disconnect_pppoatm(void)
void plugin_init(void)
{
--#ifdef linux
+-#if defined(__linux__)
- extern int new_style_driver; /* From sys-linux.c */
- if (!ppp_available() && !new_style_driver)
- fatal("Kernel doesn't support ppp_generic - "
@@ -126,9 +136,9 @@
add_options(Options);
info("RP-PPPoE plugin version %s compiled against pppd %s",
---- a/pppd/plugins/pppol2tp/pppol2tp.c 2010-11-15 12:12:43.000000000 +0000
-+++ b/pppd/plugins/pppol2tp/pppol2tp.c 2012-04-24 15:53:58.806260309 +0100
-@@ -488,12 +488,7 @@ static void pppol2tp_check_options(void)
+--- a/pppd/plugins/pppol2tp/pppol2tp.c
++++ b/pppd/plugins/pppol2tp/pppol2tp.c
+@@ -500,12 +500,7 @@ static void pppol2tp_cleanup(void)
void plugin_init(void)
{