Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Oct 2008 22:46:41 GMT
From:      Ryan French <rfrench@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 151077 for review
Message-ID:  <200810062246.m96Mkf1H062545@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=151077

Change 151077 by rfrench@rfrench_mpls on 2008/10/06 22:46:03

	Removed the dropping of all broadcast MPLS packets for now while I am testing.	

Affected files ...

.. //depot/projects/soc2008/rfrench_mpls/net/if_ethersubr.c#11 edit
.. //depot/projects/soc2008/rfrench_mpls/netmpls/mpls_input.c#13 edit

Differences ...

==== //depot/projects/soc2008/rfrench_mpls/net/if_ethersubr.c#11 (text+ko) ====


==== //depot/projects/soc2008/rfrench_mpls/netmpls/mpls_input.c#13 (text+ko) ====

@@ -56,21 +56,9 @@
 create_fake_entry(struct sockaddr_mpls *smpls)
 {
 	if (MPLS_LABEL_GET(smpls->smpls_in_label) == 44) {
-		smpls->smpls_operation = 1;
-		smpls->smpls_out_exp = 14;
-		smpls->smpls_out_label = MPLS_LABEL_SET(66);
-		smpls->smpls_out_ifindex = smpls->smpls_in_ifindex;
-	}
-	if (MPLS_LABEL_GET(smpls->smpls_in_label) == 55) {
-		smpls->smpls_operation = 2;
-		smpls->smpls_out_exp = 14;
-		smpls->smpls_out_label = MPLS_LABEL_SET(44);
-		smpls->smpls_out_ifindex = smpls->smpls_in_ifindex;
-	}
-	if (MPLS_LABEL_GET(smpls->smpls_in_label) == 66) {
 		smpls->smpls_operation = 3;
 		smpls->smpls_out_exp = 14;
-		smpls->smpls_out_label = MPLS_LABEL_SET(1000);
+		smpls->smpls_out_label = MPLS_LABEL_SET(100);
 		smpls->smpls_out_ifindex = smpls->smpls_in_ifindex;
 	}
 }
@@ -118,10 +106,10 @@
         }
 
         /* drop all broadcast and multicast packets */
-        if (m->m_flags & (M_BCAST | M_MCAST)) {
-                m_freem(m);
-                return;
-        }
+        //if (m->m_flags & (M_BCAST | M_MCAST)) {
+        //        m_freem(m);
+        //        return;
+        //}
 
         if (m->m_len < sizeof(*shim))
                 if ((m = m_pullup(m, sizeof(*shim))) == NULL)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810062246.m96Mkf1H062545>