From owner-freebsd-net  Thu Oct 11 11:12:47 2001
Delivered-To: freebsd-net@freebsd.org
Received: from beppo.feral.com (beppo.feral.com [192.67.166.79])
	by hub.freebsd.org (Postfix) with ESMTP id 4EA3337B406
	for <freebsd-net@FreeBSD.ORG>; Thu, 11 Oct 2001 11:12:43 -0700 (PDT)
Received: from wonky.feral.com (wonky.feral.com [192.67.166.7])
	by beppo.feral.com (8.11.3/8.11.3) with ESMTP id f9BICgH83835
	for <freebsd-net@FreeBSD.ORG>; Thu, 11 Oct 2001 11:12:42 -0700 (PDT)
	(envelope-from mjacob@feral.com)
Date: Thu, 11 Oct 2001 11:11:35 -0700 (PDT)
From: Matthew Jacob <mjacob@feral.com>
Reply-To: <mjacob@feral.com>
To: <freebsd-net@FreeBSD.ORG>
Subject: review of change to bridge.h
In-Reply-To: <20011002190406.W4030-100000@wonky.feral.com>
Message-ID: <20011011111056.R84793-100000@wonky.feral.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-freebsd-net@FreeBSD.ORG
Precedence: bulk
List-ID: <freebsd-net.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-net>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-net>
X-Loop: FreeBSD.org


Fix the silly warning:

Index: bridge.h
===================================================================
RCS file: /home/ncvs/src/sys/net/bridge.h,v
retrieving revision 1.8
diff -u -r1.8 bridge.h
--- bridge.h	2001/10/05 05:45:26	1.8
+++ bridge.h	2001/10/11 18:11:51
@@ -92,8 +92,17 @@
 	*((unsigned int *)(a)) == 0xffffffff && \
 	((unsigned short *)(a))[2] == 0xffff )
 #else
-#warning... must complete these for the alpha etc.
+/*
+ * unaligned version
+ */
 #define BDG_MATCH(a,b) (!bcmp(a, b, ETHER_ADDR_LEN) )
+#define	IS_ETHER_BROADCAST(a) ( \
+	((unsigned char *)(a))[0] == 0xff && \
+	((unsigned char *)(a))[1] == 0xff && \
+	((unsigned char *)(a))[2] == 0xff && \
+	((unsigned char *)(a))[3] == 0xff && \
+	((unsigned char *)(a))[4] == 0xff && \
+	((unsigned char *)(a))[5] == 0xff)
 #endif
 /*
  * The following constants are not legal ifnet pointers, and are used



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message