> On Jun 24, 2019, at 12:15 AM, Manuel Bouyer <bou...@antioche.eu.org> wrote:
> 
> I'd like to see this in NetBSD. I'd also like packet filters to be able
> to use the description instead of the name for interfaces. This would make
> my life much easier for e.g. ipfilter in Xen dom0, where the domU's virtual
> interfaces have unpredicatble names.

I agree, we should be able to use the description as a means of looking up the 
interface.  However, because descriptions can be arbitrary, you need to have 
some rules around them:

1- Duplicate descriptions are not allowed (should return EEXIST if an attempt 
is made to set a duplicate).

2- In order to prevent unpredictable behavior in the presence of name-"wm0" and 
description-"wm0" being associated with different interfaces, the hardware name 
should always take priority when looking up an interface.

-- thorpej

Reply via email to