import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
+import org.opendaylight.controller.sal.utils.HexEncode;
import org.opendaylight.controller.sal.utils.NetUtils;
/**
int lldpOffset = bitOffset; // LLDP start
int lldpSize = size; // LLDP size
+ if (logger.isTraceEnabled()) {
+ logger.trace("LLDP: {} (offset {} bitsize {})", new Object[] {
+ HexEncode.bytesToHexString(data), lldpOffset, lldpSize });
+ }
/*
* Deserialize the TLVs until we reach the end of the packet
*/
throw new PacketException(e.getMessage());
}
+ if (logger.isTraceEnabled()) {
+ logger.trace("LLDP: serialized: {}",
+ HexEncode.bytesToHexString(serializedBytes));
+ }
return serializedBytes;
}
/**
* Returns the size of LLDP packet in bytes
- *
+ *
* @return int - LLDP Packet size in bytes
*/
private int getLLDPPacketLength() {