From: Paul Mackerras Date: Mon, 4 Jul 2022 07:37:31 +0000 (+1000) Subject: pppd: Add dummy noipx option X-Git-Tag: ppp-2.5.0~39 X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=72cf4afe3c7ef808bde3f5cea02cb631e2eb6fec;hp=b417b79ee6e420bfaace6b987e7856713999337d;p=ppp.git 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 --- 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 } };