public class RtNetlinkNeighborMessage extends NetlinkMessage
Modifier and Type | Field and Description |
---|---|
static short |
NDA_CACHEINFO |
static short |
NDA_DST |
static short |
NDA_IFINDEX |
static short |
NDA_LLADDR |
static short |
NDA_MASTER |
static short |
NDA_PORT |
static short |
NDA_PROBES |
static short |
NDA_UNSPEC |
static short |
NDA_VLAN |
static short |
NDA_VNI |
mHeader
Modifier and Type | Method and Description |
---|---|
StructNdaCacheInfo |
getCacheInfo() |
InetAddress |
getDestination() |
byte[] |
getLinkLayerAddress() |
StructNdMsg |
getNdHeader() |
int |
getProbes() |
int |
getRequiredSpace() |
static byte[] |
newGetNeighborsRequest(int seqNo)
A convenience method to create an RTM_GETNEIGH request message.
|
static byte[] |
newNewNeighborMessage(int seqNo,
InetAddress ip,
short nudState,
int ifIndex,
byte[] llAddr)
A convenience method to create an RTM_NEWNEIGH message, to modify
the kernel's state information for a specific neighbor.
|
void |
pack(ByteBuffer byteBuffer) |
static RtNetlinkNeighborMessage |
parse(StructNlMsgHdr header,
ByteBuffer byteBuffer) |
String |
toString()
Returns a string representation of the object.
|
getHeader, parse
public static final short NDA_UNSPEC
public static final short NDA_DST
public static final short NDA_LLADDR
public static final short NDA_CACHEINFO
public static final short NDA_PROBES
public static final short NDA_VLAN
public static final short NDA_PORT
public static final short NDA_VNI
public static final short NDA_IFINDEX
public static final short NDA_MASTER
public static RtNetlinkNeighborMessage parse(StructNlMsgHdr header, ByteBuffer byteBuffer)
public static byte[] newGetNeighborsRequest(int seqNo)
public static byte[] newNewNeighborMessage(int seqNo, InetAddress ip, short nudState, int ifIndex, byte[] llAddr)
public StructNdMsg getNdHeader()
public InetAddress getDestination()
public byte[] getLinkLayerAddress()
public int getProbes()
public StructNdaCacheInfo getCacheInfo()
public int getRequiredSpace()
public void pack(ByteBuffer byteBuffer)
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString
in class NetlinkMessage