Page MenuHomeFreeBSD

ifnet/API: Move struct ifnet definition to a <net/if_private.h>
AbandonedPublic

Authored by jhibbits on Jan 13 2023, 9:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 15, 4:23 PM
Unknown Object (File)
Tue, Dec 10, 6:09 PM
Unknown Object (File)
Nov 9 2024, 4:31 AM
Unknown Object (File)
Oct 18 2024, 2:18 AM
Unknown Object (File)
Oct 11 2024, 7:11 AM
Unknown Object (File)
Oct 1 2024, 2:14 AM
Unknown Object (File)
Sep 30 2024, 3:48 PM
Unknown Object (File)
Sep 24 2024, 7:28 AM
Subscribers

Details

Summary

Hide the ifnet structure definition, no user serviceable parts inside,
it's a netstack implementation detail. Include it temporarily in
<net/if_var.h> until all drivers are updated to use the accessors
exclusively.

Sponsored by: Juniper Networks, Inc.

Diff Detail

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

Event Timeline

sys/net/if_private.h
37

You probably want to wrap it into _KERNEL, otherwise buildworld headercheck will be unhappy

sys/net/if_private.h
37

Good point, will have it in my next update, with any other feedback I get.

glebius added inline comments.
sys/net/route/route_rtentry.c
51

This doesn't seem related. If it truly is, why not just remove the line?

sys/net/route/route_rtentry.c
51

You're right, this include should be removed. The header isn't needed, and this header is the only reason if_private.h would be needed in this file.

This comment was removed by jhibbits.
This revision is now accepted and ready to land.Jan 23 2023, 6:44 PM
This revision now requires review to proceed.Jan 23 2023, 6:44 PM

Have to close it somehow.