Page MenuHomeFreeBSD

sbin/ifconfig: Use a global handle for libifconfig
ClosedPublic

Authored by freqlabs on Feb 28 2021, 8:56 PM.

Details

Summary

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

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

freqlabs created this revision.
kp added inline comments.
sbin/ifconfig/ifconfig.c
433

It doesn't make any functional difference, but we should probably do ifconfig_close(lifh); at the end of main().

This revision is now accepted and ready to land.Mar 1 2021, 7:24 AM