From owner-freebsd-isdn Sun May 9 3: 6:30 1999 Delivered-To: freebsd-isdn@freebsd.org Received: from uni4nn.gn.iaf.nl (osmium.gn.iaf.nl [193.67.144.12]) by hub.freebsd.org (Postfix) with ESMTP id 48CD2151CD for ; Sun, 9 May 1999 03:06:26 -0700 (PDT) (envelope-from wilko@yedi.iaf.nl) Received: from yedi.iaf.nl (uucp@localhost) by uni4nn.gn.iaf.nl (8.9.2/8.9.2) with UUCP id LAA20618; Sun, 9 May 1999 11:51:53 +0200 (MET DST) Received: (from wilko@localhost) by yedi.iaf.nl (8.9.3/8.9.3) id BAA01958; Sun, 9 May 1999 01:15:39 +0200 (CEST) (envelope-from wilko) From: Wilko Bulte Message-Id: <199905082315.BAA01958@yedi.iaf.nl> Subject: Re: I want isp0 *down* after a reboot.. In-Reply-To: <199905082147.XAA33893@peedub.muc.de> from Gary Jennejohn at "May 8, 1999 11:47:57 pm" To: garyj@muc.de Date: Sun, 9 May 1999 01:15:39 +0200 (CEST) Cc: freebsd-isdn@FreeBSD.ORG X-Organisation: Private FreeBSD site - Arnhem, The Netherlands X-pgp-info: PGP public key at 'finger wilko@freefall.freebsd.org' X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org As Gary Jennejohn wrote ... > Wilko Bulte writes: > >As Poul-Henning Kamp wrote ... > >> In message <199905081401.QAA33265@peedub.muc.de>, Gary Jennejohn writes: > OK, here's what happens AFAICT. > > when the interface gets ifconfig'd some routine in if_spppsubr.c ends up > (somehow :) calling sppp_open_event. You can see this in the log if you > set debugging on the interface. For example, from my log: > Apr 21 21:12:17 peedub /kernel.timo: isp1: lcp open(initial) > > sppp_open_event calls cp->tls, in this case that's sppp_lcp_tls. Now, > that's where the callout happens, because in sppp_lcp_tls we have > /* Notify lower layer if desired. */ > if (sp->pp_tls) > (sp->pp_tls)(sp); > else > (sp->pp_up)(sp); > > sp->pp_tls points at i4bisppp_tls, which calls i4b_l4_dialout. Voila ! > A callout happens. Simple ;-) > > It could be argued that this call should not be made. Or, that i4b_l4_dialout > should maybe test the interface status in sp to decide whether a dialout > should really happen. > > Obviously, if isdnd is started *after* the interfaces are ifconfig'd, no > callout is possible. > > So, do not start isdnd until all the interfaces have been ifconfig'd ! ;) using this approach the following: # ISDN subsystem startup if [ "X${isdn_enable}" = X"YES" -a -f /etc/rc.isdn ]; then . /etc/rc.isdn fi in /etc/rc.network needs to be moved to just before: # Initialize IP filtering using ipfw echo "" /sbin/ipfw -q flush > /dev/null 2>&1 if [ $? = 0 ] ; then Right? Groeten / Cheers, | / o / / _ Arnhem, The Netherlands - Powered by FreeBSD - |/|/ / / /( (_) Bulte WWW : http://www.tcja.nl http://www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message