Beispiel #1
0
 def __init__(self, packet):
   self._packet = {
     "hex": packet,
     "bin": h2b(packet),
   }
   self._sport = self._get_subpacket("sport")
   self._dport = self._get_subpacket("dport")
Beispiel #2
0
 def __init__(self, packet, encapsulate=None):
   self._packet = {
     "hex": packet,
     "bin": h2b(packet),
   }
   self._encapsulated = encapsulate