FreeBSD Bugzilla – Attachment 5672 Details for
Bug 13401
tftp will ack duplicate packets with large delays
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 753 bytes, created by
David G Andersen
on 1999-08-27 00:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
David G Andersen
Created:
1999-08-27 00:10:01 UTC
Size:
753 bytes
patch
obsolete
>Index: tftp.c >=================================================================== >RCS file: /n/marker/usr/lsrc/FreeBSD/CVS/src/usr.bin/tftp/tftp.c,v >retrieving revision 1.4 >diff -u -r1.4 tftp.c >--- tftp.c 1998/10/30 16:17:50 1.4 >+++ tftp.c 1999/08/26 20:40:07 >@@ -239,6 +239,7 @@ > warn("sendto"); > goto abort; > } >+no_send_ack: > write_behind(file, convert); > for ( ; ; ) { > alarm(rexmtval); >@@ -277,7 +278,14 @@ > printf("discarded %d packets\n", j); > } > if (dp->th_block == (block-1)) { >- goto send_ack; /* resend ack */ >+ if (j) { >+ goto send_ack; /* resend ack */ >+ } else { >+ /* We didn't discard any >+ * packets; we got a duplicate >+ */ >+ goto no_send_ack; >+ } > } > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 13401
: 5672