From 5580a43ba47c96ff41046226a9409c31b5efc8d2 Mon Sep 17 00:00:00 2001 From: Michal Ostrowski Date: Tue, 12 Feb 2002 04:36:00 +0000 Subject: [PATCH] Enable more verbose PPPoE plugin output --- pppd/plugins/rp-pppoe/plugin.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pppd/plugins/rp-pppoe/plugin.c b/pppd/plugins/rp-pppoe/plugin.c index ceef051..afb6b09 100644 --- a/pppd/plugins/rp-pppoe/plugin.c +++ b/pppd/plugins/rp-pppoe/plugin.c @@ -22,7 +22,7 @@ ***********************************************************************/ static char const RCSID[] = -"$Id: plugin.c,v 1.2 2002/01/22 16:03:05 dfs Exp $"; +"$Id: plugin.c,v 1.3 2002/02/12 04:36:00 mostrows Exp $"; #define _GNU_SOURCE 1 #include "pppoe.h" @@ -62,6 +62,7 @@ extern int new_style_driver; static char *service = NULL; static char *acName = NULL; static char *existingSession = NULL; +static int printACNames = 0; static int PPPoEDevnameHook(const char *name); static option_t Options[] = { @@ -75,6 +76,8 @@ static option_t Options[] = { "Desired PPPoE access concentrator name" }, { "rp_pppoe_sess", o_string, &existingSession, "Attach to existing session (sessid:macaddr)" }, + { "rp_pppoe_verbose", o_int, &printACNames, + "Be verbose about discovered access concentrators"}, { NULL } }; int (*OldDevnameHook)(const char *name) = NULL; @@ -107,6 +110,7 @@ PPPOEInitDevice(void) conn->discoverySocket = -1; conn->sessionSocket = -1; conn->useHostUniq = 1; + conn->printACNames = printACNames; return 1; } -- 2.39.2