changeset 10700:2f0266180e4f

6627861 Nemo should consider that the source address could be NULL for IB
author Eric Cheng
date Wed, 30 Sep 2009 19:53:33 -0700
parents 5c59ad6abe2c
children dabf35f459b8
files usr/src/uts/common/io/dls/dls_link.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/io/dls/dls_link.c	Wed Sep 30 18:56:19 2009 -0600
+++ b/usr/src/uts/common/io/dls/dls_link.c	Wed Sep 30 19:53:33 2009 -0700
@@ -167,10 +167,11 @@
 		prevp->b_next = mp;
 
 		/*
-		 * The source, destination, sap, vlan id and the MSGNOLOOP
-		 * flag must all match in a given subchain.
+		 * The source, destination, sap, vlan tag must all match in
+		 * a given subchain.
 		 */
-		if (memcmp(mhip->mhi_daddr, cmhi.mhi_daddr, addr_size) != 0 ||
+		if (mhip->mhi_saddr == NULL || cmhi.mhi_saddr == NULL ||
+		    memcmp(mhip->mhi_daddr, cmhi.mhi_daddr, addr_size) != 0 ||
 		    memcmp(mhip->mhi_saddr, cmhi.mhi_saddr, addr_size) != 0 ||
 		    mhip->mhi_bindsap != cmhi.mhi_bindsap) {
 			/*