public class PIMJoinPrune extends BasePacket
parent, payload| Constructor and Description |
|---|
PIMJoinPrune() |
| Modifier and Type | Method and Description |
|---|---|
void |
addJoin(java.lang.String saddr,
java.lang.String gaddr)
Add a join given strings represending the source and group addresses.
|
void |
addJoinPrune(IpPrefix spfx,
IpPrefix gpfx,
boolean join)
Add the specified S, G to the join field.
|
void |
addJoinPrune(java.lang.String saddr,
java.lang.String gaddr,
boolean join)
Add the specified s,g to join field.
|
void |
addPrune(java.lang.String saddr,
java.lang.String gaddr)
Add a prune given strings represending the source and group addresses.
|
static Deserializer<PIMJoinPrune> |
deserializer()
Return the J/P deserializer function.
|
short |
getHoldTime()
Get the J/P hold time.
|
java.util.Collection<PIMJoinPruneGroup> |
getJoinPrunes()
Get the JoinPrune Group with all the joins and prunes.
|
PIMAddrUnicast |
getUpstreamAddr()
Get the upstreamAddr for this J/P request.
|
byte[] |
serialize()
Sets all payloads parent packet if applicable, then serializes this
packet and all payloads.
|
void |
setHoldTime(short holdTime)
Set the J/P holdtime in seconds.
|
void |
setUpstreamAddr(PIMAddrUnicast upstr)
Set the upstream address of this PIM J/P request.
|
java.lang.String |
toString() |
clone, equals, getParent, getPayload, hashCode, resetChecksum, setParent, setPayloadpublic short getHoldTime()
public void setHoldTime(short holdTime)
holdTime - return the holdtime.public PIMAddrUnicast getUpstreamAddr()
public void setUpstreamAddr(PIMAddrUnicast upstr)
upstr - the PIM Upstream unicast addresspublic java.util.Collection<PIMJoinPruneGroup> getJoinPrunes()
public void addJoinPrune(java.lang.String saddr,
java.lang.String gaddr,
boolean join)
saddr - the source address of the routegaddr - the group address of the routejoin - true for a join, false for a prune.public void addJoinPrune(IpPrefix spfx, IpPrefix gpfx, boolean join)
spfx - the source prefix of the routegpfx - the group prefix of the routejoin - true for join, false for prunepublic void addJoin(java.lang.String saddr,
java.lang.String gaddr)
saddr - source addressgaddr - group addresspublic void addPrune(java.lang.String saddr,
java.lang.String gaddr)
saddr - source addressgaddr - group addresspublic byte[] serialize()
public static Deserializer<PIMJoinPrune> deserializer()
public java.lang.String toString()
toString in class java.lang.Object