-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle UDP responses that overflow with TC bit #6277
Handle UDP responses that overflow with TC bit #6277
Conversation
@chrisohaver - I apologize, I had accidently deleted my fork which closed this PR - #6100 , hence submitted this PR with the same code changes. As trying to get this PR miekg/dns#1475 reviewed and merged is taking a long time, can we get the bug fix merged here with "overflow" string comparison. Can we address this comment "To accurately identify the error by type rather than string compares" as a follow up PR while I work with maintainers of miekg package. |
@chrisohaver - When you get a chance, I kindly request you to take a look at this request. |
Is there anything new to review here vs where #6100 was left off? |
@chrisohaver - Thank you for your reply. I wanted to check if we get the bug fix merged here with "overflow" string comparison. And we can address this "To accurately identify the error by type rather than string compares" as a follow up PR while I work with maintainers of miekg package on this PR - miekg/dns#1475 |
Codecov Report
@@ Coverage Diff @@
## master #6277 +/- ##
==========================================
+ Coverage 55.70% 58.47% +2.77%
==========================================
Files 224 252 +28
Lines 10016 16537 +6521
==========================================
+ Hits 5579 9670 +4091
- Misses 3978 6278 +2300
- Partials 459 589 +130
... and 170 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Aside from that, were there other outstanding issues that needed to be addressed? It looks like there were ... relating to AA bit? Maybe elsewhere? Can you review the feedback and requested changes in #6100? |
@chrisohaver - yes yes, we had discussed about setting AA bit to false here - #6100 (comment) Please let me know, if there is anything outstanding that needs to be address. |
I think in that case we should not alter the AA bit from the original. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requested changes may be confusing... I think all the error/overflow/truncation logic can be moved into the if proto == "udp" { ... }
block.
Co-authored-by: Chris O'Haver <cohaver@infoblox.com> Signed-off-by: SriHarshaBS001 <SriHarshaBS009@gmail.com>
Signed-off-by: SriHarshaBS001 <SriHarshaBS009@gmail.com>
Signed-off-by: SriHarshaBS001 <SriHarshaBS009@gmail.com>
Co-authored-by: Chris O'Haver <cohaver@infoblox.com> Signed-off-by: SriHarshaBS001 <SriHarshaBS009@gmail.com>
Signed-off-by: SriHarshaBS001 <SriHarshaBS009@gmail.com>
Signed-off-by: SriHarshaBS001 <SriHarshaBS009@gmail.com>
Signed-off-by: SriHarshaBS001 <SriHarshaBS009@gmail.com>
Signed-off-by: SriHarshaBS001 <SriHarshaBS009@gmail.com>
Signed-off-by: SriHarshaBS001 <SriHarshaBS009@gmail.com>
Handle UDP responses that overflow with TC bit with test case (coredns#6277) Signed-off-by: SriHarshaBS001 <SriHarshaBS009@gmail.com>
Handle UDP responses that overflow with TC bit with test case (coredns#6277) Signed-off-by: SriHarshaBS001 <SriHarshaBS009@gmail.com>
Handle UDP responses that overflow with TC bit with test case (coredns#6277) Signed-off-by: SriHarshaBS001 <SriHarshaBS009@gmail.com> Modified-by: Grant Spence <gspence@redhat.com>
Handle UDP responses that overflow with TC bit with test case (coredns#6277) Signed-off-by: SriHarshaBS001 <SriHarshaBS009@gmail.com> Modified-by: Grant Spence <gspence@redhat.com>
Handle UDP responses that overflow with TC bit with test case (coredns#6277) Signed-off-by: SriHarshaBS001 <SriHarshaBS009@gmail.com> Modified-by: Grant Spence <gspence@redhat.com>
1. Why is this pull request needed and what does it do?
Description in this PR - #6003
Code changes in plugin/pkg/proxy/connect.go file is copied from above PR - #6003
This PR - #6100 was closed by mistake. So submitting a new PR here with the same code changes.
Getting this PR miekg/dns#1475 reviewed is taking time. Can we get the bug fix merged here with "overflow" string comparison. And we can address this "To accurately identify the error by type rather than string compares" as a follow up PR while I work with maintainers of miekg package.
2. Which issues (if any) are related?
#5953
#5998
3. Which documentation changes (if any) need to be made?
Not sure.
4. Does this introduce a backward incompatible change or deprecation?
No.