HomeFreeBSD

ifconfig: split argument parsing and actual execution logic

Description

ifconfig: split argument parsing and actual execution logic

Reduce the amount of global variables by creating the dedicated
ifconfig_args structure and use it as a context-passing variable.
Simplify the code by moving all argument preparation code a
separate function.

Reviewed by: kp (previous version)
Differential Revision: https://reviews.freebsd.org/D39932
MFC after: 2 weeks

Details

Provenance
melifaroAuthored on May 10 2023, 9:58 AM
Reviewer
kp
Differential Revision
D39932: ifconfig: split argument parsing and actual execution.
Parents
rG3c851dc19bbd: netlink: provide original interface lladdr in the interface dump.
Branches
Unknown
Tags
Unknown