]> git.ozlabs.org Git - ppp.git/commitdiff
pppd: Add dummy noipx option
authorPaul Mackerras <paulus@ozlabs.org>
Mon, 4 Jul 2022 07:37:31 +0000 (17:37 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Mon, 4 Jul 2022 07:54:20 +0000 (17:54 +1000)
Add "noipx" as an option that does nothing to avoid breaking
installations that have "noipx" in /etc/ppp/defaults or wherever.
(The IPX-related options were removed by commit c2881a6b71a3 ("pppd:
Drop linux IPX support (#326)", 2022-01-13)).

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
pppd/options.c

index c9592837473b9becd62bf8fa5c998e2c73d21a52..d4906c9506239101c4556a3239817aab0d7a2006 100644 (file)
@@ -161,6 +161,8 @@ bool devnam_fixed;          /* can no longer change device name */
 static int logfile_fd = -1;    /* fd opened for log file */
 static char logfile_name[MAXPATHLEN];  /* name of log file */
 
+static bool noipx_opt;         /* dummy for noipx option */
+
 /*
  * Prototypes
  */
@@ -382,6 +384,9 @@ option_t general_options[] = {
       "Check for traffic limit every N seconds", OPT_PRIO | OPT_LLIMIT | 1 },
 #endif
 
+    /* Dummy option, does nothing */
+    { "noipx", o_bool, &noipx_opt, NULL, OPT_NOPRINT | 1 },
+
     { NULL }
 };