public static final class DefaultLispReferralRecord.ReferralRecordReader extends Object implements LispMessageReader<LispReferralRecord>
| Constructor and Description |
|---|
ReferralRecordReader() |
| Modifier and Type | Method and Description |
|---|---|
LispReferralRecord |
readFrom(io.netty.buffer.ByteBuf byteBuf)
Reads from byte buffer and de-serialize the LISP control message.
|
public LispReferralRecord readFrom(io.netty.buffer.ByteBuf byteBuf) throws LispParseError, LispReaderException, org.onlab.packet.DeserializationException
LispMessageReaderreadFrom in interface LispMessageReader<LispReferralRecord>byteBuf - byte bufferLispParseError - if the requested message cannot be parsed
as a LISP objectLispReaderException - if LISP message reader cannot process
the received messageorg.onlab.packet.DeserializationException - if an inner IP header (IPv4 or IPv6)
cannot be deserialized due to the message not match
with IP header format