Subject: bin/30299: isdnd: better way to handle non-flat rate, please
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Thomas Klausner <wiz@NetBSD.org>
List: netbsd-bugs
Date: 05/21/2005 17:47:00
>Number:         30299
>Category:       bin
>Synopsis:       isdnd: better way to handle non-flat rate, please
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat May 21 17:47:00 +0000 2005
>Originator:     Thomas Klausner
>Release:        NetBSD 2.0
>Organization:

>Environment:
	
	
Architecture: i386
Machine: i386
>Description:
On a non-flat rate connected machine, I want to specify explicitly
when connections are made.

isdnd has two ways of working right now:
with and without link1 set on ippp0.

When link1 is set, isdnd does not automatically open a connection
when it's started; however, any network connectivity does, e.g.
starting the Xserver usually opens one (because of the name lookup).
[Yes, I could set up a caching nameserver, but that's not the point
here.]

When link1 is not set, isdnd _always_ makes a call when it starts up.

I'd like a middle ground, where isdnd only makes a call when someone
specifies the ippp0 interface as "up".
>How-To-Repeat:
See above.
>Fix:
Workaround:
isdnd=NO in /etc/rc.conf
link1 not set in ippp0 flags.

Open network connection:
        /etc/rc.d/isdnd forcestart                                                                                                    

Close network connection:
        ifconfig ippp0 down                                                                                                           
        /etc/rc.d/isdnd forcestop                                                                                                     

The ifconfig down is not necessary, but see bin/30298 why it's useful.

>Unformatted: