DnsOptEcsRecord implementation.
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | DefaultDnsOptEcsRecord(int
the suggested max payload size in bytes maxPayloadSize, int the extended rcode extendedRcode, int the version version, int the prefix length srcPrefixLength, byte[] the bytes of the address)InetAddress to useCreates a new instance. |
| public | DefaultDnsOptEcsRecord(int
the suggested max payload size in bytes maxPayloadSize, int the prefix length srcPrefixLength, byte[] the bytes of the address)InetAddress to useCreates a new instance. |
| public | DefaultDnsOptEcsRecord(int
the suggested max payload size in bytes maxPayloadSize, InternetProtocolFamily the protocolFamily)InternetProtocolFamily to use. This should be the same as the one used to
send the query.Creates a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | address()
Implements io. InetAddress to use.
|
| public int | scopePrefixLength()
Implements io. |
| public int | sourcePrefixLength()
Implements io. |
| public String | toString()
Overrides io. |
| private static byte[] |
| address | back to summary |
|---|---|
| private final byte[] address | |
| srcPrefixLength | back to summary |
|---|---|
| private final int srcPrefixLength | |
| DefaultDnsOptEcsRecord | back to summary |
|---|---|
| public DefaultDnsOptEcsRecord(int maxPayloadSize, int extendedRcode, int version, int srcPrefixLength, byte[] address) Creates a new instance.
| |
| DefaultDnsOptEcsRecord | back to summary |
|---|---|
| public DefaultDnsOptEcsRecord(int maxPayloadSize, int srcPrefixLength, byte[] address) Creates a new instance.
| |
| DefaultDnsOptEcsRecord | back to summary |
|---|---|
| public DefaultDnsOptEcsRecord(int maxPayloadSize, InternetProtocolFamily protocolFamily) Creates a new instance.
| |
| address | back to summary |
|---|---|
| public byte[] address() Implements io. Doc from io. Returns the bytes of the
| |
| scopePrefixLength | back to summary |
|---|---|
| public int scopePrefixLength() Implements io. Doc from io. Returns the leftmost number of significant bits of ADDRESS that the response covers. In queries, it MUST be 0.
| |
| sourcePrefixLength | back to summary |
|---|---|
| public int sourcePrefixLength() Implements io. Doc from io. Returns the leftmost number of significant bits of ADDRESS to be used for the lookup.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides io. Doc from java. Returns a string representation of the object. | |
| verifyAddress | back to summary |
|---|---|
| private static byte[] verifyAddress(byte[] bytes) | |