[jboss-jira] [JBoss JIRA] (JGRP-2305) Get rid of need for java.net.preferIPv4Stack

Bela Ban (Jira) issues at jboss.org
Tue Oct 30 10:43:00 EDT 2018


     [ https://issues.jboss.org/browse/JGRP-2305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bela Ban updated JGRP-2305:
---------------------------
    Description: 
New address picking scheme:
* First we detect which addresses are available: IPv4 and/or IPv6 (dual-stack if both)
* When we encounter an IPv4 address:
** If dual-stack or IPv4 stack: use it
** If IPv6-only stack: use it unless it is a class D (multicast) address: then convert it to an IPv6-mapped address
* When we encounter an IPv6 address:
** If dual-stack or IPv6-only stack: use it
** Else: throw an exception (IPv6 address in an IPv4-only stack)

  was:
New address picking scheme:
* If all addresses in the config file are IPv4: use IPv4 addresses if available, else use IPv6 addresses
* If all addresses are IPv6: use IPv6
* If there is one IPv6 address: use IPv6
* If we have an IPv4 address, but the stack is not dual (but just IPv6) -> use IPv6-mapped addresses

Document the exact semantics



> Get rid of need for java.net.preferIPv4Stack
> --------------------------------------------
>
>                 Key: JGRP-2305
>                 URL: https://issues.jboss.org/browse/JGRP-2305
>             Project: JGroups
>          Issue Type: Enhancement
>            Reporter: Bela Ban
>            Assignee: Bela Ban
>            Priority: Major
>             Fix For: 4.0.16
>
>
> New address picking scheme:
> * First we detect which addresses are available: IPv4 and/or IPv6 (dual-stack if both)
> * When we encounter an IPv4 address:
> ** If dual-stack or IPv4 stack: use it
> ** If IPv6-only stack: use it unless it is a class D (multicast) address: then convert it to an IPv6-mapped address
> * When we encounter an IPv6 address:
> ** If dual-stack or IPv6-only stack: use it
> ** Else: throw an exception (IPv6 address in an IPv4-only stack)



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list