PERFORCE change 151077 for review
Ryan French
rfrench at FreeBSD.org
Mon Oct 6 22:46:42 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=151077
Change 151077 by rfrench at 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)
More information about the p4-projects
mailing list