]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sbin/ifconfig: Use a global libifconfig handle
authorRyan Moeller <freqlabs@FreeBSD.org>
Sun, 28 Feb 2021 10:30:09 +0000 (10:30 +0000)
committerRyan Moeller <freqlabs@FreeBSD.org>
Wed, 17 Mar 2021 22:24:49 +0000 (18:24 -0400)
commit3b71af08bb84a0b8f0b1f4066b399cc48bddbfee
tree6881f4e5a986588d12b58c83d57cef88e3dc92c7
parent13c808e49c3b340734433a3b029bab1cee810754
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)
sbin/ifconfig/carp.c
sbin/ifconfig/ifbridge.c
sbin/ifconfig/ifclone.c
sbin/ifconfig/ifconfig.c
sbin/ifconfig/ifconfig.h
sbin/ifconfig/ifgroup.c
sbin/ifconfig/iflagg.c
sbin/ifconfig/sfp.c