From f559b959c76f27c60815c7059167538a928cb1af Mon Sep 17 00:00:00 2001 From: Mike Hibler <mike@flux.utah.edu> Date: Wed, 23 Mar 2005 23:58:59 +0000 Subject: [PATCH] Ignore the "plip" device in FreeBSD5. Just noticed this was causing lots of "malformed interface record" logging. --- sensors/slothd/slothd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sensors/slothd/slothd.c b/sensors/slothd/slothd.c index 769b5c453f..91b6c5b1df 100644 --- a/sensors/slothd/slothd.c +++ b/sensors/slothd/slothd.c @@ -1,6 +1,6 @@ /* * EMULAB-COPYRIGHT - * Copyright (c) 2000-2004 University of Utah and the Flux Group. + * Copyright (c) 2000-2005 University of Utah and the Flux Group. * All rights reserved. */ @@ -588,6 +588,9 @@ int get_counters(char *buf, void *data) { if (pkt->ifcnt < MAXNUMIFACES && !strstr(buf, "lo") #ifdef __FreeBSD__ +#if __FreeBSD__ >= 5 + && !strstr(buf, "plip") +#endif && !strstr(buf, "*") && strstr(buf, "<Link")) #endif -- GitLab