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(byte[] targetIp,
               byte[] sourceIp,
               byte[] destinationIp,
               byte[] sourceMac,
               byte[] destinationMac,
               VlanId vlan)Deprecated. 
 since 1.11.0 | 
| 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(java.lang.Object obj) | 
| java.util.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. | 
| java.lang.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 java.util.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(java.lang.Object obj)
equals in class BasePacketpublic static Deserializer<NeighborSolicitation> deserializer()
public java.lang.String toString()
toString in class java.lang.Object@Deprecated public static Ethernet buildNdpSolicit(byte[] targetIp, byte[] sourceIp, byte[] destinationIp, byte[] sourceMac, byte[] destinationMac, VlanId vlan)
targetIp - the target ipsourceIp - the source ipdestinationIp - the destination ipsourceMac - the source mac addressdestinationMac - the destination mac addressvlan - the vlan idpublic 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