Betterer sheep patch


Subject: Betterer sheep patch
From: Charles McLachlan (cim@uk.research.att.com)
Date: Thu May 11 2000 - 06:52:51 MDT


You can improve the filter shoice of my sheep net hack by finding the line in
sheep_net_write (somewhere around line #279) which looks like

if (skb->protocol == ETH_P_IP)

and change it to:

if ((skb->protocol == ETH_P_IP) &&
          ( (skb->nh.iph->protocol == 6) || (skb->nh.iph->protocol == 0x11) ))
        
This will only use TCP or UDP packets for choosing the filter, so should
prevent erroneous filter choices.

Downside: During the time between boot up and the first TCP or UDP packet being
sent, MOL is still at the mercy of unnecessary packets.

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Charlie McLachlan 
	AT&T Research Lab. Cambridge.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



This archive was generated by hypermail 2a24 : Thu May 11 2000 - 06:56:45 MDT