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)
Wed, Sep 24, 1:00 AM
Unknown Object (File)
Sep 19 2025, 10:49 AM
Unknown Object (File)
Sep 18 2025, 6:34 PM
Unknown Object (File)
Sep 16 2025, 10:39 AM
Unknown Object (File)
Sep 8 2025, 8:38 AM
Unknown Object (File)
Jul 7 2025, 11:06 PM
Unknown Object (File)
Jul 6 2025, 5:32 PM
Unknown Object (File)
Jul 6 2025, 12:37 AM

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