From 9957c9619889379e2db1c975d665de82873f0ae8 Mon Sep 17 00:00:00 2001 From: Nathan Hintz Date: Sat, 4 Apr 2015 12:26:05 -0700 Subject: [PATCH] ppp: fix printing of DNS/WINS addresses Options "ms-dns" and "ms-wins" may be specified several times. This allows the second occurrence to be printed. Signed-off-by: Nathan Hintz --- pppd/ipcp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pppd/ipcp.c b/pppd/ipcp.c index e9738fe..1624450 100644 --- a/pppd/ipcp.c +++ b/pppd/ipcp.c @@ -175,10 +175,10 @@ static option_t ipcp_option_list[] = { { "noipdefault", o_bool, &disable_defaultip, "Don't use name for default IP adrs", 1 }, - { "ms-dns", 1, (void *)setdnsaddr, - "DNS address for the peer's use" }, - { "ms-wins", 1, (void *)setwinsaddr, - "Nameserver for SMB over TCP/IP for peer" }, + { "ms-dns", o_special, (void *)setdnsaddr, + "DNS address for the peer's use", OPT_A2LIST }, + { "ms-wins", o_special, (void *)setwinsaddr, + "Nameserver for SMB over TCP/IP for peer", OPT_A2LIST }, { "ipcp-restart", o_int, &ipcp_fsm[0].timeouttime, "Set timeout for IPCP", OPT_PRIO }, -- 2.39.2