if_flags usage etc.

Brooks Davis brooks at one-eyed-alien.net
Wed Jan 25 16:31:28 PST 2006


On Wed, Jan 25, 2006 at 04:14:52PM -0800, Sam Leffler wrote:
> Robert Watson wrote:
> >
> >On Tue, 24 Jan 2006, John-Mark Gurney wrote:
> >
> >>sthaug at nethelp.no wrote this message on Tue, Jan 24, 2006 at 23:15 +0100:
> >>
> >>>>We should probably better document the interface "interface". if we are
> >>>>going to (as Sam suggests)
> >>>>do some cleanups we might as well consider what other changes should be
> >>>>put in at the same time.
> >>>
> >>>
> >>>A couple of other suggestions:
> >>>
> >>>- For software routers (quagga, zebra etc.) it would be very nice to
> >>>have "link up" / "link down" notifications to the routing process(es).
> >>
> >>
> >>already supported, either through kqueue, routing socket, or devd (I 
> >>believe)...
> >
> >
> >However, I believe some interface drivers don't generate these events. 
> >Drivers not supporting a specific event delivered by an interrupt 
> >probably need to learn to poll for state changes so that they can 
> >generate an event.
> 
> I am not aware of any drivers that do not generate the events; only 
> drivers that do not properly detect link status changes.

We do have some pseudo devices that could simulate a link and don't
appear to.  For instance tap could pretend to have media and produce
notifications based on whether the /dev/tap# device is open.  It seems
like that could be useful in some scenarios where you're hanging a
virtual machine off the other end.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20060125/b872e49d/attachment.bin


More information about the freebsd-current mailing list