Hi, Nathan.

On 7 May 2014 13:24, Nathan Hintz <nlhi...@hotmail.com> wrote:
>
> Signed-off-by: Nathan Hintz <nlhi...@hotmail.com>
> ---
>  Re-send of the following: http://patchwork.openwrt.org/patch/3246/
>
>  .../ppp/patches/502-fix-ms-dns-and-ms-wins-print.patch  | 17 
> +++++++++++++++++
>  1 file changed, 17 insertions(+)
>  create mode 100644 
> package/network/services/ppp/patches/502-fix-ms-dns-and-ms-wins-print.patch
>
> diff --git 
> a/package/network/services/ppp/patches/502-fix-ms-dns-and-ms-wins-print.patch 
> b/package/network/services/ppp/patches/502-fix-ms-dns-and-ms-wins-print.patch
> new file mode 100644
> index 0000000..4a694e0
> --- /dev/null
> +++ 
> b/package/network/services/ppp/patches/502-fix-ms-dns-and-ms-wins-print.patch
> @@ -0,0 +1,17 @@
> +--- 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 },

Maybe I missed something, after checking with the code I don't think
this will help solve the option printing problem.  How about adding
flag OPT_A2PRINTER and setting addr2 to a printer function for it?

Regards.

                yousong

> +
> +     { "ipcp-restart", o_int, &ipcp_fsm[0].timeouttime,
> +       "Set timeout for IPCP", OPT_PRIO },
> --
> 1.9.0
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to