This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: tftp fix for eCos applications


On Wed, Mar 12, 2003 at 05:17:49PM -0800, Barton Meeks wrote:
> Looks like I found and fixed something that had
> already been fixed for redboot. When I tried to tftp
> from my application, it only worked with 2 out of 4
> tftp servers that I tried. One of the programs
> produced this (winsock?) error: "RecvFrom returns
> 10040", and described this as a datagram that was
> larger than the buffer reserved for it. I traced this
> to the initial tftp request message, which was much
> larger coming from my application than a similar
> request from linux tftp.

The standard does not say anything about maximum size's for the
request. In fact the request is the same size as the data packets. So
it could be argued that your server is broken. Having said that, your
fix is reasonable. Note the servers will still break if somebody
passes a very long filename.

I don't have any hardware to test with at the moment. If Gary does not
beat me too it, i will test this tonight and commit it tomorrow.

Please could you send me a ChangeLog entry.

       Thanks
              Andrew


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]