Skip to content
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

Add big endian support to the dns parser #34456

Merged
merged 2 commits into from
Jun 8, 2024

Conversation

jonathan-albrecht-ibm
Copy link
Contributor

Fixes:
//test/extensions/filters/udp/dns_filter:dns_filter_integration_test //test/extensions/filters/udp/dns_filter:dns_filter_test on big endian platforms.

Commit Message:
Additional Description: These changes fix the serialization of 128 bit ip address values on big endian platforms and adds a big endian definition of the dns header struct with the fields ordered so that they can be serialized easily on big endian platforms.
One test is skipped on s390x builds due to a known issue with the undetermined ordering of some of the test values that happens reliably on s390x.
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

Fixes:
//test/extensions/filters/udp/dns_filter:dns_filter_integration_test
//test/extensions/filters/udp/dns_filter:dns_filter_test
on big endian platforms.

Signed-off-by: Jonathan Albrecht <jonathan.albrecht@ibm.com>
Copy link

Hi @jonathan-albrecht-ibm, welcome and thank you for your contribution.

We will try to review your Pull Request as quickly as possible.

In the meantime, please take a look at the contribution guidelines if you have not done so already.

🐱

Caused by: #34456 was opened by jonathan-albrecht-ibm.

see: more, trace.

@adisuissa adisuissa self-assigned this Jun 5, 2024
@adisuissa
Copy link
Contributor

Assigning Matt as codeowner
/assign @mattklein123

Can you please fix format (see CI error).
/wait

Signed-off-by: Jonathan Albrecht <jonathan.albrecht@ibm.com>
@jonathan-albrecht-ibm
Copy link
Contributor Author

jonathan-albrecht-ibm commented Jun 7, 2024

Thanks @adisuissa, it was a spelling mistake in a comment

@mattklein123 mattklein123 merged commit a679292 into envoyproxy:main Jun 8, 2024
49 checks passed
@jonathan-albrecht-ibm
Copy link
Contributor Author

Thanks for reviewing and merging @mattklein123!

mattklein123 pushed a commit that referenced this pull request Dec 11, 2024
<!--
!!!ATTENTION!!!

If you are fixing *any* crash or *any* potential security issue, *do
not*
open a pull request in this repo. Please report the issue via emailing
envoy-security@googlegroups.com where the issue will be triaged
appropriately.
Thank you in advance for helping to keep Envoy secure.

!!!ATTENTION!!!

For an explanation of how to fill out the fields, please see the
relevant section
in
[PULL_REQUESTS.md](https://github.com/envoyproxy/envoy/blob/main/PULL_REQUESTS.md)
-->


Commit Message: 
Additional Description: I believe it is stable now since we conduct a
security review and improvement for dns filter like #18651 #20744 #22861
#17479 #34409 #34456 #34490 and so on
Risk Level: low
Testing:
Docs Changes:
Release Notes:

Signed-off-by: Boteng Yao <boteng@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants