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

Allow connecting to IPv4 addresses #1

Merged
merged 4 commits into from
Aug 25, 2015
Merged

Allow connecting to IPv4 addresses #1

merged 4 commits into from
Aug 25, 2015

Conversation

K-os
Copy link

@K-os K-os commented Aug 25, 2015

2b52599: I implemented the "todo" in enet_address_set_host() in unix.c:118.
2a567b0: The socket-option ENET_SOCKOPT_IPV6_V6ONLY needs to be set before bind(), otherwise it returns an error.
a91524f: The wrong address-family was used
90620b2: Just some compiler warnings/errors, when the defines from configure are not set correctly

proller added a commit that referenced this pull request Aug 25, 2015
Allow connecting to IPv4 addresses
@proller proller merged commit 5a9492d into freeminer:ipv6 Aug 25, 2015
proller added a commit that referenced this pull request Oct 31, 2016
You still can connect to ipv4 via IPv4-Mapped IPv6 Addresses.

Incompatible lib ABI.

Squashed commit of the following:

commit d643eb3
Merge: c3fec7a 9ce6c59
Author: proller <[email protected]>
Date:   Mon Oct 31 23:06:18 2016 +0300

    Merge branch 'master' into ipv6

commit c3fec7a
Merge: 1f8eb62 f46fee0
Author: proller <[email protected]>
Date:   Fri Sep 16 13:16:45 2016 +0300

    Merge remote-tracking branch 'upstream/master' into ipv6

commit 1f8eb62
Author: proller <[email protected]>
Date:   Sat Mar 12 02:11:52 2016 +0300

    support sin6_scope_id in address

commit f499bc5
Merge: 720e7c4 4d10671
Author: proller <[email protected]>
Date:   Sat Mar 12 01:14:00 2016 +0300

    Merge remote-tracking branch 'upstream/master' into ipv6

commit 720e7c4
Author: proller <[email protected]>
Date:   Thu Dec 17 01:17:38 2015 +0300

    return setting ENET_SOCKOPT_IPV6_V6ONLY=>0 after bind

commit b048473
Author: proller <[email protected]>
Date:   Sat Sep 26 11:40:41 2015 +0400

    fix win32 compiler warning

commit 5a9492d
Merge: 09018e4 2a567b0
Author: proller <[email protected]>
Date:   Tue Aug 25 18:12:34 2015 +0300

    Merge pull request #1 from K-os/ipv6

    Allow connecting to IPv4 addresses

commit 2a567b0
Author: Gabriel Hege <[email protected]>
Date:   Mon Aug 24 12:07:09 2015 +0200

    Set socket option IPV6_V6ONLY before bind()

commit 2b52599
Author: Gabriel Hege <[email protected]>
Date:   Mon Aug 24 12:11:09 2015 +0200

    Handle IPv4/v6 addresses returend from getaddrinfo

commit a91524f
Author: Gabriel Hege <[email protected]>
Date:   Thu Aug 13 19:25:17 2015 +0200

    gethostbyname(): Use correct address family AF_INET6

    for result from gethostbyname()

commit 90620b2
Author: Gabriel Hege <[email protected]>
Date:   Thu Aug 13 19:26:41 2015 +0200

    Fail or Warn, when getaddrinfo(), inet_pton() and friends are missing

commit 09018e4
Author: proller <[email protected]>
Date:   Mon May 11 22:03:48 2015 +0300

    fix

commit a2651c6
Merge: 2c1bac4 62755b1
Author: proller <[email protected]>
Date:   Mon May 11 20:28:46 2015 +0300

    Merge branch 'master' into ipv6

    Conflicts:
    	unix.c

commit 2c1bac4
Author: proller <[email protected]>
Date:   Mon May 11 17:53:49 2015 +0300

    add IPV6_V6ONLY socket option = 0

commit 52b0da7
Author: proller <[email protected]>
Date:   Tue May 5 22:37:06 2015 +0400

    very ugly win32 fix

commit 1394392
Merge: e236d01 b1758c4
Author: proller <[email protected]>
Date:   Mon May 4 22:45:36 2015 +0300

    Merge branch 'master' into ipv6

commit e236d01
Author: proller <[email protected]>
Date:   Mon May 4 19:41:47 2015 +0400

    fix aton types

commit 0ff6534
Merge: cf46ab3 c10af34
Author: proller <[email protected]>
Date:   Fri Apr 10 23:40:21 2015 +0300

    Merge remote-tracking branch 'origin/master' into ipv6

    Conflicts:
    	include/enet/win32.h

commit cf46ab3
Author: proller <[email protected]>
Date:   Mon Apr 6 03:20:12 2015 +0300

    win32: fix include order

commit b9de5d2
Merge: 3f5bab2 a2eb357
Author: proller <[email protected]>
Date:   Sun Apr 5 03:38:19 2015 +0300

    Merge branch 'master' into ipv6

    Conflicts:
    	unix.c

commit 3f5bab2
Author: proller <[email protected]>
Date:   Fri Jan 9 21:05:50 2015 +0300

    fix inet_ntoa

commit 7d9fa2b
Author: proller <[email protected]>
Date:   Tue Dec 16 23:53:47 2014 +0300

    fix win32 build errors

commit 04394e6
Author: proller <[email protected]>
Date:   Wed Dec 3 01:07:18 2014 +0300

    apple fix

commit 9122c46
Merge: b3f2bf9 b8ae4a1
Author: proller <[email protected]>
Date:   Wed Dec 3 01:01:51 2014 +0300

    Merge branch 'master' into ipv6

commit b3f2bf9
Merge: 512a43b 8096edb
Author: proller <[email protected]>
Date:   Wed Oct 8 17:07:54 2014 +0400

    Merge branch 'master' into ipv6

commit 512a43b
Author: proller <[email protected]>
Date:   Thu Jul 3 18:46:25 2014 +0400

    Copypaste resolving functions from unix.c to win32.c

commit dce98b9
Author: proller <[email protected]>
Date:   Wed May 21 01:21:39 2014 +0400

    ENET_IPV6 flag

commit db8fb8c
Author: proller <[email protected]>
Date:   Wed May 21 00:25:51 2014 +0400

    Try to add windows tcpip headers

commit 28c5f1e
Merge: 3963c69 06b535c
Author: proller <[email protected]>
Date:   Mon May 12 01:00:21 2014 +0400

    Merge branch 'master' into ipv6

commit 3963c69
Merge: 3586b8a 47c8379
Author: proller <[email protected]>
Date:   Mon May 12 00:56:06 2014 +0400

    Merge remote-tracking branch 'origin/master' into ipv6

commit 3586b8a
Author: proller <[email protected]>
Date:   Thu Apr 10 23:50:10 2014 +0400

    win32 convert, unfinished

commit 3d27904
Author: proller <[email protected]>
Date:   Thu Apr 10 23:20:32 2014 +0400

    ipv6 support

commit 54d2681
Author: proller <[email protected]>
Date:   Thu Apr 10 22:56:28 2014 +0400

    add CMakeLists.txt
proller added a commit that referenced this pull request Oct 31, 2016
You still can connect to ipv4 via IPv4-Mapped IPv6 Addresses.

Squashed commit of the following:

commit c559551
Author: proller <[email protected]>
Date:   Mon Oct 31 23:13:36 2016 +0300

    Everything converted to ipv6.
    You still can connect to ipv4 via IPv4-Mapped IPv6 Addresses.

    Incompatible lib ABI.

    Squashed commit of the following:

    commit d643eb3
    Merge: c3fec7a 9ce6c59
    Author: proller <[email protected]>
    Date:   Mon Oct 31 23:06:18 2016 +0300

        Merge branch 'master' into ipv6

    commit c3fec7a
    Merge: 1f8eb62 f46fee0
    Author: proller <[email protected]>
    Date:   Fri Sep 16 13:16:45 2016 +0300

        Merge remote-tracking branch 'upstream/master' into ipv6

    commit 1f8eb62
    Author: proller <[email protected]>
    Date:   Sat Mar 12 02:11:52 2016 +0300

        support sin6_scope_id in address

    commit f499bc5
    Merge: 720e7c4 4d10671
    Author: proller <[email protected]>
    Date:   Sat Mar 12 01:14:00 2016 +0300

        Merge remote-tracking branch 'upstream/master' into ipv6

    commit 720e7c4
    Author: proller <[email protected]>
    Date:   Thu Dec 17 01:17:38 2015 +0300

        return setting ENET_SOCKOPT_IPV6_V6ONLY=>0 after bind

    commit b048473
    Author: proller <[email protected]>
    Date:   Sat Sep 26 11:40:41 2015 +0400

        fix win32 compiler warning

    commit 5a9492d
    Merge: 09018e4 2a567b0
    Author: proller <[email protected]>
    Date:   Tue Aug 25 18:12:34 2015 +0300

        Merge pull request #1 from K-os/ipv6

        Allow connecting to IPv4 addresses

    commit 2a567b0
    Author: Gabriel Hege <[email protected]>
    Date:   Mon Aug 24 12:07:09 2015 +0200

        Set socket option IPV6_V6ONLY before bind()

    commit 2b52599
    Author: Gabriel Hege <[email protected]>
    Date:   Mon Aug 24 12:11:09 2015 +0200

        Handle IPv4/v6 addresses returend from getaddrinfo

    commit a91524f
    Author: Gabriel Hege <[email protected]>
    Date:   Thu Aug 13 19:25:17 2015 +0200

        gethostbyname(): Use correct address family AF_INET6

        for result from gethostbyname()

    commit 90620b2
    Author: Gabriel Hege <[email protected]>
    Date:   Thu Aug 13 19:26:41 2015 +0200

        Fail or Warn, when getaddrinfo(), inet_pton() and friends are missing

    commit 09018e4
    Author: proller <[email protected]>
    Date:   Mon May 11 22:03:48 2015 +0300

        fix

    commit a2651c6
    Merge: 2c1bac4 62755b1
    Author: proller <[email protected]>
    Date:   Mon May 11 20:28:46 2015 +0300

        Merge branch 'master' into ipv6

        Conflicts:
        	unix.c

    commit 2c1bac4
    Author: proller <[email protected]>
    Date:   Mon May 11 17:53:49 2015 +0300

        add IPV6_V6ONLY socket option = 0

    commit 52b0da7
    Author: proller <[email protected]>
    Date:   Tue May 5 22:37:06 2015 +0400

        very ugly win32 fix

    commit 1394392
    Merge: e236d01 b1758c4
    Author: proller <[email protected]>
    Date:   Mon May 4 22:45:36 2015 +0300

        Merge branch 'master' into ipv6

    commit e236d01
    Author: proller <[email protected]>
    Date:   Mon May 4 19:41:47 2015 +0400

        fix aton types

    commit 0ff6534
    Merge: cf46ab3 c10af34
    Author: proller <[email protected]>
    Date:   Fri Apr 10 23:40:21 2015 +0300

        Merge remote-tracking branch 'origin/master' into ipv6

        Conflicts:
        	include/enet/win32.h

    commit cf46ab3
    Author: proller <[email protected]>
    Date:   Mon Apr 6 03:20:12 2015 +0300

        win32: fix include order

    commit b9de5d2
    Merge: 3f5bab2 a2eb357
    Author: proller <[email protected]>
    Date:   Sun Apr 5 03:38:19 2015 +0300

        Merge branch 'master' into ipv6

        Conflicts:
        	unix.c

    commit 3f5bab2
    Author: proller <[email protected]>
    Date:   Fri Jan 9 21:05:50 2015 +0300

        fix inet_ntoa

    commit 7d9fa2b
    Author: proller <[email protected]>
    Date:   Tue Dec 16 23:53:47 2014 +0300

        fix win32 build errors

    commit 04394e6
    Author: proller <[email protected]>
    Date:   Wed Dec 3 01:07:18 2014 +0300

        apple fix

    commit 9122c46
    Merge: b3f2bf9 b8ae4a1
    Author: proller <[email protected]>
    Date:   Wed Dec 3 01:01:51 2014 +0300

        Merge branch 'master' into ipv6

    commit b3f2bf9
    Merge: 512a43b 8096edb
    Author: proller <[email protected]>
    Date:   Wed Oct 8 17:07:54 2014 +0400

        Merge branch 'master' into ipv6

    commit 512a43b
    Author: proller <[email protected]>
    Date:   Thu Jul 3 18:46:25 2014 +0400

        Copypaste resolving functions from unix.c to win32.c

    commit dce98b9
    Author: proller <[email protected]>
    Date:   Wed May 21 01:21:39 2014 +0400

        ENET_IPV6 flag

    commit db8fb8c
    Author: proller <[email protected]>
    Date:   Wed May 21 00:25:51 2014 +0400

        Try to add windows tcpip headers

    commit 28c5f1e
    Merge: 3963c69 06b535c
    Author: proller <[email protected]>
    Date:   Mon May 12 01:00:21 2014 +0400

        Merge branch 'master' into ipv6

    commit 3963c69
    Merge: 3586b8a 47c8379
    Author: proller <[email protected]>
    Date:   Mon May 12 00:56:06 2014 +0400

        Merge remote-tracking branch 'origin/master' into ipv6

    commit 3586b8a
    Author: proller <[email protected]>
    Date:   Thu Apr 10 23:50:10 2014 +0400

        win32 convert, unfinished

    commit 3d27904
    Author: proller <[email protected]>
    Date:   Thu Apr 10 23:20:32 2014 +0400

        ipv6 support

    commit 54d2681
    Author: proller <[email protected]>
    Date:   Thu Apr 10 22:56:28 2014 +0400

        add CMakeLists.txt

commit 9ce6c59
Merge: 62755b1 f46fee0
Author: proller <[email protected]>
Date:   Mon Oct 31 23:05:11 2016 +0300

    Merge remote-tracking branch 'upstream/master'

commit 62755b1
Merge: b1758c4 5f47654
Author: proller <[email protected]>
Date:   Mon May 11 18:02:12 2015 +0300

    Merge remote-tracking branch 'enet/master'

commit b1758c4
Merge: c10af34 f7c46f0
Author: proller <[email protected]>
Date:   Mon May 4 22:45:11 2015 +0300

    Merge remote-tracking branch 'enet/master'

commit c10af34
Author: proller <[email protected]>
Date:   Fri Apr 10 23:39:21 2015 +0300

    fix windows compiler warning

commit a2eb357
Merge: b8ae4a1 7c27a5d
Author: proller <[email protected]>
Date:   Sun Apr 5 03:33:47 2015 +0300

    Merge remote-tracking branch 'upstream/master'

commit b8ae4a1
Merge: 8096edb c8fa0ae
Author: proller <[email protected]>
Date:   Wed Dec 3 01:01:02 2014 +0300

    Merge remote-tracking branch 'upstream/master'

commit 8096edb
Merge: 4133fd2 6ef4e7d
Author: proller <[email protected]>
Date:   Wed Oct 8 17:07:07 2014 +0400

    Merge remote-tracking branch 'upstream/master'

commit 4133fd2
Author: proller <[email protected]>
Date:   Thu Apr 10 22:56:28 2014 +0400

    add CMakeLists.txt

commit eba42ff
Author: proller <[email protected]>
Date:   Wed May 21 00:35:29 2014 +0400

    Revert "Try to add windows tcpip headers"

    This reverts commit 9008b3c.

commit 9008b3c
Author: proller <[email protected]>
Date:   Wed May 21 00:25:51 2014 +0400

    Try to add windows tcpip headers

commit 06b535c
Merge: 47c8379 736474c
Author: proller <[email protected]>
Date:   Mon May 12 00:59:43 2014 +0400

    Merge remote-tracking branch 'upstream/master'

commit 47c8379
Author: proller <[email protected]>
Date:   Mon May 12 00:55:31 2014 +0400

    .gitignore
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