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
F138017113: D40180.id122160.diff
Fri, Nov 28, 4:51 AM
Unknown Object (File)
Thu, Nov 20, 11:52 PM
Unknown Object (File)
Mon, Nov 10, 1:20 PM
Unknown Object (File)
Thu, Oct 30, 12:36 PM
Unknown Object (File)
Thu, Oct 30, 10:40 AM
Unknown Object (File)
Thu, Oct 30, 6:21 AM
Unknown Object (File)
Wed, Oct 29, 9:06 PM
Unknown Object (File)
Wed, Oct 29, 3:27 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.