Package org.onlab.packet.pim
Class PIMHelloOption
- java.lang.Object
- 
- org.onlab.packet.pim.PIMHelloOption
 
- 
 public class PIMHelloOption extends java.lang.ObjectPIM HELLO option.
- 
- 
Field SummaryFields Modifier and Type Field Description static intDEFAULT_GENIDstatic shortDEFAULT_HOLDTIMEstatic shortDEFAULT_OVERRIDEINTERVALstatic intDEFAULT_PRIORITYstatic shortDEFAULT_PRUNEDELAYstatic shortGENID_LENGTHstatic shortHOLDTIME_LENGTHstatic intMINIMUM_OPTION_LEN_BYTESstatic shortOPT_ADDRLISTstatic shortOPT_GENIDstatic shortOPT_HOLDTIMEstatic shortOPT_PRIORITYstatic shortOPT_PRUNEDELAYstatic shortPRIORITY_LENGTHstatic shortPRUNEDELAY_LENGTH
 - 
Constructor SummaryConstructors Constructor Description PIMHelloOption()Constructs a new hello option with no fields set.PIMHelloOption(short type)Set a PIM Hello option by type.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PIMHelloOptioncreate(short type, short length, java.nio.ByteBuffer value)Creates a new PIM Hello option with the specified values.static PIMHelloOptioncreateGenID(int genId)Creates a new generation ID option with a particular generation ID.static PIMHelloOptioncreateHoldTime(short holdTime)Creates a new hold time option.static PIMHelloOptioncreatePriority(int priority)Creates a new priority option.static PIMHelloOptioncreatePruneDelay(short propagationDelay, short overrideInterval)Creates a new LAN Prune Delay option.static PIMHelloOptiondeserialize(java.nio.ByteBuffer bb)shortgetOptLength()shortgetOptType()byte[]getValue()byte[]serialize()voidsetOptLength(short len)voidsetOptType(short type)voidsetValue(byte[] value)voidsetValue(java.nio.ByteBuffer bb)java.lang.StringtoString()
 
- 
- 
- 
Field Detail- 
OPT_HOLDTIMEpublic static final short OPT_HOLDTIME - See Also:
- Constant Field Values
 
 - 
HOLDTIME_LENGTHpublic static final short HOLDTIME_LENGTH - See Also:
- Constant Field Values
 
 - 
DEFAULT_HOLDTIMEpublic static final short DEFAULT_HOLDTIME - See Also:
- Constant Field Values
 
 - 
OPT_PRUNEDELAYpublic static final short OPT_PRUNEDELAY - See Also:
- Constant Field Values
 
 - 
PRUNEDELAY_LENGTHpublic static final short PRUNEDELAY_LENGTH - See Also:
- Constant Field Values
 
 - 
DEFAULT_PRUNEDELAYpublic static final short DEFAULT_PRUNEDELAY - See Also:
- Constant Field Values
 
 - 
DEFAULT_OVERRIDEINTERVALpublic static final short DEFAULT_OVERRIDEINTERVAL - See Also:
- Constant Field Values
 
 - 
OPT_PRIORITYpublic static final short OPT_PRIORITY - See Also:
- Constant Field Values
 
 - 
PRIORITY_LENGTHpublic static final short PRIORITY_LENGTH - See Also:
- Constant Field Values
 
 - 
DEFAULT_PRIORITYpublic static final int DEFAULT_PRIORITY - See Also:
- Constant Field Values
 
 - 
OPT_GENIDpublic static final short OPT_GENID - See Also:
- Constant Field Values
 
 - 
GENID_LENGTHpublic static final short GENID_LENGTH - See Also:
- Constant Field Values
 
 - 
DEFAULT_GENIDpublic static final int DEFAULT_GENID - See Also:
- Constant Field Values
 
 - 
OPT_ADDRLISTpublic static final short OPT_ADDRLIST - See Also:
- Constant Field Values
 
 - 
MINIMUM_OPTION_LEN_BYTESpublic static final int MINIMUM_OPTION_LEN_BYTES - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
PIMHelloOptionpublic PIMHelloOption() Constructs a new hello option with no fields set.
 - 
PIMHelloOptionpublic PIMHelloOption(short type) Set a PIM Hello option by type. The length and default value of the type will be auto filled in by default.- Parameters:
- type- hello option type
 
 
- 
 - 
Method Detail- 
setOptTypepublic void setOptType(short type) 
 - 
getOptTypepublic short getOptType() 
 - 
setOptLengthpublic void setOptLength(short len) 
 - 
getOptLengthpublic short getOptLength() 
 - 
setValuepublic void setValue(java.nio.ByteBuffer bb) 
 - 
setValuepublic void setValue(byte[] value) 
 - 
getValuepublic byte[] getValue() 
 - 
createpublic static PIMHelloOption create(short type, short length, java.nio.ByteBuffer value) Creates a new PIM Hello option with the specified values.- Parameters:
- type- hello option type
- length- option length
- value- option value
- Returns:
- new PIM Hello option
 
 - 
createPrioritypublic static PIMHelloOption createPriority(int priority) Creates a new priority option.- Parameters:
- priority- priority
- Returns:
- priority option
 
 - 
createHoldTimepublic static PIMHelloOption createHoldTime(short holdTime) Creates a new hold time option.- Parameters:
- holdTime- hold time
- Returns:
- hold time option
 
 - 
createGenIDpublic static PIMHelloOption createGenID(int genId) Creates a new generation ID option with a particular generation ID.- Parameters:
- genId- generation ID value
- Returns:
- generation ID option
 
 - 
createPruneDelaypublic static PIMHelloOption createPruneDelay(short propagationDelay, short overrideInterval) Creates a new LAN Prune Delay option.- Parameters:
- propagationDelay- prune delay
- overrideInterval- override interval
- Returns:
- prune delay option
 
 - 
deserializepublic static PIMHelloOption deserialize(java.nio.ByteBuffer bb) throws DeserializationException - Throws:
- DeserializationException
 
 - 
serializepublic byte[] serialize() 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-