From owner-freebsd-net Mon Mar 5 10:23:20 2001 Delivered-To: freebsd-net@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 3298637B719 for ; Mon, 5 Mar 2001 10:23:16 -0800 (PST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f25INCJ01001; Mon, 5 Mar 2001 10:23:12 -0800 (PST) Date: Mon, 5 Mar 2001 10:23:12 -0800 From: Alfred Perlstein To: Jean-Christophe Varaillon Cc: freebsd-net@FreeBSD.ORG Subject: Re: - TFTP: Time out - Message-ID: <20010305102312.U8663@fw.wintelcom.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from jcv@vbc.net on Mon, Mar 05, 2001 at 06:17:19PM +0000 X-all-your-base: are belong to us. Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * Jean-Christophe Varaillon [010305 10:17] wrote: > > +-----------+ +------------+ > |FreeBSD 4.1|<--------->| Cisco 3640 | > +-----------+ +------------+ > > I want to transfer a file from the FreeBSD machine to the Cisco. > My machine is configured as a TFTP server and the cisco is "configured" > as a client. > > The TFTP communication is stopped because of a timeout. > > Why should I have a timeout ? Because afaik tftp has a really terrible client/server notion, there's no good way to tell if a client has 'gone away'. Without the timeout, if a client was to disappear the tftpd server would hang around forever. > BUT, I can transfer a files from the Cisco to my machine witout any > trouble. at this moment, the cisco is configured as a TFTP Server, and I > think that my machine also, but it reacts as a client. You should probably be able to fix this by changing the value of "TIMEOUT" in /usr/src/libexec/tftpd/tftpd.c, then doing this in /usr/src/libexec/tftpd: make ; make install -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message