diff options
| author | Brian Somers <brian@FreeBSD.org> | 2000-06-28 09:30:30 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 2000-06-28 09:30:30 +0000 |
| commit | a61800c2f3f8c4a1df1b5cdb1c0bca08ff288337 (patch) | |
| tree | a4f861691d4fbfced3fdd4d35e576e4918923340 | |
| parent | af63ed3ce0551ebc6254c971d8d243169ceba044 (diff) | |
Notes
| -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 ebcbcd3bf39a..7d80a695244e 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; } |
