lkml.org 
[lkml]   [1997]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectTCP Stall

Well... the patch was against 2.0.30 and I'm using 2.1.29 so it didn't
come close enough to fix.

Script started on Mon Mar 31 12:12:53 1997
# patch <tcp_pause.diff
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -r -u linux-pre-2.0.30/net/ipv4/tcp_output.c linux/net/ipv4/tcp_output.c
|--- linux-pre-2.0.30/net/ipv4/tcp_output.c Sun Mar 16 14:48:29 1997
|+++ linux/net/ipv4/tcp_output.c Sun Mar 16 17:00:56 1997
--------------------------
File to patch: net/ipv4/tcp_output.c
Patching file net/ipv4/tcp_output.c using Plan A...
Hunk #1 failed at 510.
Hunk #2 failed at 570.
2 out of 2 hunks failed--saving rejects to net/ipv4/tcp_output.c.rej
done
# cat /net/ipv4/tcp_output.c.rej
***************
*** 510,515 ****
else
{
dev=rt->rt_dev;
skb->raddr=rt->rt_gateway;
skb->dev=dev;
skb->arp=1;
--- 510,554 ----
else
{
dev=rt->rt_dev;
+ if (skb->dev != dev && skb->link3 == 0
+ && !skb_queue_empty(&sk->write_queue)) {
+ /* THIS IS UGLY. DON'T SHOW THIS TO YOUR MOTHER. --erics
+ * Route shifted devices.
+ * If this is the last packet in the
+ * retransmit queue, then we should walk
+ * the chain of packets in the write_queue
+ * that have the same device and
+ * fix routing on these packets as well.
+ * If we fail to do this, then every packet
+ * in the transmit queue will incurr a
+ * retransmit with the backed off retransmit
+ * timeout. This is very bad.
+ */
+ struct sk_buff *skb2 = sk->write_queue.next;
+ while (skb2 && skb2->dev == skb->dev) {
+ skb2->raddr=rt->rt_gateway;
+ skb2->dev = dev;
+ skb2->arp=1;
+ if (rt->rt_hh)
+ {
+ memcpy(skb_push(skb2,dev->hard_header_len),rt->rt_hh->hh_data,dev->hard_header_len);
+ if (!rt->rt_hh->hh_uptodate)
+ {
+ skb2->arp = 0;
+ #if RT_CACHE_DEBUG >= 2
+ printk("tcp_do_retransmit(1): hh miss %08x via %08x\n", iph->daddr, rt->rt_gateway);
+ #endif

[SNIPPED]

Script done on Mon Mar 31 12:14:20 1997





Cheers,
Dick Johnson
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Richard B. Johnson
Project Engineer
Analogic Corporation
Voice : (508) 977-3000 ext. 3754
Fax : (508) 532-6097
Modem : (508) 977-6870
Ftp : ftp@boneserver.analogic.com
Email : rjohnson@analogic.com, johnson@analogic.com
Penguin : Linux version 2.1.29 on an i586 machine (66.15 BogoMips).
Warning : I read unsolicited mail for $350.00 per hour. Supply billing address.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.028 / U:1.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site