From: Martin Schiller Date: Thu, 7 Dec 2017 07:49:58 +0000 (+0100) Subject: pppoe-discovery: show real usage information X-Git-Tag: ppp-2.4.8~31^2~3 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=ac682de4ec32d4cc8859b31366023e28012e23e6 pppoe-discovery: show real usage information Signed-off-by: Martin Schiller --- diff --git a/pppd/plugins/rp-pppoe/pppoe-discovery.c b/pppd/plugins/rp-pppoe/pppoe-discovery.c index 55037df..3c19dfa 100644 --- a/pppd/plugins/rp-pppoe/pppoe-discovery.c +++ b/pppd/plugins/rp-pppoe/pppoe-discovery.c @@ -729,5 +729,14 @@ char *xstrdup(const char *s) void usage(void) { fprintf(stderr, "Usage: pppoe-discovery [options]\n"); + fprintf(stderr, "Options:\n"); + fprintf(stderr, " -I if_name -- Specify interface (default eth0)\n"); + fprintf(stderr, " -D filename -- Log debugging information in filename.\n"); + fprintf(stderr, + " -V -- Print version and exit.\n" + " -S name -- Set desired service name.\n" + " -C name -- Set desired access concentrator name.\n" + " -U -- Use Host-Unique to allow multiple PPPoE sessions.\n" + " -h -- Print usage information.\n"); fprintf(stderr, "\nVersion " RP_VERSION "\n"); }