From serg@bcs.zp.ua  Thu Jul 30 00:09:03 1998
Received: from relay1.bcs.zp.ua (bcs-ts33.zcn.net [195.123.8.74])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA17990
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 30 Jul 1998 00:08:28 -0700 (PDT)
          (envelope-from serg@bcs.zp.ua)
Received: from bcs3.bcs.zp.ua (bcs3.bcs.zp.ua [195.123.10.73])
	by relay1.bcs.zp.ua (8.8.5/8.8.5) with ESMTP id KAA06831
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 30 Jul 1998 10:07:52 +0300 (EEST)
Received: (from serg@localhost)
	by bcs3.bcs.zp.ua (8.8.8/8.8.8) id KAA12208;
	Thu, 30 Jul 1998 10:07:56 +0300 (EEST)
	(envelope-from serg)
Message-Id: <199807300707.KAA12208@bcs3.bcs.zp.ua>
Date: Thu, 30 Jul 1998 10:07:56 +0300 (EEST)
From: serg@bcs.zp.ua
Reply-To: serg@bcs.zp.ua
To: FreeBSD-gnats-submit@freebsd.org
Subject: tftp implementation error in netboot
X-Send-Pr-Version: 3.2

>Number:         7442
>Category:       i386
>Synopsis:       TFTP_ACK goes to port 69
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 30 00:10:00 PDT 1998
>Closed-Date:    Fri Jul 31 02:03:23 PDT 1998
>Last-Modified:  Fri Jul 31 02:03:35 PDT 1998
>Originator:     Sergey Shkonda
>Release:        FreeBSD 2.2.7-RELEASE i386
>Organization:
Business Computer Service
>Environment:

	

Description: 

	<Precise description of the problem (multiple lines)>
	TFTP_ACK goes to port 69 (default tftp port) and
	tftpd says 'Timeout'.
	It will be sent to source port of received packet.

>Description:
>How-To-Repeat:

	

Fix: 
	
	<How to correct or work around the problem, if known (multiple lines)>

--- main.c.orig	Tue Mar 31 11:09:50 1998
+++ main.c	Tue Mar 31 11:13:27 1998
@@ -464,6 +464,7 @@
 				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,
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Fri Jul 31 02:03:23 PDT 1998 
State-Changed-Why:  
committed, thanks! 
>Unformatted:
