Page MenuHomeFreeBSD

ifconfig: add if_ctx argument to the generic and ifclone callbacks.
ClosedPublic

Authored by melifaro on Jun 5 2023, 8:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 22, 7:45 PM
Unknown Object (File)
Fri, Jun 21, 8:25 PM
Unknown Object (File)
Sun, Jun 16, 10:03 AM
Unknown Object (File)
Thu, Jun 6, 5:50 AM
Unknown Object (File)
Mar 18 2024, 11:43 PM
Unknown Object (File)
Mar 12 2024, 7:15 PM
Unknown Object (File)
Jan 27 2024, 12:08 PM
Unknown Object (File)
Jan 14 2024, 8:52 AM
Subscribers

Details

Summary

This is the continuation of the ifconfig cleanup work. This change is a pre-requsite for the next changes removing some of the global variables. It will also help in implementing functionality via Netlink instead of ioctl.

No functional changes intended.

  • vxlan_cb() was removed as it contained no code
  • ioctl_ifcreate() was renamed to ifcreate_ioctl() to follow the other netlink/ioctl function naming. Netlink and ioctl provide _different_ interfaces and it's not possible to have a unified interface object that can be filled by either netlink or ioctl implementations. With that in mind, I'm leaning more to the function_<nl|ioctl> postfix pattern, than doing ioctl_ or netlink_ prefix.

Diff Detail

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