From: Nathan Hintz Date: Sat, 4 Apr 2015 19:26:05 +0000 (-0700) Subject: ppp: fix printing of DNS/WINS addresses X-Git-Tag: ppp-2.4.8~30^2~2 X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=9957c9619889379e2db1c975d665de82873f0ae8 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 --- 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 },