Page MenuHomeFreeBSD

ifconfig: simplify ifconfig() by factoring out ifa add/del logic
ClosedPublic

Authored by melifaro on May 20 2023, 11:23 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 24, 8:31 AM
Unknown Object (File)
Wed, Mar 11, 11:58 PM
Unknown Object (File)
Tue, Mar 10, 6:46 AM
Unknown Object (File)
Tue, Mar 10, 12:09 AM
Unknown Object (File)
Tue, Mar 3, 8:35 AM
Unknown Object (File)
Feb 12 2026, 4:04 AM
Unknown Object (File)
Feb 7 2026, 10:19 PM
Unknown Object (File)
Feb 7 2026, 10:09 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kp added inline comments.
sbin/ifconfig/ifconfig.c
977

Not blocking here, but we really need to reduce the number of global variables in ifconfig.

983

I think style(9) still requires that declaration to be at the top of a block.

This revision is now accepted and ready to land.May 20 2023, 3:39 PM
melifaro added inline comments.
sbin/ifconfig/ifconfig.c
977

I agree - that's why I started their merge under args. This diff has a specific scope of simplifying ifconfig() function and it doesn't change anything w.r.t the global variable handling.