It's possible to kldload netgraph (as well as the other ng_* bits),
so do it if required.
This commit is contained in:
parent
f8a584ac49
commit
6ccdc30b6d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75252
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user