예제 #1
0
파일: packeting.py 프로젝트: techhat/raet
 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)
예제 #2
0
파일: packeting.py 프로젝트: vonion/salt
 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)