Bug 1314744
Summary: | RFE: Evaluate RFC7440 for tftp | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Noel McLoughlin <noel.mcloughlin> | ||||
Component: | tftp | Assignee: | Dominik 'Rathann' Mierzejewski <dominik> | ||||
Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | rawhide | CC: | akarlsso, lzaoral | ||||
Target Milestone: | --- | Keywords: | FutureFeature, Patch, Performance, RFE | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
URL: | https://tools.ietf.org/html/rfc7440 | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Enhancement | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1328827 (view as bug list) | Environment: | |||||
Last Closed: | 2021-10-25 08:29:30 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1328827 | ||||||
Attachments: |
|
Description
Noel McLoughlin
2016-03-04 11:43:55 UTC
Looks like a valuable addition. I'll take a look at it. There seems to be a misunderstanding in how the reporter understands the --blocksize (and subsequently the suggested --windowsize) addition. The --blocksize specifies the *maximum allowed* blocksize, should there be any request for the blocksize TFTP option (see RFC2348). The blocksize (or windowsize) option itself is always present in the initial read/write request packet. Therefore, no additional option will be added to the server parameters, but the server will be improved to also understand the windowsize TFTP option, as specified in RFC7440. Created attachment 1144234 [details]
patch-v1
Implement RFC7440 in both server and the client.
This needs a lot of testing! Especially on error conditions and duplicate packets.
Note that the client improvement was a bit forced, since it hadn't implemented any TFTP options before. It still uses the default TFTP blocksize of 512.
The patch was created against the current F24 (and rawhide, they are the same) code base. I've created builds for F24 and F25 that can be downloaded from: https://jsynacek.fedorapeople.org/tftp/f24/ https://jsynacek.fedorapeople.org/tftp/f25/ Kudos for the fast analysis and turnaround. Unfortunately I not be able to test his (no time) but hopefully wider Fedora community will pick this up. This package has changed maintainer in the Fedora. Reassigning to the new maintainer of this component. If there's still interest in applying Jan's patch, let me know and I'll make a new build with the patch applied. The patch needs some revision, though. Here's a quick review: @@ -191,14 +192,14 @@ char *xstrdup(const char *); const char *program; -static inline void usage(int errcode) +static void usage(int errcode) { fprintf(stderr, #ifdef HAVE_IPV6 This looks unrelated, please explain why you're removing the inline attribute? + sa_set_port(&peeraddr, SOCKPORT(&from)); /* added */ The comment doesn't explain anything, either expand it or drop it, please. In multiple places, the only change is indentation. Please keep the original indentation in the functional patch and send a separate patch for whitespace-only changes. Closing due to no interest from reporter or patch submitter. Feel free to reopen. |