Re: SO_RCVBUF doesn't change receiver advertised window

2008-01-16 Thread Ritesh Kumar
On 1/16/08, Bill Fink <[EMAIL PROTECTED]> wrote: > On Tue, 15 Jan 2008, Ritesh Kumar wrote: > > > Hi, > > I am using linux 2.6.20 and am trying to limit the receiver window > > size for a TCP connection. However, it seems that auto tuning is not > > tur

SO_RCVBUF doesn't change receiver advertised window

2008-01-15 Thread Ritesh Kumar
Hi, I am using linux 2.6.20 and am trying to limit the receiver window size for a TCP connection. However, it seems that auto tuning is not turning itself off even after I use the syscall rwin=65536 setsockopt(sock, SOL_SOCKET, SO_RCVBUF, &rwin, sizeof(rwin)); and verify using getsockopt(soc

accessing TCP port numbers of an skb in a qdisc

2007-04-10 Thread Ritesh Kumar
Hi, For some per-flow queue management work I need to access TCP port numbers of an skb inside a qdisc (i.e. in qdisc enqueue and dequeue functions). Can I assume that skb->data always points to the head of the IP header of the packet? If that is the case will the following statements do the tr

Re: Netem tfifo implementation

2007-03-02 Thread Ritesh Kumar
On 3/2/07, Stephen Hemminger <[EMAIL PROTECTED]> wrote: On Fri, 2 Mar 2007 15:56:54 -0500 "Ritesh Kumar" <[EMAIL PROTECTED]> wrote: > On 3/2/07, Patrick McHardy <[EMAIL PROTECTED]> wrote: > > Ritesh Kumar wrote: > > > Hi, > > >I recent

Re: Netem tfifo implementation

2007-03-02 Thread Ritesh Kumar
On 3/2/07, Patrick McHardy <[EMAIL PROTECTED]> wrote: Ritesh Kumar wrote: > Hi, >I recently saw the qdisc "tfifo" in the netem module > (net/sched/sch_netem.c) when I migrated some of my patches from 2.6.14 > to 2.6.20. As I understand, tfifo helps in keeping t

Netem tfifo implementation

2007-03-02 Thread Ritesh Kumar
Hi, I recently saw the qdisc "tfifo" in the netem module (net/sched/sch_netem.c) when I migrated some of my patches from 2.6.14 to 2.6.20. As I understand, tfifo helps in keeping the queue of packets sorted according to their "time_to_send". [tfifo was not present in 2.6.14 perhaps because arri