Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Sep 1999 07:35:34 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        "Brian F. Feldman" <green@FreeBSD.org>
Cc:        Mike Smith <mike@smith.net.au>, Brian Somers <brian@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.sbin/ppp bundle.c id.c id.h 
Message-ID:  <199909220635.HAA01945@keep.lan.Awfulhak.org>
In-Reply-To: Your message of "Wed, 22 Sep 1999 00:03:46 EDT." <Pine.BSF.4.10.9909212357320.10399-100000@janus.syracuse.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
> On Tue, 21 Sep 1999, Mike Smith wrote:
> 
> > > Seriously, though, does anyone know if kldsym() is supposed to find
> > > static symbols?
> > 
> > If you're trying to do what I think you're trying to do, use the 
> > technique I used with ifconfig.  Unlike the rest of Bill's little 
> > babies, the tun device will show up as if_tun.
> 
> Now that I think about it, it would really be most proper to fix the
> linker to return EEXIST when you try to load a module with the same
> name as a preexisting one.  I think that the purpouse of the check
> was originally just to prevent if_tun from being loaded twice, not
> to see if it was loaded (that was the ENXIO.)

I changed the logic slightly.  ppp will only try to kldload() if it 
gets an ENXIO trying to open tun0 (and only tun0).  Failure to load 
is as fatal as it's always been.

Is there any way that ENXIO would be returned if the driver was 
actually in the kernel either statically or as a kld ?  I'd hope not 
:-I

> -- 
>  Brian Fundakowski Feldman           \  FreeBSD: The Power to Serve!  /
>  green@FreeBSD.org                    `------------------------------'

-- 
Brian <brian@Awfulhak.org>                        <brian@FreeBSD.org>
      <http://www.Awfulhak.org>;                   <brian@OpenBSD.org>
Don't _EVER_ lose your sense of humour !          <brian@FreeBSD.org.uk>




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909220635.HAA01945>