HomeFreeBSD

Avoid double appearing of cloned interfaces in the output

Description

Avoid double appearing of cloned interfaces in the output
from list_net_interfaces() when network_interfaces=auto.

Rationale: Since the auto case is special, the lesser evil
had to be chosen among not adding cloned interfaces to
_tmplist or removing duplicates from _tmplist after adding
cloned interfaces. Since list_net_interfaces() must not use
/usr/bin tools, the former "evil" appeared clearer and much
more efficient. (See the PR audit trail for discussion.)

PR: conf/63700
Reviewed by: brooks
MFC after: 5 days

Details

Provenance
Yaroslav Tykhiy <ytykhiy@gmail.com>Authored on Aug 28 2004, 7:58 AM
Parents
rGcb7f04cf3976: Make -C and -T work correctly together.
Branches
Unknown
Tags
Unknown

Event Timeline