def parseIsisMsg(self, plen, pdata, verbose=1, level=0): rv = { "T": MSG_TYPES["PROTOCOL_ISIS"], "ST": 0L, "L": plen, "H": { "TIME": 0L }, "V": {} } rv["V"].update(isis.parseIsisMsg(plen, pdata, verbose, level)) return rv
def parseIsis2Msg(self, plen, pdata, verbose=1, level=0): rv = { "T": MSG_TYPES["PROTOCOL_ISIS2"], "ST": 0L, "L": plen, "H": { "TIME": 0L }, "V": {} } (ts_frac, ) = struct.unpack(">L", pdata[:ISIS2_SUBTYPE_HDR_LEN]) rv["H"]["TIME"] = ts_frac*0.000001 rv["V"].update(isis.parseIsisMsg(plen, pdata[ISIS2_SUBTYPE_HDR_LEN:], verbose, level)) return rv