@staticmethod
def _generateMacro(tcpdumpBinary):
    """
            Generate the macro
            tcpdumpBinary -->
                b'{ 0x28, 0, 0, 0x0000000c },
{ 0x15, 0, 3, 0x000008...
                * decode the string to utf-8
                * replace '
'
                * adding variable name `macroString`
                * replace {} to [] (because set just keep different element)
                * execute the macroString
        """
    macroString = '( ' + tcpdumpBinary.decode('utf-8').replace('\n', ''
        ).replace('{', '[').replace('}', ']') + ')'
    macroString = eval(macroString)
    return macroString
