-
Notifications
You must be signed in to change notification settings - Fork 936
Fix if_linux_ipv6 verbose output of interface addresses #6797
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
Conversation
|
Can one of the admins verify this patch? |
8d20aa0 to
da10640
Compare
|
ok to test |
366990a to
ecd02eb
Compare
ecd02eb to
0d2d55b
Compare
|
@orivej I just did the following:
I left these 2 additional commits so that you can easily see the changes. If you're good with them, I can re-squash all down into a single commit and we can merge when CI completes. |
orivej
left a comment
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.
Everything else looks good, thank you!
Previously the verbose output of if_linux_ipv6_open looked like this:
found interface ab c: 0ab: a b: abc: 0 0: a 0:abcd: 0 0 scope 0
This changes the output to:
found interface eth0 inet6 ab0c:ab:a0b:abc:0:a00:abcd:0 scope 0
Signed-off-by: Orivej Desh <[email protected]>
Signed-off-by: Jeff Squyres <[email protected]>
0d2d55b to
39b799d
Compare
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.
I just squashed everything down to one commit.
@orivej You're the commit author, and you should feel free to put in your copyright, if you wish. Let me know if you want to amend again (i.e., before we merge to master).
Unfortunately, open-mpi#6797 was merged before all feedback was received (39b799d). This PR is a minor addendum to that commit. This PR simply removes a meaningless `= {0}` operation. The use of gethostname() here -- and many other places in the code base -- is technically unsafe. See open-mpi#6801 for a further description of the issue and a suggested fix. But the risk is quite low; real-world hostnames are usually much shorter than OPAL_MAXHOSTNAMELEN. Hence, this PR just removes the meaningless operation and leaves a real fix for gethostname() usage to a potential future PR. Signed-off-by: Jeff Squyres <[email protected]>
|
this should not had the v4.0.2 milestone set. That's for PRs that are going into v4.0.x. I |
Previously verbose output of
if_linux_ipv6_openlooked like this:This changes the output to: