diff options
author | brian <brian@FreeBSD.org> | 2000-06-28 09:30:30 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-06-28 09:30:30 +0000 |
commit | 15dc9f70e6c493251ed09a89c910fb24607923e2 (patch) | |
tree | 59a0e916518b2b0fc1cf7ab012b1f93b25233e20 /usr.sbin | |
parent | 1bcd8740779dc17b15de8a83f555fb1945df9640 (diff) | |
download | FreeBSD-src-15dc9f70e6c493251ed09a89c910fb24607923e2.zip FreeBSD-src-15dc9f70e6c493251ed09a89c910fb24607923e2.tar.gz |
kldload ng_ether if we need to.
Diffstat (limited to 'usr.sbin')
-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; } |