Skip to content

Support IPv6 channel#5893

Closed
ichizok wants to merge 24 commits intovim:masterfrom
ichizok:feature/channel-ipv6
Closed

Support IPv6 channel#5893
ichizok wants to merge 24 commits intovim:masterfrom
ichizok:feature/channel-ipv6

Conversation

@ichizok
Copy link
Contributor

@ichizok ichizok commented Apr 6, 2020

  • Use getaddrinfo() instead of gethostbyname()
  • Make ch_open() accept IPv6 address (enable to parse IPv6 literal in channel_open_func())
  • Add CheckIPv6 command for IPv6 tests to check loopback device has IPv6 address
  • Add g:testfunc variable to refer the executing test name in testing: in order to switch test-server script (below) in channel tests
  • Add test_channel_6.py to launch IPv6 test server
  • Configure script: add getaddrinfo() check and remove libnsl check since getaddrinfo() doesn't need libnsl.

@brammool
Copy link
Contributor

brammool commented Apr 6, 2020 via email

@ichizok
Copy link
Contributor Author

ichizok commented Apr 7, 2020

I wonder how many systems supporting gethostbyname() do not have
getaddrinfo()?

I don't know... should do as the following by the configure checking?

If the environment supports getaddrinfo(): use getaddrinfo() and enable IPv6
Otherwise: use gethostbyname() and only IPv4 (same as current)

@ichizok ichizok force-pushed the feature/channel-ipv6 branch 2 times, most recently from b9698cd to 5380f53 Compare April 7, 2020 07:30
@brammool
Copy link
Contributor

brammool commented Apr 7, 2020 via email

@ichizok ichizok force-pushed the feature/channel-ipv6 branch from 5380f53 to 5788d92 Compare April 10, 2020 01:29
@ichizok
Copy link
Contributor Author

ichizok commented Apr 10, 2020

  • Add IPv4 (gethostbyname, current implementation) fallback
  • Add "ipv6" to feature-list

@brammool
Copy link
Contributor

This looks like it's complete. Is it ready to include now?

@ichizok
Copy link
Contributor Author

ichizok commented Apr 12, 2020

This looks like it's complete. Is it ready to include now?

Yes, all set.

@brammool brammool closed this in bfe13cc Apr 12, 2020
@ichizok ichizok deleted the feature/channel-ipv6 branch April 12, 2020 16:55
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