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

fix: Fix missing return code for dns response #329

Merged
merged 2 commits into from
May 1, 2024

Conversation

anubhabMajumdar
Copy link
Contributor

@anubhabMajumdar anubhabMajumdar commented Apr 30, 2024

Description

IG recently changed the return code of the DNS gadget and moved to gopacket - https://github.com/inspektor-gadget/inspektor-gadget/blame/6a5937bba8f13fee889a24340f309d57e8ecabb6/pkg/gadgets/trace/dns/tracer/tracer.go#L168 . Fix the map in utils.

Related Issue

Fix: #330

Checklist

  • I have read the contributing documentation.
  • I signed and signed-off the commits (git commit -S -s ...). See this documentation on signing commits.
  • I have correctly attributed the author(s) of the code.
  • I have tested the changes locally.
  • I have followed the project's style guidelines.
  • I have updated the documentation, if necessary.
  • I have added tests, if applicable.

Screenshots (if applicable) or Testing Completed

Please add any relevant screenshots or GIFs to showcase the changes made.

Additional Notes

Add any additional notes or context about the pull request here.


Please refer to the CONTRIBUTING.md file for more information on how to contribute to this project.

@anubhabMajumdar anubhabMajumdar requested a review from a team as a code owner April 30, 2024 22:34
@anubhabMajumdar anubhabMajumdar changed the title bug: Fix missing return code for dns response fix: Fix missing return code for dns response Apr 30, 2024
Signed-off-by: Anubhab Majumdar <[email protected]>
@anubhabMajumdar anubhabMajumdar added this pull request to the merge queue May 1, 2024
Merged via the queue into main with commit 9dd90b4 May 1, 2024
28 checks passed
@anubhabMajumdar anubhabMajumdar deleted the topic/anmajumdar/fix-rcode branch May 1, 2024 04:47
nddq pushed a commit that referenced this pull request May 6, 2024
# Description

IG recently changed the return code of the DNS gadget and moved to
gopacket -
https://github.com/inspektor-gadget/inspektor-gadget/blame/6a5937bba8f13fee889a24340f309d57e8ecabb6/pkg/gadgets/trace/dns/tracer/tracer.go#L168
. Fix the map in utils.

## Related Issue

Fix: #330

## Checklist

- [x] I have read the [contributing
documentation](https://retina.sh/docs/contributing).
- [x] I signed and signed-off the commits (`git commit -S -s ...`). See
[this
documentation](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification)
on signing commits.
- [ ] I have correctly attributed the author(s) of the code.
- [x] I have tested the changes locally.
- [ ] I have followed the project's style guidelines.
- [ ] I have updated the documentation, if necessary.
- [x] I have added tests, if applicable.

## Screenshots (if applicable) or Testing Completed

Please add any relevant screenshots or GIFs to showcase the changes
made.

## Additional Notes

Add any additional notes or context about the pull request here.

---

Please refer to the [CONTRIBUTING.md](../CONTRIBUTING.md) file for more
information on how to contribute to this project.

---------

Signed-off-by: Anubhab Majumdar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Bug: adv_dns metrics is missing return code
2 participants