Page MenuHomeFreeBSD

netgraph.h: Wrong path in the man page
ClosedPublic

Authored by donner on Feb 24 2020, 11:09 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 4:04 AM
Unknown Object (File)
Mon, Nov 25, 4:02 AM
Unknown Object (File)
Mon, Nov 25, 4:01 AM
Unknown Object (File)
Nov 20 2024, 5:26 AM
Unknown Object (File)
Nov 7 2024, 6:06 AM
Unknown Object (File)
Sep 24 2024, 8:52 PM
Unknown Object (File)
Sep 24 2024, 8:52 PM
Unknown Object (File)
Sep 24 2024, 8:52 PM

Details

Summary

netgraph(3) points to #include <netgraph/netgraph.h>, which is kernel only.
The man page refers to the user-space part of the netgraph module, which is located in <netgraph.h>.

Test Plan
#include <netgraph/netgraph.h>

compile as use space program will produce the error message

/usr/include/netgraph/netgraph.h:48:2: error: "This file should not be included in user level programs"

Change it to

#include <netgraph.h>

and it compiles fine.

Diff Detail

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