[LARTC] how can i compile tc

2007-03-20 Thread Vincent Dautremont
Hi, i'm just new here, i'm searching for how to compile tc (if i've understood correctly, i must compile the whole iproute2 thing). So i did like the read me file said: -- 1. Look at start of Makefile and set correct values for: KERNEL_INCLUDE - i did that, and then i doesn't understan

[LARTC] Divide bandwidth between 4 groups of ip with the same rate

2007-03-20 Thread [EMAIL PROTECTED]
Hello, I have begun to use the tc scripts since 2 weeks ago, so I am beginner. I am trying to divide my bandwidth in 4 independent ones. Each of these sub-bandwidths is assigned to 4 different groups of ip. Bandwidth sharing is allowed. I put a Linux with two Ethernet card between the router and

[LARTC] Re: [NET]: Fix fib_rules compatibility breakage

2007-03-20 Thread Patrick McHardy
Thomas Graf wrote: > * Patrick McHardy <[EMAIL PROTECTED]> 2007-03-20 17:59 > >>The presence of the attributes when src_len/dst_len is non-zero >>is only verified in fib_newrule, so this looks like it might crash >>when something broken sets src_len/dst_len to a non-zero value >>without actually a

Re: [LARTC] Fairness queuing across a range of IP addresses

2007-03-20 Thread Oscar Mechanic
On Tue, 2007-03-20 at 20:09 +0100, Ales Klok wrote: > Derek Sims wrote: > > I have a block of IP addresses (2048) used for ADSL connections to > > customers. > > > > In order to provide a fair slice of available bandwidth on the > > contended services I would like to be able to set up some kind o

Re: [LARTC] SIP and RTP QoS rules

2007-03-20 Thread Ales Klok
Sébastien CRAMATTE wrote: Hello, I've setuped a QoS bridge under debian. I would like to know If anyone have got some ressources about how setup perfectly VoIP (SIP/RTP) QoS with Asterisk Might be I should use TOS ? Regards ___ LARTC mailing list L

Re: [LARTC] Fairness queuing across a range of IP addresses

2007-03-20 Thread Ales Klok
Derek Sims wrote: I have a block of IP addresses (2048) used for ADSL connections to customers. In order to provide a fair slice of available bandwidth on the contended services I would like to be able to set up some kind of SFQ filter, but using a hash of the destination IP address rather th

[LARTC] SIP and RTP QoS rules

2007-03-20 Thread Sébastien CRAMATTE
Hello, I've setuped a QoS bridge under debian. I would like to know If anyone have got some ressources about how setup perfectly VoIP (SIP/RTP) QoS with Asterisk Might be I should use TOS ? Regards ___ LARTC mailing list LARTC@mailman.ds9a.nl http://

[LARTC] [NET]: Fix fib_rules compatibility breakage

2007-03-20 Thread Thomas Graf
* Patrick McHardy <[EMAIL PROTECTED]> 2007-03-20 17:59 > The presence of the attributes when src_len/dst_len is non-zero > is only verified in fib_newrule, so this looks like it might crash > when something broken sets src_len/dst_len to a non-zero value > without actually adding the attributes. Y

[LARTC] Fairness queuing across a range of IP addresses

2007-03-20 Thread Derek Sims
I have a block of IP addresses (2048) used for ADSL connections to customers. In order to provide a fair slice of available bandwidth on the contended services I would like to be able to set up some kind of SFQ filter, but using a hash of the destination IP address rather than the the full so

[LARTC] Re: [NET]: Fix fib_rules compatibility breakage

2007-03-20 Thread Patrick McHardy
Thomas Graf wrote: > @@ -242,10 +239,10 @@ static int fib4_rule_compare(struct fib_ > return 0; > #endif > > - if (tb[FRA_SRC] && (rule4->src != nla_get_be32(tb[FRA_SRC]))) > + if (frh->src_len && (rule4->src != nla_get_be32(tb[FRA_SRC]))) > return 0; > > -

[LARTC] [NET]: Fix fib_rules compatibility breakage

2007-03-20 Thread Thomas Graf
Based on Patrick's patch: The fib_rules netlink attribute policy introduced in 2.6.19 broke userspace compatibilty. When specifying a rule with "from all" or "to all", iproute adds a zero byte long netlink attribute, but the policy requires all addresses to have a size equal to sizeof(struct in_add

Re: [LARTC] TC Filter matching all

2007-03-20 Thread Andreas Unterkircher
I use this one for "match anything" http://mailman.ds9a.nl/pipermail/lartc/2005q3/016774.html Andreas Quoting Michał Margula <[EMAIL PROTECTED]>: Hello! I was always using "default" in HTB to choose default class, but now I need to do it with filters. Tried following command: # tc fi

[LARTC] TC Filter matching all

2007-03-20 Thread Michał Margula
Hello! I was always using "default" in HTB to choose default class, but now I need to do it with filters. Tried following command: # tc filter add dev eth0 protocol ip parent 10: prio 2 flowid 10:2 Unknown filter "flowid", hence option "10:2" is unparsable It is from example in LARTC Howto.