From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Mon, 07 Apr 2014 18:52:43 +0200 Subject: [U-Boot] Different Port for TFTP communication In-Reply-To: References: Message-ID: <20140407165243.3B074380958@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Mario, In message you wrote: > > I have a short question about TFTP usage in u-boot. > Is it possible to change the Port for TFTP communication > while u-boot is running. Standard path for TFTP is 69 > an let's say, we want to change port to 1500. As is, this cannot be changed. The TFTP port number is hard wired in the code - see "net/tftp.c": ... 18 /* Well known TFTP port # */ 19 #define WELL_KNOWN_PORT 69 ... Of course it should be trivial to add a config option for this, or even make it changable at runtime. But I have to admit that I don't see many actual use cases for such a modification. Could you please explain why you need to do this - is this just some exotic environment, or is this needed for some more general use case? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de For those who like this sort of thing, this is the sort of thing they like. - Abraham Lincoln