Page MenuHomeFreeBSD

sbin/ifconfig: Use a global handle for libifconfig
ClosedPublic

Authored by freqlabs on Feb 28 2021, 8:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 18 2024, 9:05 AM
Unknown Object (File)
Oct 18 2024, 9:05 AM
Unknown Object (File)
Oct 18 2024, 9:05 AM
Unknown Object (File)
Oct 18 2024, 8:36 AM
Unknown Object (File)
Sep 27 2024, 6:57 PM
Unknown Object (File)
Sep 27 2024, 4:17 PM
Unknown Object (File)
Sep 25 2024, 7:31 AM
Unknown Object (File)
Sep 25 2024, 12:24 AM
Subscribers
None

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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

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

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