Page MenuHomeFreeBSD

net: make ethernet.h self-contained
ClosedPublic

Authored by kp on Dec 16 2021, 9:30 AM.
Tags
None
Referenced Files
F157191990: D33501.id100129.diff
Tue, May 19, 4:44 AM
Unknown Object (File)
Mon, May 18, 8:58 AM
Unknown Object (File)
Sat, May 16, 11:16 AM
Unknown Object (File)
Wed, May 6, 12:17 AM
Unknown Object (File)
Mon, Apr 27, 7:46 PM
Unknown Object (File)
Mon, Apr 27, 1:15 PM
Unknown Object (File)
Sun, Apr 19, 5:18 PM
Unknown Object (File)
Apr 16 2026, 3:14 PM

Details

Summary

Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

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

Event Timeline

kp requested review of this revision.Dec 16 2021, 9:30 AM
This revision is now accepted and ready to land.Dec 16 2021, 9:33 AM

Could you by any chance add the rationale to the diff description?

Could you by any chance add the rationale to the diff description?

The point is to ensure that users (both in the kernel and in user space) can include this header without having to know they're supposed to include <sys/types.h> first.
There's a whole series of these, because we have a lot of headers where that doesn't work (and worse cases that just this), and it's often frustrating to go hunting for the required includes.

This revision was automatically updated to reflect the committed changes.