From owner-freebsd-net@FreeBSD.ORG Thu Dec 31 15:48:37 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 992ED106566B for ; Thu, 31 Dec 2009 15:48:37 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id 280848FC14 for ; Thu, 31 Dec 2009 15:48:36 +0000 (UTC) Received: by fxm27 with SMTP id 27so12246948fxm.3 for ; Thu, 31 Dec 2009 07:48:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=79R8ca4dKKkdfEgRN8yQMajgDwWrI2JMW/tY6iwxZEE=; b=u4KuQiyCqmFUKxCPAGSzetdOEVZmm8wQt0yTm1ZA6ko/BuzTEo4Mm4NnyCsPZK9gSf 7lIEDpfTtibPdOfJlzGwHpqScDP/+nbFf6eq18kssIwCAWVqYspuq70h3DZy82r8UqZ8 08t4IMCp5Aulf3CInbmwkl4qr73XsnqEbF46g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=Or2gCZlkSfllL3x0zbKgaOcjOUxdyAiAXHc42P1gSW2QbOp3ss6IJnN4zvhQQIv8Wl gICvF5dHSDzA+eTdvMp+/mPmKmpXMMErrNMUJRW6RwBGTdk2ZLNSii6mXl8b3Wuo7mHZ dfEonA/oyiVLqQ8zlP0ZzmU5YctP1WyLLVHBA= Received: by 10.223.25.27 with SMTP id x27mr14437728fab.7.1262274509395; Thu, 31 Dec 2009 07:48:29 -0800 (PST) Received: from ?10.0.10.2? (54.81.54.77.rev.vodafone.pt [77.54.81.54]) by mx.google.com with ESMTPS id 14sm4956371fxm.7.2009.12.31.07.48.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 31 Dec 2009 07:48:28 -0800 (PST) Sender: Rui Paulo Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Rui Paulo In-Reply-To: <4B3C2CC1.9070308@mahan.org> Date: Thu, 31 Dec 2009 15:48:26 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <2C4E1C7D-90CF-4D0D-9B86-668ACB516299@freebsd.org> References: <4B3C2CC1.9070308@mahan.org> To: Patrick Mahan X-Mailer: Apple Mail (2.1077) Cc: freebsd-net@freebsd.org Subject: Re: Any plans to upgrade the tftp client and server images for FreeBSD? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Dec 2009 15:48:37 -0000 hi, On 31 Dec 2009, at 04:46, Patrick Mahan wrote: > Not sure if this is the correct list, but I am working as part of > a kernel team that is using FreeBSD 8.0 for it's base OS. >=20 > We have had a ongoing issue with our bootloader (u-boot) with it > being unable to tftp from the tftp server running on our FreeBSD > server. We traced the issue down to the tftp code in u-boot was > using the 'blksize' option and was not handling the option nak > correctly. Since we didn't want to have to require a change in > the bootloader, it was instead decided to fix the tftp server to > support RFC 2348. After looking around the internet, we found that > the tftp server under NetBSD did support RFC 2348. This made it > an easy port, one line change to the usr.bin/tftp/Makefile and a > slight change to libexec/tftpd.c (changed the name of an internal > function from 'sendfile' back to 'xmitfile'). It has been working > just fine for us. >=20 > So I have been tasked with asking if the FreeBSD developers would > like this code for future inclusion (or one of the current developers > could just grab it from NetBSD). Yes. >=20 > Reading the website it seems to contribute we need to be running = -CURRENT > which is not currently possible (other reasons we are using 8.0. This > is actually a recent upgrade as we were previously using FreeBSD 6.2). >=20 > So if this is something that could be useful, I have the code and a = patch > to modify the original NetBSD code to contribute. >=20 > Also, if it is already done, then I was not able to view it (I tried = the CVS and > SVN web source browser and did not see any changes related to adding = RFC 2348 > support. The tftp server on 8.0 is the same as on 9.0. Can you send a patch? Thanks, -- Rui Paulo