Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net use ETHER_IS_MULTICAST macro. no functional changes.
details: https://anonhg.NetBSD.org/src/rev/3d410f4509a5
branches: trunk
changeset: 764499:3d410f4509a5
user: yamt <yamt%NetBSD.org@localhost>
date: Mon Apr 25 22:14:45 2011 +0000
description:
use ETHER_IS_MULTICAST macro. no functional changes.
diffstat:
sys/net/if_ethersubr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e467fbd522e3 -r 3d410f4509a5 sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c Mon Apr 25 22:13:45 2011 +0000
+++ b/sys/net/if_ethersubr.c Mon Apr 25 22:14:45 2011 +0000
@@ -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;
}
Home |
Main Index |
Thread Index |
Old Index