#NEWLINE# @ classmethod #NEWLINE# def parser( cls , buf ) : #NEWLINE# #INDENT# ( mtu , options , flags , sequence_number ) = struct . unpack_from ( cls . _PACK_STR , six . binary_type ( buf ) ) #NEWLINE# i_flag = ( ( flags >> 2 ) & 1 ) #NEWLINE# m_flag = ( ( flags >> 1 ) & 1 ) #NEWLINE# ms_flag = ( flags & 1 ) #NEWLINE# lsahdrs = [ ] #NEWLINE# buf = buf [ cls . _PACK_LEN : ] #NEWLINE# while buf : #NEWLINE# #INDENT# ( kwargs , buf ) = LSAHeader . parser ( buf ) #NEWLINE# lsahdrs . append ( LSAHeader ( ** kwargs ) ) #NEWLINE# #UNINDENT# return { #NEWLINE# #INDENT# 'mtu' : mtu , #NEWLINE# 'options' : options , #NEWLINE# 'i_flag' : i_flag , #NEWLINE# 'm_flag' : m_flag , #NEWLINE# 'ms_flag' : mtu , #NEWLINE# 'sequence_number' : sequence_number , #NEWLINE# 'lsa_headers' : lsahdrs , #NEWLINE# #UNINDENT# }