EthernetAddress.constructMulticastAddress Method

Definition

Overloads

constructMulticastAddress()

Factory method that can be used to construct a random multicast address; to be used in cases where there is no "real" ethernet address to use. Address to generate should be a multicase address to avoid accidental collision with real manufacturer-assigned MAC addresses.

Internally a SecureRandom instance is used for generating random number to base address on.

constructMulticastAddress(Random rnd)

Factory method that can be used to construct a random multicast address; to be used in cases where there is no "real" ethernet address to use. Address to generate should be a multicase address to avoid accidental collision with real manufacturer-assigned MAC addresses.

Address is created using specified random number generator.

constructMulticastAddress()

Factory method that can be used to construct a random multicast address; to be used in cases where there is no "real" ethernet address to use. Address to generate should be a multicase address to avoid accidental collision with real manufacturer-assigned MAC addresses.

Internally a SecureRandom instance is used for generating random number to base address on.

public static EthernetAddress constructMulticastAddress()

Returns

constructMulticastAddress(Random rnd)

Factory method that can be used to construct a random multicast address; to be used in cases where there is no "real" ethernet address to use. Address to generate should be a multicase address to avoid accidental collision with real manufacturer-assigned MAC addresses.

Address is created using specified random number generator.

public static EthernetAddress constructMulticastAddress(Random rnd)

Parameters

rnd
java.util.Random

Returns

Applies to