protostr = 'TCP'
messageidstr = binascii.hexlify(bytearray(msg.messageId))
+
+ serveridstr = 'N/A'
+ if msg.HasField('serverIdentity'):
+ serveridstr = msg.serverIdentity
+
initialrequestidstr = ''
if msg.HasField('initialRequestId'):
- initialrequestidstr = ', initial uuid: ' + binascii.hexlify(bytearray(msg.initialRequestId))
+ initialrequestidstr = ', initial uuid: %s ' % (binascii.hexlify(bytearray(msg.initialRequestId)))
requestorstr = ''
requestor = self.getRequestorSubnet(msg)
requestorId = msg.requestorId
print('[%s] %s of size %d: %s%s -> %s (%s), id: %d, uuid: %s%s '
- 'requestorid: %s deviceid: %s' % (datestr,
+ 'requestorid: %s deviceid: %s serverid: %s' % (datestr,
typestr,
msg.inBytes,
ipfromstr,
messageidstr,
initialrequestidstr,
requestorId,
- deviceId))
+ deviceId,
+ serveridstr))
def getRequestorSubnet(self, msg):
requestorstr = None