diff options
Diffstat (limited to 'usr.sbin/ppp/ether.c')
-rw-r--r-- | usr.sbin/ppp/ether.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ether.c b/usr.sbin/ppp/ether.c index ebcbcd3..7d80a69 100644 --- a/usr.sbin/ppp/ether.c +++ b/usr.sbin/ppp/ether.c @@ -413,8 +413,14 @@ ether_Create(struct physical *p) return NULL; } - if (modfind("ng_socket") == -1 && - ID0kldload("ng_socket") == -1) { + if (modfind("ng_ether") == -1 && ID0kldload("ng_ether") == -1) + /* + * Don't treat this as an error as older kernels have this stuff + * built in as part of the netgraph node itself. + */ + log_Printf(LogWARN, "kldload: ng_ether: %s\n", strerror(errno)); + + if (modfind("ng_socket") == -1 && ID0kldload("ng_socket") == -1) { log_Printf(LogWARN, "kldload: ng_socket: %s\n", strerror(errno)); return NULL; } |