From 72cf4afe3c7ef808bde3f5cea02cb631e2eb6fec Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Mon, 4 Jul 2022 17:37:31 +1000 Subject: [PATCH] pppd: Add dummy noipx option 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 --- pppd/options.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pppd/options.c b/pppd/options.c index c959283..d4906c9 100644 --- a/pppd/options.c +++ b/pppd/options.c @@ -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 } }; -- 2.39.2