From 15dc9f70e6c493251ed09a89c910fb24607923e2 Mon Sep 17 00:00:00 2001 From: brian Date: Wed, 28 Jun 2000 09:30:30 +0000 Subject: kldload ng_ether if we need to. --- usr.sbin/ppp/ether.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'usr.sbin/ppp/ether.c') 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; } -- cgit v1.1