[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Source-Route Patch for oltr



If you use sr-patch.v2.0.28 or the sr-patch.v2.0.33 I just posted, and if
you use the Olicom driver, you'll want to apply this small patch as well.
It makes sure that all packets are sent through the source-routing code,
which then decides whether or not to source-route.

--gilbert

diff -urN v2.0.33/net/802/tr.c linux/net/802/tr.c
--- v2.0.33/net/802/tr.c	Tue May 19 22:44:27 1998
+++ linux/net/802/tr.c	Tue May 19 22:45:33 1998
@@ -150,9 +150,6 @@
        pseudo trllc up here, and then decodes that. We do it directly.... */
     rv = htons (ETH_P_TR_802_2);
   }    
-  
-  if(trh->saddr[0] & TR_RII)
-    tr_add_rif_info(trh);
 
   if(*trh->daddr & 1) {
     if(!memcmp(trh->daddr,dev->broadcast,TR_ALEN)) 	
@@ -163,6 +160,9 @@
     if (memcmp(trh->daddr, dev->dev_addr, TR_ALEN))
       skb->pkt_type=PACKET_OTHERHOST;
   }
+  
+  if(skb->pkt_type != PACKET_OTHERHOST)
+    tr_add_rif_info(trh, dev);
 
   return rv;
 }

-- 
Gilbert Ramirez                Voice:  +1 210 358 4032
Technical Services             Fax:    +1 210 358 1122
University Health System       San Antonio, Texas, USA