#NEWLINE# def unpack( self , buf ) : #NEWLINE# #INDENT# dpkt . Packet . unpack ( self , buf ) #NEWLINE# if ( self . family == 2 ) : #NEWLINE# #INDENT# self . data = ip . IP ( self . data ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . family == 33554432 ) : #NEWLINE# #INDENT# self . family = 2 #NEWLINE# self . data = ip . IP ( self . data ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . family in ( 24 , 28 , 30 ) ) : #NEWLINE# #INDENT# self . data = ip6 . IP6 ( self . data ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( buf . family > 1500 ) : #NEWLINE# #INDENT# self . data = ethernet . Ethernet ( self . data )