You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
freshtomato-arm/release/src-rt-6.x.4708/router/patches/rp-pppoe/110-simplify_kernel_checks....

35 lines
918 B
Diff

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 <jo@mein.io>
--- rp-pppoe/src/plugin.c
+++ rp-pppoe/src/plugin.c
@@ -83,9 +83,6 @@
static int seen_devnam[2] = {0, 0};
static char *pppoe_reqd_mac = NULL;
-/* From sys-linux.c in pppd -- MUST FIX THIS! */
-extern int new_style_driver;
-
/* Supplied by pppd */
extern int debug;
@@ -508,11 +505,6 @@
void
plugin_init(void)
{
-#ifndef PPPD_2_5
- if (!ppp_available() && !new_style_driver) {
- fatal("Linux kernel does not support PPPoE -- are you running 2.4.x?");
- }
-#endif
add_options(Options);
info("RP-PPPoE plugin version %s compiled against pppd %s",