Skip to content

syscall: add getifaddrs to os syscalls - #18513

Merged
junr03 merged 7 commits into
mainfrom
getifaddrs-syscall
Oct 9, 2021
Merged

junr03 merged 7 commits into
mainfrom
getifaddrs-syscall

Conversation

@junr03

@junr03 junr03 commented Oct 8, 2021

Copy link
Copy Markdown
Member

Commit Message: syscall - add getifaddrs to os syscalls
Additional Description: formalize getifaddrs into os syscalls.
Risk Level: low
Testing: existing calling code and UT over that code.

Signed-off-by: Jose Nino <[email protected]>

@mattklein123 mattklein123 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this. Should there be some test for this?

/wait

Comment thread envoy/common/platform.h Resolved
Comment thread test/common/network/utility_test.cc Resolved
@junr03

junr03 commented Oct 8, 2021

Copy link
Copy Markdown
Member Author

Should there be some test for this?

AFAICT there is no direct testing class for OsSysCalls, but instead the functions are indirectly covered by tests that use them. In this case the test that covers Network::Utility::getLocalAddress

Signed-off-by: Jose Nino <[email protected]>
Jose Nino added 2 commits October 8, 2021 15:23
Signed-off-by: Jose Nino <[email protected]>
Signed-off-by: Jose Nino <[email protected]>
mattklein123
mattklein123 previously approved these changes Oct 8, 2021

@mattklein123 mattklein123 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Signed-off-by: Jose Nino <[email protected]>
mattklein123
mattklein123 previously approved these changes Oct 8, 2021
Jose Nino
fmt
Signed-off-by: Jose Nino <[email protected]>

@phlax phlax left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on the basis of tacit approval from @mattklein123 - lgtm

@junr03
junr03 merged commit fc04382 into main Oct 9, 2021
goaway added a commit to goaway/envoy that referenced this pull request Oct 11, 2021
mattklein123 pushed a commit that referenced this pull request Oct 11, 2021
@mattklein123
mattklein123 deleted the getifaddrs-syscall branch November 9, 2021 04:12
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