Make IPv6 support optional again (defaults to enabled) #1431

pull luke-jr wants to merge 3 commits into bitcoin:master from luke-jr:opt_ipv6 changing 6 files +55 −8
  1. luke-jr commented at 4:43 PM on June 8, 2012: member

    No description provided.

  2. in src/init.cpp:None in 4ded13c538 outdated
     453 | @@ -454,6 +454,10 @@ bool AppInit2()
     454 |                  SetLimited(net);
     455 |          }
     456 |      }
     457 | +#if defined(USE_IPV6) && ! USE_IPV6
    


    sipa commented at 4:54 PM on June 8, 2012:

    Shouldn't this be !defined(USE_IPV6) || !USE_IPV6 ?


    luke-jr commented at 5:31 PM on June 8, 2012:

    If USE_IPV6 is not defined, then there's no support compiled in to disable.


    sipa commented at 8:44 PM on June 8, 2012:

    Right.

  3. jgarzik commented at 5:21 PM on June 8, 2012: contributor

    IPv6 support should be enabled by default, disabled by necessity.

  4. luke-jr commented at 5:31 PM on June 8, 2012: member

    @jgarzik That's what this does...

  5. sipa commented at 8:47 PM on June 8, 2012: member

    What is the practical difference between USE_IPV6=0 and USE_IPV6=-? One compiles it in, but leaves no way to use it, the other just doesn't compile it in.

  6. luke-jr commented at 8:57 PM on June 8, 2012: member

    -onlynet=ipv6 should work, no?

  7. sipa commented at 9:04 PM on June 8, 2012: member

    If you call SetLimited(NET_IPV6) explicitly, -onlynet=ipv6 will just disable all other networks, and there won't be any network left.

  8. luke-jr commented at 9:38 PM on June 8, 2012: member

    That's why it's in an 'else' clause

  9. sipa commented at 9:47 PM on June 8, 2012: member

    Oops, missed that in the diff. ACK.

  10. luke-jr commented at 3:46 PM on June 22, 2012: member

    Found and fixed some build bugs:

    1. Omitting USE_IPV6 in Bitcoin-Qt effectively disabled it
    2. The preprocessor might evaluate the right-hand side of && even if the left hand side is false, so complained if USE_IPV6 was undefined
  11. jgarzik commented at 5:08 PM on August 1, 2012: contributor

    weak ACK. Would prefer a better system for including and overriding USE_FOO defaults. Some build systems look for a file "makefile.local" or "makefile.cfg" or whatever. If it exists, read it and use it to adjust the defaults.

  12. luke-jr commented at 5:13 PM on August 1, 2012: member

    GNUmakefile can be used for that purpose (I do this).

  13. Diapolo commented at 5:53 PM on August 1, 2012: none

    Would be nice to not introduce something that does not work on Windows or makes building even harder to do @GNUmakefile ;).

  14. luke-jr commented at 5:54 PM on August 1, 2012: member

    @Diapolo GNUmakefile is more of an out-of-tree config thing. Windows has .BAT files :P

  15. BitcoinPullTester commented at 1:40 AM on August 10, 2012: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/751b8eb120375a1a045d55f267d2d93d807ab649 for binaries and test log.

  16. Make IPv6 support buildtime-optional again (defaults to enabled) e422bebbdc
  17. Bugfix: Make USE_UPNP=- work with makefile.{linux-mingw,mingw,osx} too 45beb88966
  18. Allow building with IPv6 support, but it disabled by default 9655d73f49
  19. gmaxwell commented at 9:17 PM on August 23, 2012: contributor

    ACK.

  20. gmaxwell referenced this in commit 1bcd3f26c0 on Aug 23, 2012
  21. gmaxwell merged this on Aug 23, 2012
  22. gmaxwell closed this on Aug 23, 2012

  23. Diapolo commented at 9:24 PM on August 23, 2012: none

    So with Qt, now do I need to supply "USE_IPV6=1" or is that also default for Qt ^^?

  24. luke-jr commented at 9:41 PM on August 23, 2012: member

    It's default.

  25. laanwj commented at 5:57 AM on August 24, 2012: member

    It has been default for a long time. IPv6 is not exactly experimental anymore :)

  26. suprnurd referenced this in commit 7a5943c3a2 on Dec 5, 2017
  27. lateminer referenced this in commit 72759ccd0c on Jan 22, 2019
  28. lateminer referenced this in commit 01651b6c63 on May 6, 2020
  29. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 21:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me