HomeFreeBSD

sbin/ifconfig: Use a global libifconfig handle

Description

sbin/ifconfig: Use a global libifconfig handle

This should eventually replace the socket passed to the various
handlers. In the meantime, making it global avoids repeatedly opening
and closing handles.

Reported by: kp
Reviewed by: kp (earlier version)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D28990

Details

Provenance
freqlabsAuthored on Feb 28 2021, 10:30 AM
Reviewer
kp
Differential Revision
D28990: sbin/ifconfig: Use a global handle for libifconfig
Parents
rG21802a127d83: ixl(4): Add ability to control link state on ifconfig down
Branches
Unknown
Tags
Unknown