def rawData(self):
    if (self.type == NETBIOS_SESSION_MESSAGE):
        data = (pack('!BBH', self.type, (self.length >> 16), (self.length & 65535)) + self._trailer)
    else:
        data = (pack('!BBH', self.type, self.flags, self.length) + self._trailer)
    return data
def rawData(self):
    if (self.type == NETBIOS_SESSION_MESSAGE):
        data = (pack('!BBH', self.type, (self.length >> 16), (self.length & 65535)) + self._trailer)
    else:
        data = (pack('!BBH', self.type, self.flags, self.length) + self._trailer)
    return data