Module Name: src
Committed By: yamt
Date: Mon Apr 25 22:14:46 UTC 2011
Modified Files:
src/sys/net: if_ethersubr.c
Log Message:
use ETHER_IS_MULTICAST macro. no functional changes.
To generate a diff of this commit:
cvs rdiff -u -r1.185 -r1.186 src/sys/net/if_ethersubr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/net/if_ethersubr.c
diff -u src/sys/net/if_ethersubr.c:1.185 src/sys/net/if_ethersubr.c:1.186
--- src/sys/net/if_ethersubr.c:1.185 Wed Jan 12 15:30:40 2011
+++ src/sys/net/if_ethersubr.c Mon Apr 25 22:14:45 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ethersubr.c,v 1.185 2011/01/12 15:30:40 tsutsui Exp $ */
+/* $NetBSD: if_ethersubr.c,v 1.186 2011/04/25 22:14:45 yamt Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.185 2011/01/12 15:30:40 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.186 2011/04/25 22:14:45 yamt Exp $");
#include "opt_inet.h"
#include "opt_atalk.h"
@@ -1368,7 +1368,7 @@
/*
* Verify that we have valid Ethernet multicast addresses.
*/
- if ((addrlo[0] & 0x01) != 1 || (addrhi[0] & 0x01) != 1) {
+ if (!ETHER_IS_MULTICAST(addrlo) || !ETHER_IS_MULTICAST(addrhi)) {
splx(s);
return EINVAL;
}