* [U-Boot-Users] Patch: allow a fixed port for TFTP (take 3)
@ 2005-01-11 15:11 Jerry Van Baren
2005-01-11 22:49 ` Wolfgang Denk
0 siblings, 1 reply; 11+ messages in thread
From: Jerry Van Baren @ 2005-01-11 15:11 UTC (permalink / raw)
To: u-boot
Hi Wolfgang, try three on the patch attached. The change here is to
rename the env variable per Tolunay Orkun's recommendation.
* Patch by Jerry Van Baren 11 January 2005
- Add a configuration option CONFIG_TFTP_PORT and optional env
variable tftpsourceport to force TFTP to use a fixed UDP port.
gvb
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 050111-tftp.patch
Url: http://lists.denx.de/pipermail/u-boot/attachments/20050111/5d3537ef/attachment.txt
^ permalink raw reply [flat|nested] 11+ messages in thread* [U-Boot-Users] Patch: allow a fixed port for TFTP (take 3) 2005-01-11 15:11 [U-Boot-Users] Patch: allow a fixed port for TFTP (take 3) Jerry Van Baren @ 2005-01-11 22:49 ` Wolfgang Denk 2005-01-11 23:47 ` Tolunay Orkun 2005-01-12 12:33 ` Jerry Van Baren 0 siblings, 2 replies; 11+ messages in thread From: Wolfgang Denk @ 2005-01-11 22:49 UTC (permalink / raw) To: u-boot In message <41E3ECBA.5030802@smiths-aerospace.com> you wrote: > > Hi Wolfgang, try three on the patch attached. The change here is to > rename the env variable per Tolunay Orkun's recommendation. I reject this because such a long variable name seems unacceptable to me. Don't make life unnecessarily hard to your users. Use a short name. How about "tftpport"? Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Artificial Intelligence is no match for natural stupidity. ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot-Users] Patch: allow a fixed port for TFTP (take 3) 2005-01-11 22:49 ` Wolfgang Denk @ 2005-01-11 23:47 ` Tolunay Orkun 2005-01-12 0:10 ` Wolfgang Denk 2005-01-12 12:33 ` Jerry Van Baren 1 sibling, 1 reply; 11+ messages in thread From: Tolunay Orkun @ 2005-01-11 23:47 UTC (permalink / raw) To: u-boot Dear Wolfgang, Wolfgang Denk wrote: > In message <41E3ECBA.5030802@smiths-aerospace.com> you wrote: > >>Hi Wolfgang, try three on the patch attached. The change here is to >>rename the env variable per Tolunay Orkun's recommendation. > > > I reject this because such a long variable name seems unacceptable to > me. Don't make life unnecessarily hard to your users. Use a short > name. How about "tftpport"? Wolfgang, "tftpport" is what he has done previously. It is more appropriate and customary for "tftpport" to refer to the server port (i.e. reference to a port without a qualification of client/server, source/destination etc). This patch on the other hand is leaving the server port as is (well known port) and modifying the normally dynamic source (client) port to a fixed value via environment. I think, using "tftpport" would be a poor choice. I will pledge for clarity over 6 more bytes in environment which most boards will not define anyway. If that is not reasonable, please allow for "tftpsrcport" or "tftpcport". I actually want to provide a complimentary patch over this one to make the tftp server port configurable which the environment variable can be appropriately named as one of "tftpserverport", "tftpdestport" or "tftpsport". I also want to use the same CONFIG_TFTP_PORT variable to enable both environment variables unless you object in which case naming the config variables as CONFIG_TFTP_CLIENT_PORT and CONFIG_TFTP_SERVER_PORT is probably better. Best regards, Tolunay ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot-Users] Patch: allow a fixed port for TFTP (take 3) 2005-01-11 23:47 ` Tolunay Orkun @ 2005-01-12 0:10 ` Wolfgang Denk 2005-01-12 8:09 ` Tolunay Orkun 0 siblings, 1 reply; 11+ messages in thread From: Wolfgang Denk @ 2005-01-12 0:10 UTC (permalink / raw) To: u-boot In message <41E4657F.6010406@orkun.us> you wrote: > > > I reject this because such a long variable name seems unacceptable to > > me. Don't make life unnecessarily hard to your users. Use a short > > name. How about "tftpport"? > > Wolfgang, "tftpport" is what he has done previously. :-( > I will pledge for clarity over 6 more bytes in environment which most > boards will not define anyway. If that is not reasonable, please allow > for "tftpsrcport" or "tftpcport". So be it "tftpsrcport" then. Or "tftpsrcp" :-) ["tftpcport" ??? TFT-PC-Port? Or 'c' like what???] > I actually want to provide a complimentary patch over this one to make > the tftp server port configurable which the environment variable can be > appropriately named as one of "tftpserverport", "tftpdestport" or tftpdstport or tftpdstp, please. > "tftpsport". I also want to use the same CONFIG_TFTP_PORT variable to [Seems to be some funny kind of exercise, this: TFTP sport. And is misleading - TFTP _S_ource Port ?] > enable both environment variables unless you object in which case naming > the config variables as CONFIG_TFTP_CLIENT_PORT and > CONFIG_TFTP_SERVER_PORT is probably better. OK. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de They say, well, meybe it _is_ smelly, maybe it _is_ overcrowded, may- be it _is_ a bit like Hell would be if they shut the fires off and stabled a herd of incontinent cows there for a year, but you must admit that it is full of sheer, vibrant, dynamic _life_. - Terry Pratchett, _Moving Pictures_ ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot-Users] Patch: allow a fixed port for TFTP (take 3) 2005-01-12 0:10 ` Wolfgang Denk @ 2005-01-12 8:09 ` Tolunay Orkun 2005-01-12 13:40 ` Jerry Van Baren 2005-01-12 14:01 ` Wolfgang Denk 0 siblings, 2 replies; 11+ messages in thread From: Tolunay Orkun @ 2005-01-12 8:09 UTC (permalink / raw) To: u-boot Wolfgang Denk wrote: >In message <41E4657F.6010406@orkun.us> you wrote: > > >>I will pledge for clarity over 6 more bytes in environment which most >>boards will not define anyway. If that is not reasonable, please allow >>for "tftpsrcport" or "tftpcport". >> >> > >So be it "tftpsrcport" then. Or "tftpsrcp" :-) > > I prefer "tftpsrcport". I hope Jerry will agee as well. >["tftpcport" ??? TFT-PC-Port? Or 'c' like what???] > > 'c' was to stand for "client". Just like bootpc and bootps in /etc/services >>I actually want to provide a complimentary patch over this one to make >>the tftp server port configurable which the environment variable can be >>appropriately named as one of "tftpserverport", "tftpdestport" or >> >> > >tftpdstport or tftpdstp, please. > > IMHO, "tftpdstport" is better. >>"tftpsport". I also want to use the same CONFIG_TFTP_PORT variable to >> >> > >[Seems to be some funny kind of exercise, this: TFTP sport. And is >misleading - TFTP _S_ource Port ?] > > Yes, that is kind of vague. Again, I used bootpc and bootps analogy. >>enable both environment variables unless you object in which case naming >>the config variables as CONFIG_TFTP_CLIENT_PORT and >>CONFIG_TFTP_SERVER_PORT is probably better. >> >> > >OK. > > OK for which? OK to use CONFIG_TFTP_PORT for enabling code for both "tftpsrcport" and "tftpdstport"? Best regards, Tolunay ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot-Users] Patch: allow a fixed port for TFTP (take 3) 2005-01-12 8:09 ` Tolunay Orkun @ 2005-01-12 13:40 ` Jerry Van Baren 2005-01-12 16:11 ` Tolunay Orkun 2005-09-24 20:47 ` Wolfgang Denk 2005-01-12 14:01 ` Wolfgang Denk 1 sibling, 2 replies; 11+ messages in thread From: Jerry Van Baren @ 2005-01-12 13:40 UTC (permalink / raw) To: u-boot Tolunay Orkun wrote: > Wolfgang Denk wrote: > >> In message <41E4657F.6010406@orkun.us> you wrote: >> >> >>> I will pledge for clarity over 6 more bytes in environment which most >>> boards will not define anyway. If that is not reasonable, please >>> allow for "tftpsrcport" or "tftpcport". >>> >> >> >> So be it "tftpsrcport" then. Or "tftpsrcp" :-) >> >> > I prefer "tftpsrcport". I hope Jerry will agee as well. > >> ["tftpcport" ??? TFT-PC-Port? Or 'c' like what???] >> >> > 'c' was to stand for "client". Just like bootpc and bootps in /etc/services > >>> I actually want to provide a complimentary patch over this one to >>> make the tftp server port configurable which the environment variable >>> can be appropriately named as one of "tftpserverport", "tftpdestport" >>> or >> >> >> tftpdstport or tftpdstp, please. >> >> > IMHO, "tftpdstport" is better. > >>> "tftpsport". I also want to use the same CONFIG_TFTP_PORT variable to >> >> >> [Seems to be some funny kind of exercise, this: TFTP sport. And is >> misleading - TFTP _S_ource Port ?] >> >> > > Yes, that is kind of vague. Again, I used bootpc and bootps analogy. > >>> enable both environment variables unless you object in which case >>> naming the config variables as CONFIG_TFTP_CLIENT_PORT and >>> CONFIG_TFTP_SERVER_PORT is probably better. >>> >> >> >> OK. >> >> > OK for which? OK to use CONFIG_TFTP_PORT for enabling code for both > "tftpsrcport" and "tftpdstport"? > > Best regards, > Tolunay OK, If I follow all the quoting correctly :-O, an acceptable set of names is the following. This is not Tolunay's first choice (sorry), in this case I'll suck up and side with Wolfgang ;-). tftpsrcp - Source UDP port for TFTP (Jerry's patch) tftpdstp - Destination UDP port for TFTP (Tolunay's projected follow-on) Patch Version 4.rc1 to follow... gvb "There comes a time in the history of any project when it becomes necessary to shoot the engineers and begin production." (attributed to MacUser in 1990) ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot-Users] Patch: allow a fixed port for TFTP (take 3) 2005-01-12 13:40 ` Jerry Van Baren @ 2005-01-12 16:11 ` Tolunay Orkun 2005-09-24 20:47 ` Wolfgang Denk 1 sibling, 0 replies; 11+ messages in thread From: Tolunay Orkun @ 2005-01-12 16:11 UTC (permalink / raw) To: u-boot Jerry Van Baren wrote: > OK, If I follow all the quoting correctly :-O, an acceptable set of > names is the following. This is not Tolunay's first choice (sorry), in > this case I'll suck up and side with Wolfgang ;-). > > tftpsrcp - Source UDP port for TFTP (Jerry's patch) > tftpdstp - Destination UDP port for TFTP (Tolunay's projected > follow-on) Spelling our "port" fully would make it more readable but I am OK with this. At least we are going to have some consistency between patches. Per Wolfgang's comments, we are both using CONFIG_TFTP_PORT for your patch and the follow up patch I am going to submit soon. > > Patch Version 4.rc1 to follow... Thanks for your patience! ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot-Users] Patch: allow a fixed port for TFTP (take 3) 2005-01-12 13:40 ` Jerry Van Baren 2005-01-12 16:11 ` Tolunay Orkun @ 2005-09-24 20:47 ` Wolfgang Denk 2005-09-24 21:26 ` Wolfgang Denk 1 sibling, 1 reply; 11+ messages in thread From: Wolfgang Denk @ 2005-09-24 20:47 UTC (permalink / raw) To: u-boot In message <41E528EA.8040906@smiths-aerospace.com> you wrote: > > OK, If I follow all the quoting correctly :-O, an acceptable set of > names is the following. This is not Tolunay's first choice (sorry), in > this case I'll suck up and side with Wolfgang ;-). > > tftpsrcp - Source UDP port for TFTP (Jerry's patch) > tftpdstp - Destination UDP port for TFTP (Tolunay's projected > follow-on) > > Patch Version 4.rc1 to follow... You may have notived that I checked in the _porevious_ version of this patch, as the "Patch Version 4.rc1" announced here never made it to the list (or at least not into my stack). Please feel free to submit an incremental patch against the current git. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Programmer's Lament: (Shakespeare, Macbeth, Act I, Scene vii) "That we but teach bloody instructions, which, being taught, return to plague the inventor..." ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot-Users] Patch: allow a fixed port for TFTP (take 3) 2005-09-24 20:47 ` Wolfgang Denk @ 2005-09-24 21:26 ` Wolfgang Denk 0 siblings, 0 replies; 11+ messages in thread From: Wolfgang Denk @ 2005-09-24 21:26 UTC (permalink / raw) To: u-boot In message <20050924204741.113DD3527DC@atlas.denx.de> I wrote: > > > Patch Version 4.rc1 to follow... > > You may have notived that I checked in the _porevious_ version of > this patch, as the "Patch Version 4.rc1" announced here never made it > to the list (or at least not into my stack). Please feel free to > submit an incremental patch against the current git. Please forget this. I just ran over the new version of your patch and added it. Thanks. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Es sind ?berhaupt nur die Dummk?pfe, die sich den Befehlen der M?ch- tigen widersetzen. Um sie zu ruinieren ist es genug, ihre Befehle treu zu erf?llen. - Peter Hacks: "Die sch?ne Helena" ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot-Users] Patch: allow a fixed port for TFTP (take 3) 2005-01-12 8:09 ` Tolunay Orkun 2005-01-12 13:40 ` Jerry Van Baren @ 2005-01-12 14:01 ` Wolfgang Denk 1 sibling, 0 replies; 11+ messages in thread From: Wolfgang Denk @ 2005-01-12 14:01 UTC (permalink / raw) To: u-boot In message <41E4DB2C.1010908@orkun.us> you wrote: > > >>enable both environment variables unless you object in which case naming > >>the config variables as CONFIG_TFTP_CLIENT_PORT and > >>CONFIG_TFTP_SERVER_PORT is probably better. > > > >OK. > > > OK for which? OK to use CONFIG_TFTP_PORT for enabling code for both > "tftpsrcport" and "tftpdstport"? Yes. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de In any group of employed individuals the only naturally early riser is _always_ the office manager, who will _always_ leave reproachful little notes ... on the desks of their subordinates. - Terry Pratchett, _Lords and Ladies_ ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot-Users] Patch: allow a fixed port for TFTP (take 3) 2005-01-11 22:49 ` Wolfgang Denk 2005-01-11 23:47 ` Tolunay Orkun @ 2005-01-12 12:33 ` Jerry Van Baren 1 sibling, 0 replies; 11+ messages in thread From: Jerry Van Baren @ 2005-01-12 12:33 UTC (permalink / raw) To: u-boot Wolfgang Denk wrote: > In message <41E3ECBA.5030802@smiths-aerospace.com> you wrote: > >>Hi Wolfgang, try three on the patch attached. The change here is to >>rename the env variable per Tolunay Orkun's recommendation. > > > I reject this because such a long variable name seems unacceptable to > me. Don't make life unnecessarily hard to your users. Use a short > name. How about "tftpport"? > > Best regards, > > Wolfgang Denk OK, then I'll stick with my previous patch (Version 2 2005-01-10) which used "tftpport" (that was the only change between v.2 and v.3). I can re-send it to you if you have already trashed my original message. Thanks, gvb ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-09-24 21:26 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2005-01-11 15:11 [U-Boot-Users] Patch: allow a fixed port for TFTP (take 3) Jerry Van Baren 2005-01-11 22:49 ` Wolfgang Denk 2005-01-11 23:47 ` Tolunay Orkun 2005-01-12 0:10 ` Wolfgang Denk 2005-01-12 8:09 ` Tolunay Orkun 2005-01-12 13:40 ` Jerry Van Baren 2005-01-12 16:11 ` Tolunay Orkun 2005-09-24 20:47 ` Wolfgang Denk 2005-09-24 21:26 ` Wolfgang Denk 2005-01-12 14:01 ` Wolfgang Denk 2005-01-12 12:33 ` Jerry Van Baren
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox