示例#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)