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 [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to