Am Donnerstag 17 November 2005 04:29 schrieb jamal:

> > > 1) There are read_only oper state IFF_XXX flags which are sent via
> > > netlink to user space. These are set by the kernel (and not by user
> > > space); they reflect the state of "link".

We can avoid a myriad of new IFF_*-flags if we allow a device driver to 
specify a function for mapping its internal state to RFC2863, like Thomas 
did. The result of that function will then be used as input for the link-oper 
mode policy.

> I think IFF_RUNNING hasnt changed meaning in that it reflects the
> operational DOWN/UP state. We may have to export two new IFF_XXX
> operational flags to user space {IFF_DORMANT and IFF_LLD} like i was
> suggesting earlier; i cant see any other way to escape exporting those
> two if we are to maintain backward compat for IFF_RUNNING.

It's debatable what backward compatibily for IFF_RUNNING means. From the view 
of a userspace application like zebra or dhcpcd, IFF_RUNNING should be set 
when the interface is actually usable - and that is after the 802.1X 
supplicant f.e. has finished and has raised operstate to OPER_UP.

> I hope the above is clear - any patch will have to be a mix of the ones
> posted so far.

ok, I'll produce a patch then - first version will be available tomorrow 
evening.

> If we are in agreement, i can post what i think the states are; although
> if we are in agreement above i dont see the need to.

I think I have a quite clear idea, but I don't want to keep you from 
posting ;-)

Stefan
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to