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
F135927127: D23814.id68746.diff
Fri, Nov 14, 5:57 AM
F135859309: D23814.diff
Thu, Nov 13, 2:46 PM
Unknown Object (File)
Wed, Nov 5, 11:02 PM
Unknown Object (File)
Wed, Nov 5, 4:41 AM
Unknown Object (File)
Fri, Oct 24, 9:54 PM
Unknown Object (File)
Fri, Oct 24, 9:54 PM
Unknown Object (File)
Fri, Oct 24, 9:54 PM
Unknown Object (File)
Fri, Oct 24, 3:28 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
Lint Not Applicable
Unit
Tests Not Applicable