public class PIMJoinPrune extends BasePacket
parent, payload| Constructor and Description | 
|---|
PIMJoinPrune()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addJoin(String saddr,
       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(String saddr,
            String gaddr,
            boolean join)
Add the specified s,g to join field. 
 | 
void | 
addPrune(String saddr,
        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. 
 | 
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. 
 | 
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 Collection<PIMJoinPruneGroup> getJoinPrunes()
public void addJoinPrune(String saddr, 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(String saddr, String gaddr)
saddr - source addressgaddr - group addresspublic void addPrune(String saddr, String gaddr)
saddr - source addressgaddr - group addresspublic byte[] serialize()
public static Deserializer<PIMJoinPrune> deserializer()