Re: [LARTC] SFQ

Linux Advanced Routing and Traffic Control

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

 



On Tue, Dec 11, 2001 at 11:50:12PM -0800, Don Cohen wrote:

>  > > Here different flows are distinguished by source & dest addresses and 
>  > > source port.
>  > > 
>  > > Is this right?
>  > 
>  > Exactly.
>  > 
>  > Regards,
>  > 
>  > bert
> 
> I think this is not quite right.
> Also dest port, right?

	 case __constant_htons(ETH_P_IP):
        {
                struct iphdr *iph = skb->nh.iph;
                h = iph->daddr;
                h2 = iph->saddr^iph->protocol;
                if (!(iph->frag_off&htons(IP_MF|IP_OFFSET)) &&
                    (iph->protocol == IPPROTO_TCP ||
                     iph->protocol == IPPROTO_UDP ||
                     iph->protocol == IPPROTO_ESP))
                        h2 ^= *(((u32*)iph) + iph->ihl);
                break;
	}

In case of ipv4:
	destination address
	source address
	ip protocol 
	source port/dest port tuple

I missed the fact that the first 4 octects of the IP sub-protocol header
were include in (u32).

> and re: > Subject: Re: [LARTC] sfq as solution to "Small ISP problems"
>  > >  > 1: SSH - to be realtime always.
>  > > I don't think you want this to always be high prio - that includes scp.
>  > 
>  > your'e right, only the real ssh traffic..
> 
> How do you propose to tell the difference between ssh and scp?

Read the HOWTO. Scp doesn't set the 'minimum delay' flag.

Regards,

bert

-- 
http://www.PowerDNS.com          Versatile DNS Software & Services
Trilab                                 The Technology People
Netherlabs BV / Rent-a-Nerd.nl           - Nerd Available -
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux