X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fplugins%2Fpppoe%2Fplugin.c;fp=pppd%2Fplugins%2Fpppoe%2Fplugin.c;h=d7c5be1d9ee6f77f00968bd45d76b21e4ef2ac38;hp=de9b8166ce7bb1e982aaaacdf5f1049c3d225471;hb=a352af45cf46af5de0c2b2377f0ca8e33776ad6c;hpb=4fb319056f168bb8379865b91b4fd3e1ada73f1e diff --git a/pppd/plugins/pppoe/plugin.c b/pppd/plugins/pppoe/plugin.c index de9b816..d7c5be1 100644 --- a/pppd/plugins/pppoe/plugin.c +++ b/pppd/plugins/pppoe/plugin.c @@ -64,7 +64,7 @@ extern int new_style_driver; char *pppd_pppoe_service = NULL; static char *acName = NULL; static char *existingSession = NULL; -static int printACNames = 0; +int pppoe_verbose = 0; static char *pppoe_reqd_mac = NULL; unsigned char pppoe_reqd_mac_addr[6]; static char *pppoe_host_uniq; @@ -89,9 +89,9 @@ static option_t Options[] = { "Attach to existing session (sessid:macaddr)" }, { "rp_pppoe_sess", o_string, &existingSession, "Legacy alias for pppoe-sess", OPT_ALIAS }, - { "pppoe-verbose", o_int, &printACNames, + { "pppoe-verbose", o_int, &pppoe_verbose, "Be verbose about discovered access concentrators" }, - { "rp_pppoe_verbose", o_int, &printACNames, + { "rp_pppoe_verbose", o_int, &pppoe_verbose, "Legacy alias for pppoe-verbose", OPT_ALIAS }, { "pppoe-mac", o_string, &pppoe_reqd_mac, "Only connect to specified MAC address" }, @@ -128,7 +128,6 @@ PPPOEInitDevice(void) conn->ifName = devnam; conn->discoverySocket = -1; conn->sessionSocket = -1; - conn->printACNames = printACNames; conn->discoveryTimeout = pppoe_padi_timeout; conn->discoveryAttempts = pppoe_padi_attempts; return 1;