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)
Fri, Sep 27, 12:08 PM
Unknown Object (File)
Wed, Sep 25, 9:10 PM
Unknown Object (File)
Wed, Sep 25, 12:28 AM
Unknown Object (File)
Sat, Sep 21, 12:41 PM
Unknown Object (File)
Thu, Sep 5, 5:22 AM
Unknown Object (File)
Tue, Sep 3, 7:09 PM
Unknown Object (File)
Sun, Sep 1, 3:33 PM
Unknown Object (File)
Aug 31 2024, 5:51 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.