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)
Feb 12 2024, 4:32 AM
Unknown Object (File)
Dec 23 2023, 12:02 PM
Unknown Object (File)
Dec 2 2023, 10:42 PM
Unknown Object (File)
Nov 3 2023, 7:03 PM
Unknown Object (File)
Oct 16 2023, 8:21 PM
Unknown Object (File)
Sep 2 2023, 9:10 PM
Unknown Object (File)
Sep 2 2023, 9:09 PM
Unknown Object (File)
Sep 2 2023, 9:07 PM
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 Skipped
Unit
Tests Skipped

Event Timeline

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

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