diff options
author | phk <phk@FreeBSD.org> | 1998-07-31 09:03:15 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1998-07-31 09:03:15 +0000 |
commit | ac4b1e36f2a579a8e33c38861f9776bfe5c09470 (patch) | |
tree | 2fc81f449ee910f1e3bc9c17879317b5798c0217 | |
parent | ac78fb5edaf125582252b57367985c0468ebe7df (diff) | |
download | FreeBSD-src-ac4b1e36f2a579a8e33c38861f9776bfe5c09470.zip FreeBSD-src-ac4b1e36f2a579a8e33c38861f9776bfe5c09470.tar.gz |
TFTP_ACK goes to port 69 (default tftp port) and tftpd says 'Timeout'.
It will be sent to source port of received packet.
PR: 7442
Reviewed by: phk
Submitted by: Sergey Shkonda <serg@bcs.zp.ua>
-rw-r--r-- | sys/i386/boot/netboot/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/i386/boot/netboot/main.c b/sys/i386/boot/netboot/main.c index 086d71c..4ee5b9f 100644 --- a/sys/i386/boot/netboot/main.c +++ b/sys/i386/boot/netboot/main.c @@ -466,6 +466,7 @@ tftp(name) return(0); } /* ACK PACKET */ if (tr->opcode != ntohs(TFTP_DATA)) return(0); + osocket = ntohs(tr->udp.src); tp.opcode = htons(TFTP_ACK); tp.u.ack.block = tr->u.data.block; udp_transmit(arptable[ARP_SERVER].ipaddr, isocket, |