Skip to content

[ip address] Add isV6() helper member function#502

Closed
wendani wants to merge 2 commits intosonic-net:masterfrom
wendani:isv6
Closed

[ip address] Add isV6() helper member function#502
wendani wants to merge 2 commits intosonic-net:masterfrom
wendani:isv6

Conversation

@wendani
Copy link
Contributor

@wendani wendani commented Jul 9, 2021

return m_ip.family == AF_INET;
}

inline bool isV6() const
Copy link
Contributor

Choose a reason for hiding this comment

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

so far, we've been using this as !isV4(). Looks like its needed for certain cases?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see. Thanks for pointing out. This then is not needed.

@wendani wendani closed this Jul 15, 2021
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.

2 participants