| To: | linux-net@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx |
|---|---|
| Subject: | window scaling |
| From: | a.ranu@xxxxxxxxxxxxxxxxxxxx |
| Date: | Wed, 08 Oct 2003 17:03:27 +1000 |
| Sender: | netdev-bounce@xxxxxxxxxxx |
hi...
i am writing a module that modifies the advertised window in every outgoing
packet with the help of ip connection tracking, if it is larger than the
window i calculated (say x - not scaled, just in bytes)
would the following code be correct?
x_scaled = x >> (*pskb)->sk->tp_pinfo.af_tcp.rcv_wscale;
window_already_in_pkt = ntohs((*pskb)->h.th->window);
if (window_already_in_pkt > x_scaled)
tcph->window = x_scaled;
a reply would be really appreciated
Asmeet.
--
a.ranu@xxxxxxxxxxxxxxxxxxxx
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: e1000 close (NAPI), Feldman, Scott |
|---|---|
| Next by Date: | Re: [Bridge] RE: [VLAN] Re: [PATCH/RFC] Let {ip, arp}tables "see" bridged VLAN tagged{I,AR}P packets, Tommy Christensen |
| Previous by Thread: | [patch] 3c509: don't return if request_region fails, Aristeu Sergio Rozanski Filho |
| Next by Thread: | RE: [Bridge] RE: [VLAN] Re: [PATCH/RFC] Let {ip, arp}tables "see" bridged VLAN tagged{I,AR}P packets, Christian Darnell |
| Indexes: | [Date] [Thread] [Top] [All Lists] |