Page MenuHomeFreeBSD

Use thunks for compat ioctls using struct ifgroupreq.
ClosedPublic

Authored by jhb on Apr 21 2021, 5:36 PM.
Tags
None
Referenced Files
F102560205: D29893.diff
Thu, Nov 14, 2:00 AM
Unknown Object (File)
Sun, Oct 20, 5:39 PM
Unknown Object (File)
Oct 4 2024, 10:02 PM
Unknown Object (File)
Oct 4 2024, 3:56 PM
Unknown Object (File)
Oct 3 2024, 10:43 PM
Unknown Object (File)
Oct 1 2024, 7:50 PM
Unknown Object (File)
Oct 1 2024, 5:07 AM
Unknown Object (File)
Sep 30 2024, 7:13 PM

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39001
Build 35890: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Apr 21 2021, 5:36 PM
This revision is now accepted and ready to land.Apr 21 2021, 8:58 PM
sys/net/if.c
2853

Why the change in {} is needed?

sys/net/if.c
2853

For the local 'ifgr' variable.

sys/net/if.c
2853

Ok, why is this one-time used variable needed? I mean, you can add ->ifgr_group to the cast expression and for me it is easier to understand.

sys/net/if.c
2853

Ah, this was matching the original code before the addition of ifgr_group_get(). I can make it do it without a local variable though.

jhb marked 2 inline comments as done.May 4 2021, 6:23 PM
This revision now requires review to proceed.May 4 2021, 6:26 PM
kib added inline comments.
sys/net/if.c
2849

Since you change around these lines, you could also introduce your preferred way to write it

error = if_addgroup(ifp, ...);
if (error != 0)
     return (error);

I am fine either way.

2868

Same there.

This revision is now accepted and ready to land.May 4 2021, 8:45 PM
jhb marked 2 inline comments as done.May 5 2021, 9:03 PM
jhb added inline comments.
sys/net/if.c
2849

I almost did, so this prod is enough for me to fix it. Thanks.