--- a/pppd/sys-linux.c
+++ b/pppd/sys-linux.c
-@@ -192,7 +192,7 @@ static int driver_is_old = 0;
+@@ -199,7 +199,7 @@ static int driver_is_old = 0;
static int restore_term = 0; /* 1 => we've munged the terminal */
static struct termios inittermios; /* Initial TTY termios */
static char loop_name[20];
static unsigned char inbuf[512]; /* buffer for chars read from loopback */
-@@ -210,8 +210,8 @@ static int looped; /* 1 if using loop
+@@ -217,8 +217,8 @@ static int looped; /* 1 if using loop
static int link_mtu; /* mtu for the link (not bundle) */
static struct utsname utsname; /* for the kernel version */
#define MAX_IFS 100
-@@ -1439,11 +1439,12 @@ int ccp_fatal_error (int unit)
+@@ -1446,11 +1446,12 @@ int ccp_fatal_error (int unit)
*
* path_to_procfs - find the path to the proc file system mount point
*/
struct mntent *mntent;
FILE *fp;
-@@ -1465,6 +1466,7 @@ static char *path_to_procfs(const char *
+@@ -1472,6 +1473,7 @@ static char *path_to_procfs(const char *
fclose (fp);
}
}
strlcpy(proc_path + proc_path_len, tail,
sizeof(proc_path) - proc_path_len);
-@@ -2126,15 +2128,19 @@ int ppp_available(void)
+@@ -2133,15 +2135,19 @@ int ppp_available(void)
int my_version, my_modification, my_patch;
int osmaj, osmin, ospatch;
/* XXX should get from driver */
driver_version = 2;
-@@ -2194,6 +2200,7 @@ int ppp_available(void)
+@@ -2201,6 +2207,7 @@ int ppp_available(void)
if (ok && ((ifr.ifr_hwaddr.sa_family & ~0xFF) != ARPHRD_PPP))
ok = 0;
/*
* This is the PPP device. Validate the version of the driver at this
-@@ -2730,6 +2737,7 @@ get_pty(master_fdp, slave_fdp, slave_nam
+@@ -2737,6 +2744,7 @@ get_pty(master_fdp, slave_fdp, slave_nam
}
#endif /* TIOCGPTN */
if (sfd < 0) {
/* the old way - scan through the pty name space */
for (i = 0; i < 64; ++i) {
-@@ -2748,6 +2756,7 @@ get_pty(master_fdp, slave_fdp, slave_nam
+@@ -2755,6 +2763,7 @@ get_pty(master_fdp, slave_fdp, slave_nam
}
}
}
char *pppd_pppoe_service = NULL;
static char *acName = NULL;
static char *existingSession = NULL;
-@@ -385,10 +382,6 @@ PPPoEDevnameHook(char *cmd, char **argv,
+@@ -392,10 +389,6 @@ PPPoEDevnameHook(char *cmd, char **argv,
void
plugin_init(void)
{