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)
Differential Revision: https://reviews.freebsd.org/D28990

(cherry picked from commit 8b22242550c98d0a59b6589f2be0beb1dc2eac13)

Details

Provenance
freqlabsAuthored on Feb 28 2021, 10:30 AM
Reviewer
kp
Differential Revision
D28990: sbin/ifconfig: Use a global handle for libifconfig
Parents
rG13c808e49c3b: tests/sys/netgraph/ng_macfilter_test: Fix invalid TAP output
Branches
Unknown
Tags
Unknown