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

pkg/strace/epsocket: fix handling of IP4/IP6 #2614

Merged
merged 4 commits into from
Feb 12, 2023

Conversation

rminnich
Copy link
Member

@rminnich rminnich commented Feb 8, 2023

I am not sure why the original code does this but
it returns a binary string in FullAddress:Addr.

Change the code so that Addr is net.IP().String().

Add tests.

Fixes:#2609

Signed-off-by: Ronald G. Minnich rminnich@google.com

@rminnich rminnich added the Awaiting reviewer Waiting for a reviewer. label Feb 8, 2023
@rminnich rminnich requested review from MDr164, rjoleary and a team February 8, 2023 23:02
@codecov
Copy link

codecov bot commented Feb 8, 2023

Codecov Report

Base: 74.85% // Head: 74.95% // Increases project coverage by +0.09% 🎉

Coverage data is based on head (d0188db) compared to base (eb85a1a).
Patch coverage: 95.83% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2614      +/-   ##
==========================================
+ Coverage   74.85%   74.95%   +0.09%     
==========================================
  Files         409      409              
  Lines       41384    41385       +1     
==========================================
+ Hits        30979    31020      +41     
+ Misses      10405    10365      -40     
Impacted Files Coverage Δ
pkg/strace/socket.go 0.00% <0.00%> (ø)
pkg/strace/epsocket.go 100.00% <100.00%> (+100.00%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

I am not sure why the original code does this but
it returns a binary string in FullAddress:Addr.

Change the code so that Addr is net.IP().String().

Add tests.

Fixes:u-root#2609

Signed-off-by: Ronald G. Minnich <rminnich@google.com>
Signed-off-by: Ronald G. Minnich <rminnich@google.com>
Signed-off-by: Ronald G. Minnich <rminnich@google.com>
@binjip978 binjip978 added the Awaiting author Waiting for new changes or feedback for author. label Feb 11, 2023
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
@rminnich rminnich removed the Awaiting author Waiting for new changes or feedback for author. label Feb 11, 2023
@rminnich rminnich merged commit eb090eb into u-root:main Feb 12, 2023
@robertmin1
Copy link
Contributor

Issue #2609 is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting reviewer Waiting for a reviewer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants