It's possible to kldload netgraph (as well as the other ng_* bits),

so do it if required.
This commit is contained in:
Brian Somers 2001-04-05 22:53:35 +00:00
parent f8a584ac49
commit 6ccdc30b6d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75252

View File

@ -423,8 +423,8 @@ ether_Create(struct physical *p)
p->fd--; /* We own the device - change fd */
#if defined(__FreeBSD__) && !defined(NOKLDLOAD)
if (modfind("netgraph") == -1) {
log_Printf(LogWARN, "Netgraph is not built into the kernel\n");
if (modfind("netgraph") == -1 && ID0kldload("netgraph") == -1) {
log_Printf(LogWARN, "kldload: netgraph: %s\n", strerror(errno));
return NULL;
}