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

Add IPv6 support to tcp, http, htsp and access system. #226

Merged
merged 8 commits into from Jan 15, 2013
Merged

Add IPv6 support to tcp, http, htsp and access system. #226

merged 8 commits into from Jan 15, 2013

Conversation

BtbN
Copy link
Contributor

@BtbN BtbN commented Jan 15, 2013

In all my tests this worked without any problems, but testing is highly appreciated.
It patches the tcp, http and htsp code to be compatible to the larger IPv6 addresses, without loosing IPv4 backwards compatiblity.
tcp_server_create now quries for available addresses via getaddrinfo, and prefers IPv6 if it's available.
By disabling sockopt IPV6_V6ONLY, which is default-off on most distributions, but not on all, the IPv6 socket also accepts IPv4 connects which are represented like ::FFFF:127.0.0.1.
The access system is modified to be aware of IPv6 addresses. In webui they work exactly the same way as IPv4 addresses.

I most likely did not test in all possible conditions, but i tried to find all places where the address family matters.

@adamsutton
Copy link
Contributor

@BtbN as suggested on IRC, can you possibly look at making IPv6 build switchable.

@adamsutton adamsutton merged commit 89c3271 into tvheadend:master Jan 15, 2013
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.

None yet

2 participants