public class PIM extends BasePacket
| Modifier and Type | Field and Description |
|---|---|
static byte |
ADDRESS_FAMILY_IP4 |
static byte |
ADDRESS_FAMILY_IP6 |
protected short |
checksum |
static IpAddress |
PIM_ADDRESS |
static int |
PIM_HEADER_LEN |
static Map<Byte,Deserializer<? extends IPacket>> |
PROTOCOL_DESERIALIZER_MAP |
protected byte |
reserved |
protected byte |
type |
static byte |
TYPE_ASSERT |
static byte |
TYPE_BOOTSTRAP |
static byte |
TYPE_CANDIDATE_RP_ADV |
static byte |
TYPE_GRAFT |
static byte |
TYPE_GRAFT_ACK |
static byte |
TYPE_HELLO |
static byte |
TYPE_JOIN_PRUNE_REQUEST |
static byte |
TYPE_REGISTER |
static byte |
TYPE_REGISTER_STOP |
protected byte |
version |
parent, payload| Constructor and Description |
|---|
PIM()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Deserializer<PIM> |
deserializer()
Deserializer function for IPv4 packets.
|
boolean |
equals(Object obj) |
short |
getChecksum()
Get the checksum of this packet.
|
byte |
getPimMsgType()
Return the PIM message type.
|
byte |
getReserved()
Get the reserved field.
|
byte |
getVersion()
Get the version of PIM.
|
int |
hashCode() |
byte[] |
serialize()
Serializes the packet.
|
void |
setChecksum(short checksum)
Set the checksum.
|
PIM |
setPIMType(byte type)
Set the PIM message type.
|
void |
setReserved(byte reserved)
Set the reserved field.
|
void |
setVersion(byte version)
Set the PIM version type.
|
String |
toString() |
clone, getParent, getPayload, resetChecksum, setParent, setPayloadpublic static final IpAddress PIM_ADDRESS
public static final byte TYPE_HELLO
public static final byte TYPE_REGISTER
public static final byte TYPE_REGISTER_STOP
public static final byte TYPE_JOIN_PRUNE_REQUEST
public static final byte TYPE_BOOTSTRAP
public static final byte TYPE_ASSERT
public static final byte TYPE_GRAFT
public static final byte TYPE_GRAFT_ACK
public static final byte TYPE_CANDIDATE_RP_ADV
public static final int PIM_HEADER_LEN
public static final byte ADDRESS_FAMILY_IP4
public static final byte ADDRESS_FAMILY_IP6
public static final Map<Byte,Deserializer<? extends IPacket>> PROTOCOL_DESERIALIZER_MAP
protected byte version
protected byte type
protected byte reserved
protected short checksum
public byte getPimMsgType()
public PIM setPIMType(byte type)
type - PIM message typepublic byte getVersion()
public void setVersion(byte version)
version - PIM versionpublic byte getReserved()
public void setReserved(byte reserved)
reserved - should be 0public short getChecksum()
public void setChecksum(short checksum)
checksum - the checksumpublic int hashCode()
hashCode in class BasePacketpublic boolean equals(Object obj)
equals in class BasePacketpublic byte[] serialize()
public static Deserializer<PIM> deserializer()