public class NeighborSolicitation extends BasePacket
| Modifier and Type | Field and Description | 
|---|---|
static byte | 
HEADER_LENGTH  | 
protected static byte | 
NDP_HOP_LIMIT  | 
protected static byte | 
RESERVED_CODE  | 
protected byte[] | 
targetAddress  | 
parent, payload| Constructor and Description | 
|---|
NeighborSolicitation()  | 
| Modifier and Type | Method and Description | 
|---|---|
NeighborSolicitation | 
addOption(byte type,
         byte[] data)
Adds a Neighbor Discovery Protocol packet option. 
 | 
static Ethernet | 
buildNdpSolicit(Ip6Address targetIp,
               Ip6Address sourceIp,
               Ip6Address destinationIp,
               MacAddress sourceMac,
               MacAddress destinationMac,
               VlanId vlan)
Builds a NDP solicitation using the supplied parameters. 
 | 
static Deserializer<NeighborSolicitation> | 
deserializer()
Deserializer function for neighbor solicitation packets. 
 | 
boolean | 
equals(Object obj)  | 
List<NeighborDiscoveryOptions.Option> | 
getOptions()
Gets the Neighbor Discovery Protocol packet options. 
 | 
byte[] | 
getTargetAddress()
Gets target address. 
 | 
int | 
hashCode()  | 
byte[] | 
serialize()
Sets all payloads parent packet if applicable, then serializes this
 packet and all payloads. 
 | 
NeighborSolicitation | 
setTargetAddress(byte[] targetAddress)
Sets target address. 
 | 
String | 
toString()  | 
clone, getParent, getPayload, resetChecksum, setParent, setPayloadpublic static final byte HEADER_LENGTH
protected static final byte NDP_HOP_LIMIT
protected static final byte RESERVED_CODE
protected byte[] targetAddress
public byte[] getTargetAddress()
public NeighborSolicitation setTargetAddress(byte[] targetAddress)
targetAddress - the target IPv6 address to setpublic List<NeighborDiscoveryOptions.Option> getOptions()
public NeighborSolicitation addOption(byte type, byte[] data)
type - the option typedata - the option datapublic byte[] serialize()
IPacketpublic int hashCode()
hashCode in class BasePacketpublic boolean equals(Object obj)
equals in class BasePacketpublic static Deserializer<NeighborSolicitation> deserializer()
public static Ethernet buildNdpSolicit(Ip6Address targetIp, Ip6Address sourceIp, Ip6Address destinationIp, MacAddress sourceMac, MacAddress destinationMac, VlanId vlan)
targetIp - the target ipsourceIp - the source ipdestinationIp - the destination ipsourceMac - the source mac addressdestinationMac - the destination mac addressvlan - the vlan id