public class MACAddressNetwork extends AddressNetwork<MACAddressSegment>
| Modifier and Type | Class and Description |
|---|---|
class |
MACAddressNetwork.MACAddressCreator |
AddressNetwork.AddressSegmentCreator<S extends AddressSegment>, AddressNetwork.HostIdentifierStringGenerator<T extends HostIdentifierString>, AddressNetwork.PrefixConfiguration| Constructor and Description |
|---|
MACAddressNetwork() |
| Modifier and Type | Method and Description |
|---|---|
MACAddressNetwork.MACAddressCreator |
getAddressCreator() |
static AddressNetwork.PrefixConfiguration |
getDefaultPrefixConfiguration()
Gets the default prefix configuration used by this network.
|
AddressNetwork.PrefixConfiguration |
getPrefixConfiguration()
This method determines the prefix configuration in use by this network.
|
static void |
setDefaultPrefixConfiguration(AddressNetwork.PrefixConfiguration config)
Sets the default prefix configuration used by this network.
|
clearCachespublic MACAddressNetwork.MACAddressCreator getAddressCreator()
getAddressCreator in class AddressNetwork<MACAddressSegment>public AddressNetwork.PrefixConfiguration getPrefixConfiguration()
AddressNetworkThe prefix configuration determines whether a prefixed address like 1.2.0.0/16 results in a subnet block (ie 1.2.*.*) or just a single address (1.2.0.0) with a prefix length.
If you wish to change the default behaviour, you can either call inet.ipaddr.ipv4.IPv4AddressNetwork#setDefaultPrefixConfiguration(PrefixConfiguration),
or inet.ipaddr.ipv6.IPv6AddressNetwork#setDefaultPrefixConfiguration(PrefixConfiguration) or you can override this method in your own network and use your own network for your addresses.
getPrefixConfiguration in class AddressNetwork<MACAddressSegment>AddressNetwork.PrefixConfigurationpublic static void setDefaultPrefixConfiguration(AddressNetwork.PrefixConfiguration config)
getDefaultPrefixConfiguration(),
getPrefixConfiguration(),
PrefixConfigurationpublic static AddressNetwork.PrefixConfiguration getDefaultPrefixConfiguration()
AddressNetwork.getDefaultPrefixConfiguration(),
PrefixConfiguration