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
F82866483: D40180.id122181.diff
Fri, May 3, 8:54 AM
F82866474: D40180.id.diff
Fri, May 3, 8:54 AM
F82861085: D40180.id122160.diff
Fri, May 3, 7:35 AM
F82854769: D40180.diff
Fri, May 3, 5:55 AM
Unknown Object (File)
Sat, Apr 27, 3:39 PM
Unknown Object (File)
Sat, Apr 27, 6:19 AM
Unknown Object (File)
Tue, Apr 23, 5:37 PM
Unknown Object (File)
Mar 21 2024, 9:19 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 51576
Build 48467: arc lint + arc unit

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.