if_flags usage etc.

Andre Oppermann andre at freebsd.org
Tue Jan 24 23:57:03 PST 2006


sthaug at nethelp.no wrote:
>>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).

We have that already since 5.3 I think.  You have various options for
receiving notifications on this event, routing socket, kqueue, netgraph
and devctl.

> - One feature sorely missed (which I use a lot in my daily work with
> hardware based routers) is the ability to associate a "description"
> field with each interface.  Note that this should be available both
> for physical interfaces (Ethernet etc.) and for logical interfaces
> (e.g. vlan).

Struct ifnet is the same for all kinds of interfaces, so any change
would make it available for everyone.  And yes, this looks like a useful
addition.

-- 
Andre


More information about the freebsd-current mailing list