Beispiel #1
0
 def packFlags(self):
     '''
     Packs all the flag fields into a single two char hex string
     '''
     values = []
     for field in raeting.PACKET_FLAG_FIELDS:
         values.append(1 if self.packet.data.get(field, 0) else 0)
     return packByte(fmt='11111111', fields=values)
Beispiel #2
0
 def packFlags(self):
     '''
     Packs all the flag fields into a single two char hex string
     '''
     values = []
     for field in raeting.PACKET_FLAG_FIELDS:
         values.append(1 if self.packet.data.get(field, 0) else 0)
     return packByte(format='11111111', fields=values)