org.xbill.DNS
public class ClientSubnetOption extends EDNSOption
OPTRecord
EDNSOption.Code
Constructor and Description |
---|
ClientSubnetOption(int sourceNetmask,
java.net.InetAddress address)
Construct a Client Subnet option with scope netmask set to 0.
|
ClientSubnetOption(int sourceNetmask,
int scopeNetmask,
java.net.InetAddress address)
Construct a Client Subnet option.
|
Modifier and Type | Method and Description |
---|---|
java.net.InetAddress |
getAddress()
Returns the IP address of the client.
|
int |
getFamily()
Returns the family of the network address.
|
int |
getScopeNetmask()
Returns the scope netmask.
|
int |
getSourceNetmask()
Returns the source netmask.
|
public ClientSubnetOption(int sourceNetmask, int scopeNetmask, java.net.InetAddress address)
sourceNetmask
- The length of the netmask pertaining to the query.
In replies, it mirrors the same value as in the requests.scopeNetmask
- The length of the netmask pertaining to the reply.
In requests, it MUST be set to 0. In responses, this may or may not match
the source netmask.address
- The address of the client.public ClientSubnetOption(int sourceNetmask, java.net.InetAddress address)
sourceNetmask
- The length of the netmask pertaining to the query.
In replies, it mirrors the same value as in the requests.address
- The address of the client.ClientSubnetOption
public int getFamily()
public int getSourceNetmask()
public int getScopeNetmask()
public java.net.InetAddress getAddress()