Bug 24569

Summary: PATCH for PPPD
Product: Base System Reporter: cyberwin@mail.ru <Kovirshin.Alexey>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.1-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description cyberwin@mail.ru 2001-01-23 12:40:01 UTC

    I've modifyed pppd sources and added 3 new options:
    usepeerdns, update-resolv, hide-password
    usepeerdns
        Ask the peer for up to 2 DNS server addresses.  The
        addresses supplied by the peer (if any) are  passed
        to  the  /etc/ppp/ip-up  script  in the environment
        variables DNS1 and DNS2.

    update-resolv
        The /etc/resolv.conf will be updated with  the  DNS
        addresses  supplied by the peer (if any). But envi-
        ronment variables DNS1 and DNS2  are  still  avail-
        able.  This  option is work in conjunction with the
        usepeerdns option only.
    hide-password
        When logging the  contents  of  PAP  packets,  this
        option  causes  pppd to exclude the password string
        from the log.

    Options usepeerdns and hide-password i've taken from pppd-2.3.9,
    but usepeerdns doesn't update resolve.conf automatically(like in 2.3.9)
    so DNS addresses are available from DNS1, DNS2, USEPEERDNS
    environment variables(usefull for /etc/ppp/ip-up(down) scripts).
    Option update-resolv update resolv.conf automatically, but DNS1, DNS2,
    USEPEERDNS environment variables are still available.

    I hope it will be usefull when pppd acts as client.

Fix: 've maked a patch which can be applied 
    to /usr/src/usr.sbin/pppd sources by this way:

    cd /usr/src/usr.sbin/pppd
    patch < pppd-DNSask.patch

Here is the pppd-DNSask.patch

-------------CUT HERE-------------
Comment 1 Maxim Konovalov freebsd_committer freebsd_triage 2002-02-28 09:19:53 UTC
State Changed
From-To: open->closed

Duplicated with misc/24513.