HomeFreeBSD

netlink: Don't directly access ifnet members

Description

netlink: Don't directly access ifnet members

Summary:
Remove the final direct access of struct ifnet members from netlink.
Since only the first address is used, create the iterator and then free,
without fully iterating.

Reviewed By: kp
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D42972

(cherry picked from commit b224af946a17b8e7a7b4942157556b5bc86dd6fb)

Details

Provenance
jhibbitsAuthored on Oct 31 2024, 3:09 PM
zleiCommitted on Fri, Dec 26, 8:25 AM
Reviewer
kp
Differential Revision
D42972: netlink: Don't directly access ifnet members
Parents
rGbcd1e5fb540f: mac_ipacl: Use IfAPI
Branches
Unknown
Tags
Unknown