diff options
| author | zhangyang <[email protected]> | 2024-04-25 01:19:44 -0400 |
|---|---|---|
| committer | zhangyang <[email protected]> | 2024-04-25 01:19:44 -0400 |
| commit | 33a29d8a0296709305b28fa69d513e3caa417b87 (patch) | |
| tree | ba0f6e50476664cdc648d42abf1b31bd0a9b7295 | |
| parent | 72414e0df22b7c54750c8bfdf45c1bc9ca5dc149 (diff) | |
demo2
43 files changed, 1187 insertions, 2808 deletions
diff --git a/.vscode/settings.json b/.vscode/settings.json index 59872fe..a22c245 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,7 +2,10 @@ "files.associations": { "maat.h": "c", "assert.h": "c", - "string.h": "c" + "string.h": "c", + "inet.h": "c", + "stdio.h": "c", + "stdint.h": "c" }, "C_Cpp.default.compilerPath": "/usr/bin/gcc" }
\ No newline at end of file diff --git a/build/.cmake/api/v1/reply/cache-v2-5eb54e131440cabf69b9.json b/build/.cmake/api/v1/reply/cache-v2-5eb54e131440cabf69b9.json deleted file mode 100644 index 0d26d95..0000000 --- a/build/.cmake/api/v1/reply/cache-v2-5eb54e131440cabf69b9.json +++ /dev/null @@ -1,1343 +0,0 @@ -{ - "entries" : - [ - { - "name" : "CMAKE_ADDR2LINE", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Path to a program." - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/addr2line" - }, - { - "name" : "CMAKE_AR", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Path to a program." - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/ar" - }, - { - "name" : "CMAKE_BUILD_TYPE", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "No help, variable specified on the command line." - } - ], - "type" : "STRING", - "value" : "Debug" - }, - { - "name" : "CMAKE_CACHEFILE_DIR", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "This is the directory where this CMakeCache.txt was created" - } - ], - "type" : "INTERNAL", - "value" : "/root/Git/demo/build" - }, - { - "name" : "CMAKE_CACHE_MAJOR_VERSION", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Major version of cmake used to create the current loaded cache" - } - ], - "type" : "INTERNAL", - "value" : "3" - }, - { - "name" : "CMAKE_CACHE_MINOR_VERSION", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Minor version of cmake used to create the current loaded cache" - } - ], - "type" : "INTERNAL", - "value" : "26" - }, - { - "name" : "CMAKE_CACHE_PATCH_VERSION", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Patch version of cmake used to create the current loaded cache" - } - ], - "type" : "INTERNAL", - "value" : "5" - }, - { - "name" : "CMAKE_COLOR_MAKEFILE", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Enable/Disable color output during build." - } - ], - "type" : "BOOL", - "value" : "ON" - }, - { - "name" : "CMAKE_COMMAND", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Path to CMake executable." - } - ], - "type" : "INTERNAL", - "value" : "/usr/bin/cmake" - }, - { - "name" : "CMAKE_CPACK_COMMAND", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Path to cpack program executable." - } - ], - "type" : "INTERNAL", - "value" : "/usr/bin/cpack" - }, - { - "name" : "CMAKE_CTEST_COMMAND", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Path to ctest program executable." - } - ], - "type" : "INTERNAL", - "value" : "/usr/bin/ctest" - }, - { - "name" : "CMAKE_CXX_COMPILER", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "CXX compiler" - } - ], - "type" : "STRING", - "value" : "/usr/bin/g++" - }, - { - "name" : "CMAKE_CXX_COMPILER_AR", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "A wrapper around 'ar' adding the appropriate '--plugin' option for the GCC compiler" - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/gcc-ar" - }, - { - "name" : "CMAKE_CXX_COMPILER_RANLIB", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "A wrapper around 'ranlib' adding the appropriate '--plugin' option for the GCC compiler" - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/gcc-ranlib" - }, - { - "name" : "CMAKE_CXX_FLAGS", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the CXX compiler during all build types." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_CXX_FLAGS_DEBUG", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the CXX compiler during DEBUG builds." - } - ], - "type" : "STRING", - "value" : "-g" - }, - { - "name" : "CMAKE_CXX_FLAGS_MINSIZEREL", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the CXX compiler during MINSIZEREL builds." - } - ], - "type" : "STRING", - "value" : "-Os -DNDEBUG" - }, - { - "name" : "CMAKE_CXX_FLAGS_RELEASE", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the CXX compiler during RELEASE builds." - } - ], - "type" : "STRING", - "value" : "-O3 -DNDEBUG" - }, - { - "name" : "CMAKE_CXX_FLAGS_RELWITHDEBINFO", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the CXX compiler during RELWITHDEBINFO builds." - } - ], - "type" : "STRING", - "value" : "-O2 -g -DNDEBUG" - }, - { - "name" : "CMAKE_C_COMPILER", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "C compiler" - } - ], - "type" : "STRING", - "value" : "/usr/bin/gcc" - }, - { - "name" : "CMAKE_C_COMPILER_AR", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "A wrapper around 'ar' adding the appropriate '--plugin' option for the GCC compiler" - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/gcc-ar" - }, - { - "name" : "CMAKE_C_COMPILER_RANLIB", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "A wrapper around 'ranlib' adding the appropriate '--plugin' option for the GCC compiler" - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/gcc-ranlib" - }, - { - "name" : "CMAKE_C_FLAGS", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the C compiler during all build types." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_C_FLAGS_DEBUG", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the C compiler during DEBUG builds." - } - ], - "type" : "STRING", - "value" : "-g" - }, - { - "name" : "CMAKE_C_FLAGS_MINSIZEREL", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the C compiler during MINSIZEREL builds." - } - ], - "type" : "STRING", - "value" : "-Os -DNDEBUG" - }, - { - "name" : "CMAKE_C_FLAGS_RELEASE", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the C compiler during RELEASE builds." - } - ], - "type" : "STRING", - "value" : "-O3 -DNDEBUG" - }, - { - "name" : "CMAKE_C_FLAGS_RELWITHDEBINFO", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the C compiler during RELWITHDEBINFO builds." - } - ], - "type" : "STRING", - "value" : "-O2 -g -DNDEBUG" - }, - { - "name" : "CMAKE_DLLTOOL", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Path to a program." - } - ], - "type" : "FILEPATH", - "value" : "CMAKE_DLLTOOL-NOTFOUND" - }, - { - "name" : "CMAKE_EDIT_COMMAND", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Path to cache edit program executable." - } - ], - "type" : "INTERNAL", - "value" : "/usr/bin/ccmake" - }, - { - "name" : "CMAKE_EXECUTABLE_FORMAT", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Executable file format" - } - ], - "type" : "INTERNAL", - "value" : "ELF" - }, - { - "name" : "CMAKE_EXE_LINKER_FLAGS", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during all build types." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_EXE_LINKER_FLAGS_DEBUG", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during DEBUG builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_EXE_LINKER_FLAGS_MINSIZEREL", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during MINSIZEREL builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_EXE_LINKER_FLAGS_RELEASE", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during RELEASE builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during RELWITHDEBINFO builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_EXPORT_COMPILE_COMMANDS", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "No help, variable specified on the command line." - } - ], - "type" : "BOOL", - "value" : "TRUE" - }, - { - "name" : "CMAKE_EXTRA_GENERATOR", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Name of external makefile project generator." - } - ], - "type" : "INTERNAL", - "value" : "" - }, - { - "name" : "CMAKE_FIND_PACKAGE_REDIRECTS_DIR", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake." - } - ], - "type" : "STATIC", - "value" : "/root/Git/demo/build/CMakeFiles/pkgRedirects" - }, - { - "name" : "CMAKE_GENERATOR", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Name of generator." - } - ], - "type" : "INTERNAL", - "value" : "Unix Makefiles" - }, - { - "name" : "CMAKE_GENERATOR_INSTANCE", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Generator instance identifier." - } - ], - "type" : "INTERNAL", - "value" : "" - }, - { - "name" : "CMAKE_GENERATOR_PLATFORM", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Name of generator platform." - } - ], - "type" : "INTERNAL", - "value" : "" - }, - { - "name" : "CMAKE_GENERATOR_TOOLSET", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Name of generator toolset." - } - ], - "type" : "INTERNAL", - "value" : "" - }, - { - "name" : "CMAKE_HOME_DIRECTORY", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Source directory with the top level CMakeLists.txt file for this project" - } - ], - "type" : "INTERNAL", - "value" : "/root/Git/demo" - }, - { - "name" : "CMAKE_INSTALL_PREFIX", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Install path prefix, prepended onto install directories." - } - ], - "type" : "PATH", - "value" : "/usr/local" - }, - { - "name" : "CMAKE_INSTALL_SO_NO_EXE", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Install .so files without execute permission." - } - ], - "type" : "INTERNAL", - "value" : "0" - }, - { - "name" : "CMAKE_LINKER", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Path to a program." - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/ld" - }, - { - "name" : "CMAKE_MAKE_PROGRAM", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Path to a program." - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/gmake" - }, - { - "name" : "CMAKE_MODULE_LINKER_FLAGS", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of modules during all build types." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_MODULE_LINKER_FLAGS_DEBUG", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of modules during DEBUG builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of modules during MINSIZEREL builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_MODULE_LINKER_FLAGS_RELEASE", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of modules during RELEASE builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of modules during RELWITHDEBINFO builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_NM", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Path to a program." - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/nm" - }, - { - "name" : "CMAKE_NUMBER_OF_MAKEFILES", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "number of local generators" - } - ], - "type" : "INTERNAL", - "value" : "5" - }, - { - "name" : "CMAKE_OBJCOPY", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Path to a program." - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/objcopy" - }, - { - "name" : "CMAKE_OBJDUMP", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Path to a program." - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/objdump" - }, - { - "name" : "CMAKE_PLATFORM_INFO_INITIALIZED", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Platform information initialized" - } - ], - "type" : "INTERNAL", - "value" : "1" - }, - { - "name" : "CMAKE_PROJECT_DESCRIPTION", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "" - }, - { - "name" : "CMAKE_PROJECT_HOMEPAGE_URL", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "" - }, - { - "name" : "CMAKE_PROJECT_NAME", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "MyProject" - }, - { - "name" : "CMAKE_RANLIB", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Path to a program." - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/ranlib" - }, - { - "name" : "CMAKE_READELF", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Path to a program." - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/readelf" - }, - { - "name" : "CMAKE_ROOT", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Path to CMake installation." - } - ], - "type" : "INTERNAL", - "value" : "/usr/share/cmake" - }, - { - "name" : "CMAKE_SHARED_LINKER_FLAGS", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of shared libraries during all build types." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_SHARED_LINKER_FLAGS_DEBUG", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of shared libraries during DEBUG builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of shared libraries during MINSIZEREL builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_SHARED_LINKER_FLAGS_RELEASE", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of shared libraries during RELEASE builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of shared libraries during RELWITHDEBINFO builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_SKIP_INSTALL_RPATH", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "If set, runtime paths are not added when installing shared libraries, but are added when building." - } - ], - "type" : "BOOL", - "value" : "NO" - }, - { - "name" : "CMAKE_SKIP_RPATH", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "If set, runtime paths are not added when using shared libraries." - } - ], - "type" : "BOOL", - "value" : "NO" - }, - { - "name" : "CMAKE_STATIC_LINKER_FLAGS", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of static libraries during all build types." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_STATIC_LINKER_FLAGS_DEBUG", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of static libraries during DEBUG builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of static libraries during MINSIZEREL builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_STATIC_LINKER_FLAGS_RELEASE", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of static libraries during RELEASE builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of static libraries during RELWITHDEBINFO builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_STRIP", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Path to a program." - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/strip" - }, - { - "name" : "CMAKE_UNAME", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "uname command" - } - ], - "type" : "INTERNAL", - "value" : "/usr/bin/uname" - }, - { - "name" : "CMAKE_VERBOSE_MAKEFILE", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "If this value is on, makefiles will be generated without the .SILENT directive, and all commands will be echoed to the console during the make. This is useful for debugging only. With Visual Studio IDE projects all commands are done without /nologo." - } - ], - "type" : "BOOL", - "value" : "FALSE" - }, - { - "name" : "Demo1_BINARY_DIR", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "/root/Git/demo/build/demo1" - }, - { - "name" : "Demo1_IS_TOP_LEVEL", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "OFF" - }, - { - "name" : "Demo1_SOURCE_DIR", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "/root/Git/demo/demo1" - }, - { - "name" : "Demo2_BINARY_DIR", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "/root/Git/demo/build/demo2" - }, - { - "name" : "Demo2_IS_TOP_LEVEL", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "OFF" - }, - { - "name" : "Demo2_SOURCE_DIR", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "/root/Git/demo/demo2" - }, - { - "name" : "MyProject_BINARY_DIR", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "/root/Git/demo/build" - }, - { - "name" : "MyProject_IS_TOP_LEVEL", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "ON" - }, - { - "name" : "MyProject_SOURCE_DIR", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "/root/Git/demo" - }, - { - "name" : "_CMAKE_LINKER_PUSHPOP_STATE_SUPPORTED", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "linker supports push/pop state" - } - ], - "type" : "INTERNAL", - "value" : "TRUE" - }, - { - "name" : "demo3_BINARY_DIR", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "/root/Git/demo/build/demo3" - }, - { - "name" : "demo3_IS_TOP_LEVEL", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "OFF" - }, - { - "name" : "demo3_SOURCE_DIR", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "/root/Git/demo/demo3" - }, - { - "name" : "maat_BINARY_DIR", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "/root/Git/demo/build/matt" - }, - { - "name" : "maat_IS_TOP_LEVEL", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "OFF" - }, - { - "name" : "maat_SOURCE_DIR", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "/root/Git/demo/matt" - } - ], - "kind" : "cache", - "version" : - { - "major" : 2, - "minor" : 0 - } -} diff --git a/build/.cmake/api/v1/reply/cmakeFiles-v1-512c387fe962de56c233.json b/build/.cmake/api/v1/reply/cmakeFiles-v1-512c387fe962de56c233.json deleted file mode 100644 index 454cba6..0000000 --- a/build/.cmake/api/v1/reply/cmakeFiles-v1-512c387fe962de56c233.json +++ /dev/null @@ -1,766 +0,0 @@ -{ - "inputs" : - [ - { - "path" : "CMakeLists.txt" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeDetermineSystem.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeSystem.cmake.in" - }, - { - "isGenerated" : true, - "path" : "build/CMakeFiles/3.26.5/CMakeSystem.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeUnixFindMake.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeSystemSpecificInitialize.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeDetermineCCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeDetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeCompilerIdDetection.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/ADSP-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/ARMCC-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/ARMClang-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/AppleClang-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Clang-DetermineCompilerInternal.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Borland-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Bruce-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Clang-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Clang-DetermineCompilerInternal.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Compaq-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Cray-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Embarcadero-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Fujitsu-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/GHS-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/GNU-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/HP-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/IAR-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/IBMClang-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Intel-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/LCC-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/MSVC-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/NVHPC-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/NVIDIA-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/PGI-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/PathScale-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/SCO-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/SDCC-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/SunPro-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/TI-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Tasking-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Watcom-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/XL-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/XLClang-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/zOS-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeFindBinUtils.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/GNU-FindBinUtils.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeCCompiler.cmake.in" - }, - { - "isGenerated" : true, - "path" : "build/CMakeFiles/3.26.5/CMakeCCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeDetermineCXXCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeDetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Platform/Linux-Determine-CXX.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeCompilerIdDetection.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/ADSP-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/ARMCC-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/ARMClang-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/AppleClang-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Clang-DetermineCompilerInternal.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Borland-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Clang-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Clang-DetermineCompilerInternal.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Cray-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Embarcadero-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Fujitsu-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/GHS-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/HP-CXX-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/IAR-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/IBMClang-CXX-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Intel-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/LCC-CXX-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/MSVC-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/NVHPC-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/NVIDIA-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/PGI-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/PathScale-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/SCO-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/TI-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Tasking-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/Watcom-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/XL-CXX-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/XLClang-CXX-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeFindBinUtils.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/GNU-FindBinUtils.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeCXXCompiler.cmake.in" - }, - { - "isGenerated" : true, - "path" : "build/CMakeFiles/3.26.5/CMakeCXXCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeSystemSpecificInformation.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeGenericSystem.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeInitializeConfigs.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Platform/Linux.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Platform/UnixPaths.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeCInformation.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeLanguageInformation.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/GNU-C.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/GNU.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/CMakeCommonCompilerMacros.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Platform/Linux-GNU-C.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Platform/Linux-GNU.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeCommonLanguageInclude.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeTestCCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeTestCompilerCommon.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeDetermineCompilerABI.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeParseImplicitIncludeInfo.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeParseImplicitLinkInfo.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeParseLibraryArchitecture.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeTestCompilerCommon.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeCCompilerABI.c" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeDetermineCompileFeatures.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Internal/FeatureTesting.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeCCompiler.cmake.in" - }, - { - "isGenerated" : true, - "path" : "build/CMakeFiles/3.26.5/CMakeCCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeCXXInformation.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeLanguageInformation.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/GNU-CXX.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Compiler/GNU.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Platform/Linux-GNU-CXX.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Platform/Linux-GNU.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeCommonLanguageInclude.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeTestCompilerCommon.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeDetermineCompilerABI.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeParseImplicitIncludeInfo.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeParseImplicitLinkInfo.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeParseLibraryArchitecture.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeTestCompilerCommon.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeCXXCompilerABI.cpp" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeDetermineCompileFeatures.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/Internal/FeatureTesting.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake/Modules/CMakeCXXCompiler.cmake.in" - }, - { - "isGenerated" : true, - "path" : "build/CMakeFiles/3.26.5/CMakeCXXCompiler.cmake" - }, - { - "path" : "demo1/CMakeLists.txt" - }, - { - "path" : "demo2/CMakeLists.txt" - }, - { - "path" : "demo3/CMakeLists.txt" - }, - { - "path" : "matt/CMakeLists.txt" - } - ], - "kind" : "cmakeFiles", - "paths" : - { - "build" : "/root/Git/demo/build", - "source" : "/root/Git/demo" - }, - "version" : - { - "major" : 1, - "minor" : 0 - } -} diff --git a/build/.cmake/api/v1/reply/index-2024-04-24T10-39-11-0175.json b/build/.cmake/api/v1/reply/index-2024-04-24T10-39-11-0175.json deleted file mode 100644 index 71954ff..0000000 --- a/build/.cmake/api/v1/reply/index-2024-04-24T10-39-11-0175.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "cmake" : - { - "generator" : - { - "multiConfig" : false, - "name" : "Unix Makefiles" - }, - "paths" : - { - "cmake" : "/usr/bin/cmake", - "cpack" : "/usr/bin/cpack", - "ctest" : "/usr/bin/ctest", - "root" : "/usr/share/cmake" - }, - "version" : - { - "isDirty" : false, - "major" : 3, - "minor" : 26, - "patch" : 5, - "string" : "3.26.5", - "suffix" : "" - } - }, - "objects" : - [ - { - "jsonFile" : "codemodel-v2-9d3a2fccc1a385b84bbc.json", - "kind" : "codemodel", - "version" : - { - "major" : 2, - "minor" : 5 - } - }, - { - "jsonFile" : "cache-v2-5eb54e131440cabf69b9.json", - "kind" : "cache", - "version" : - { - "major" : 2, - "minor" : 0 - } - }, - { - "jsonFile" : "cmakeFiles-v1-512c387fe962de56c233.json", - "kind" : "cmakeFiles", - "version" : - { - "major" : 1, - "minor" : 0 - } - }, - { - "jsonFile" : "toolchains-v1-0773755ddd5ae8620655.json", - "kind" : "toolchains", - "version" : - { - "major" : 1, - "minor" : 0 - } - } - ], - "reply" : - { - "client-integration-vscode" : - { - "cache-v2" : - { - "jsonFile" : "cache-v2-5eb54e131440cabf69b9.json", - "kind" : "cache", - "version" : - { - "major" : 2, - "minor" : 0 - } - }, - "cmakeFiles-v1" : - { - "jsonFile" : "cmakeFiles-v1-512c387fe962de56c233.json", - "kind" : "cmakeFiles", - "version" : - { - "major" : 1, - "minor" : 0 - } - }, - "codemodel-v2" : - { - "jsonFile" : "codemodel-v2-9d3a2fccc1a385b84bbc.json", - "kind" : "codemodel", - "version" : - { - "major" : 2, - "minor" : 5 - } - } - }, - "client-vscode" : - { - "query.json" : - { - "requests" : - [ - { - "kind" : "cache", - "version" : 2 - }, - { - "kind" : "codemodel", - "version" : 2 - }, - { - "kind" : "toolchains", - "version" : 1 - }, - { - "kind" : "cmakeFiles", - "version" : 1 - } - ], - "responses" : - [ - { - "jsonFile" : "cache-v2-5eb54e131440cabf69b9.json", - "kind" : "cache", - "version" : - { - "major" : 2, - "minor" : 0 - } - }, - { - "jsonFile" : "codemodel-v2-9d3a2fccc1a385b84bbc.json", - "kind" : "codemodel", - "version" : - { - "major" : 2, - "minor" : 5 - } - }, - { - "jsonFile" : "toolchains-v1-0773755ddd5ae8620655.json", - "kind" : "toolchains", - "version" : - { - "major" : 1, - "minor" : 0 - } - }, - { - "jsonFile" : "cmakeFiles-v1-512c387fe962de56c233.json", - "kind" : "cmakeFiles", - "version" : - { - "major" : 1, - "minor" : 0 - } - } - ] - } - } - } -} diff --git a/build/CMakeCache.txt b/build/CMakeCache.txt index 65490c0..c3ec1fe 100644 --- a/build/CMakeCache.txt +++ b/build/CMakeCache.txt @@ -26,8 +26,8 @@ CMAKE_BUILD_TYPE:STRING=Debug //Enable/Disable color output during build. CMAKE_COLOR_MAKEFILE:BOOL=ON -//CXX compiler -CMAKE_CXX_COMPILER:STRING=/usr/bin/g++ +//No help, variable specified on the command line. +CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ //A wrapper around 'ar' adding the appropriate '--plugin' option // for the GCC compiler @@ -52,8 +52,8 @@ CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG //Flags used by the CXX compiler during RELWITHDEBINFO builds. CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG -//C compiler -CMAKE_C_COMPILER:STRING=/usr/bin/gcc +//No help, variable specified on the command line. +CMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc //A wrapper around 'ar' adding the appropriate '--plugin' option // for the GCC compiler diff --git a/build/CMakeFiles/Makefile.cmake b/build/CMakeFiles/Makefile.cmake index ea43316..f34cbff 100644 --- a/build/CMakeFiles/Makefile.cmake +++ b/build/CMakeFiles/Makefile.cmake @@ -15,93 +15,18 @@ set(CMAKE_MAKEFILE_DEPENDS "/root/Git/demo/demo2/CMakeLists.txt" "/root/Git/demo/demo3/CMakeLists.txt" "/root/Git/demo/matt/CMakeLists.txt" - "/usr/share/cmake/Modules/CMakeCCompiler.cmake.in" - "/usr/share/cmake/Modules/CMakeCCompilerABI.c" "/usr/share/cmake/Modules/CMakeCInformation.cmake" - "/usr/share/cmake/Modules/CMakeCXXCompiler.cmake.in" - "/usr/share/cmake/Modules/CMakeCXXCompilerABI.cpp" "/usr/share/cmake/Modules/CMakeCXXInformation.cmake" "/usr/share/cmake/Modules/CMakeCommonLanguageInclude.cmake" - "/usr/share/cmake/Modules/CMakeCompilerIdDetection.cmake" - "/usr/share/cmake/Modules/CMakeDetermineCCompiler.cmake" - "/usr/share/cmake/Modules/CMakeDetermineCXXCompiler.cmake" - "/usr/share/cmake/Modules/CMakeDetermineCompileFeatures.cmake" - "/usr/share/cmake/Modules/CMakeDetermineCompiler.cmake" - "/usr/share/cmake/Modules/CMakeDetermineCompilerABI.cmake" - "/usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake" - "/usr/share/cmake/Modules/CMakeDetermineSystem.cmake" - "/usr/share/cmake/Modules/CMakeFindBinUtils.cmake" "/usr/share/cmake/Modules/CMakeGenericSystem.cmake" "/usr/share/cmake/Modules/CMakeInitializeConfigs.cmake" "/usr/share/cmake/Modules/CMakeLanguageInformation.cmake" - "/usr/share/cmake/Modules/CMakeParseImplicitIncludeInfo.cmake" - "/usr/share/cmake/Modules/CMakeParseImplicitLinkInfo.cmake" - "/usr/share/cmake/Modules/CMakeParseLibraryArchitecture.cmake" - "/usr/share/cmake/Modules/CMakeSystem.cmake.in" "/usr/share/cmake/Modules/CMakeSystemSpecificInformation.cmake" "/usr/share/cmake/Modules/CMakeSystemSpecificInitialize.cmake" - "/usr/share/cmake/Modules/CMakeTestCCompiler.cmake" - "/usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake" - "/usr/share/cmake/Modules/CMakeTestCompilerCommon.cmake" - "/usr/share/cmake/Modules/CMakeUnixFindMake.cmake" - "/usr/share/cmake/Modules/Compiler/ADSP-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/ARMCC-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/ARMClang-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/AppleClang-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/Borland-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/Bruce-C-DetermineCompiler.cmake" "/usr/share/cmake/Modules/Compiler/CMakeCommonCompilerMacros.cmake" - "/usr/share/cmake/Modules/Compiler/Clang-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/Clang-DetermineCompilerInternal.cmake" - "/usr/share/cmake/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/Compaq-C-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/Cray-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/Embarcadero-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/Fujitsu-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/GHS-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/GNU-C-DetermineCompiler.cmake" "/usr/share/cmake/Modules/Compiler/GNU-C.cmake" - "/usr/share/cmake/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake" "/usr/share/cmake/Modules/Compiler/GNU-CXX.cmake" - "/usr/share/cmake/Modules/Compiler/GNU-FindBinUtils.cmake" "/usr/share/cmake/Modules/Compiler/GNU.cmake" - "/usr/share/cmake/Modules/Compiler/HP-C-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/HP-CXX-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/IAR-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake" - "/usr/share/cmake/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake" - "/usr/share/cmake/Modules/Compiler/IBMClang-C-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/IBMClang-CXX-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/Intel-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/LCC-C-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/LCC-CXX-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/MSVC-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/NVHPC-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/NVIDIA-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/PGI-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/PathScale-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/SCO-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/SDCC-C-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/SunPro-C-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/TI-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/Tasking-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/Watcom-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/XL-C-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/XL-CXX-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/XLClang-C-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/XLClang-CXX-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/zOS-C-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake" - "/usr/share/cmake/Modules/Internal/FeatureTesting.cmake" - "/usr/share/cmake/Modules/Platform/Linux-Determine-CXX.cmake" "/usr/share/cmake/Modules/Platform/Linux-GNU-C.cmake" "/usr/share/cmake/Modules/Platform/Linux-GNU-CXX.cmake" "/usr/share/cmake/Modules/Platform/Linux-GNU.cmake" @@ -117,11 +42,6 @@ set(CMAKE_MAKEFILE_OUTPUTS # Byproducts of CMake generate step: set(CMAKE_MAKEFILE_PRODUCTS - "CMakeFiles/3.26.5/CMakeSystem.cmake" - "CMakeFiles/3.26.5/CMakeCCompiler.cmake" - "CMakeFiles/3.26.5/CMakeCXXCompiler.cmake" - "CMakeFiles/3.26.5/CMakeCCompiler.cmake" - "CMakeFiles/3.26.5/CMakeCXXCompiler.cmake" "CMakeFiles/CMakeDirectoryInformation.cmake" "demo1/CMakeFiles/CMakeDirectoryInformation.cmake" "demo2/CMakeFiles/CMakeDirectoryInformation.cmake" diff --git a/build/demo1/CMakeFiles/Demo1.dir/main.c.o b/build/demo1/CMakeFiles/Demo1.dir/main.c.o Binary files differindex aca75ec..2f12ec0 100644 --- a/build/demo1/CMakeFiles/Demo1.dir/main.c.o +++ b/build/demo1/CMakeFiles/Demo1.dir/main.c.o diff --git a/build/demo1/Demo1 b/build/demo1/Demo1 Binary files differindex df682c8..201879a 100755 --- a/build/demo1/Demo1 +++ b/build/demo1/Demo1 diff --git a/build/demo2/CMakeFiles/Demo2.dir/compiler_depend.make b/build/demo2/CMakeFiles/Demo2.dir/compiler_depend.make index 118c25b..ad811bc 100644 --- a/build/demo2/CMakeFiles/Demo2.dir/compiler_depend.make +++ b/build/demo2/CMakeFiles/Demo2.dir/compiler_depend.make @@ -1,2 +1,196 @@ -# Empty compiler generated dependencies file for Demo2. -# This may be replaced when dependencies are built. +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.26 + +demo2/CMakeFiles/Demo2.dir/main.c.o: /root/Git/demo/demo2/main.c \ + /usr/include/stdc-predef.h \ + /opt/MESA/include/MESA/maat.h \ + /usr/lib/gcc/x86_64-redhat-linux/8/include/stdint.h \ + /usr/include/stdint.h \ + /usr/include/bits/libc-header-start.h \ + /usr/include/features.h \ + /usr/include/sys/cdefs.h \ + /usr/include/bits/wordsize.h \ + /usr/include/bits/long-double.h \ + /usr/include/gnu/stubs.h \ + /usr/include/gnu/stubs-64.h \ + /usr/include/bits/types.h \ + /usr/include/bits/typesizes.h \ + /usr/include/bits/wchar.h \ + /usr/include/bits/stdint-intn.h \ + /usr/include/bits/stdint-uintn.h \ + /usr/include/netinet/in.h \ + /usr/include/sys/socket.h \ + /usr/include/bits/types/struct_iovec.h \ + /usr/lib/gcc/x86_64-redhat-linux/8/include/stddef.h \ + /usr/include/bits/socket.h \ + /usr/include/sys/types.h \ + /usr/include/bits/types/clock_t.h \ + /usr/include/bits/types/clockid_t.h \ + /usr/include/bits/types/time_t.h \ + /usr/include/bits/types/timer_t.h \ + /usr/include/endian.h \ + /usr/include/bits/endian.h \ + /usr/include/bits/byteswap.h \ + /usr/include/bits/uintn-identity.h \ + /usr/include/sys/select.h \ + /usr/include/bits/select.h \ + /usr/include/bits/types/sigset_t.h \ + /usr/include/bits/types/__sigset_t.h \ + /usr/include/bits/types/struct_timeval.h \ + /usr/include/bits/types/struct_timespec.h \ + /usr/include/bits/pthreadtypes.h \ + /usr/include/bits/thread-shared-types.h \ + /usr/include/bits/pthreadtypes-arch.h \ + /usr/include/bits/socket_type.h \ + /usr/include/bits/sockaddr.h \ + /usr/include/asm/socket.h \ + /usr/include/asm-generic/socket.h \ + /usr/include/asm/sockios.h \ + /usr/include/asm-generic/sockios.h \ + /usr/include/bits/types/struct_osockaddr.h \ + /usr/include/bits/in.h \ + /usr/include/stdio.h \ + /usr/lib/gcc/x86_64-redhat-linux/8/include/stdarg.h \ + /usr/include/bits/types/__fpos_t.h \ + /usr/include/bits/types/__mbstate_t.h \ + /usr/include/bits/types/__fpos64_t.h \ + /usr/include/bits/types/__FILE.h \ + /usr/include/bits/types/FILE.h \ + /usr/include/bits/types/struct_FILE.h \ + /usr/include/bits/stdio_lim.h \ + /usr/include/bits/sys_errlist.h \ + /usr/include/arpa/inet.h \ + /usr/include/assert.h \ + /usr/include/string.h \ + /usr/include/bits/types/locale_t.h \ + /usr/include/bits/types/__locale_t.h \ + /usr/include/strings.h + + +/usr/include/string.h: + +/usr/include/assert.h: + +/usr/include/arpa/inet.h: + +/usr/include/bits/sys_errlist.h: + +/usr/include/bits/stdio_lim.h: + +/usr/include/bits/types/FILE.h: + +/usr/include/bits/types/__FILE.h: + +/usr/include/bits/types/__mbstate_t.h: + +/usr/include/bits/types/__fpos_t.h: + +/usr/lib/gcc/x86_64-redhat-linux/8/include/stdarg.h: + +/usr/include/stdio.h: + +/usr/include/bits/in.h: + +/usr/include/bits/types/struct_FILE.h: + +/usr/include/bits/types/struct_osockaddr.h: + +/usr/include/asm-generic/sockios.h: + +/usr/include/asm/socket.h: + +/usr/include/asm-generic/socket.h: + +/usr/include/bits/sockaddr.h: + +/usr/include/bits/pthreadtypes-arch.h: + +/usr/include/bits/types/__fpos64_t.h: + +/usr/include/bits/thread-shared-types.h: + +/usr/include/bits/pthreadtypes.h: + +/usr/include/bits/types/struct_timespec.h: + +/usr/include/bits/typesizes.h: + +/usr/include/bits/wordsize.h: + +/usr/include/bits/stdint-intn.h: + +/opt/MESA/include/MESA/maat.h: + +/usr/include/bits/socket.h: + +/usr/include/bits/byteswap.h: + +/usr/include/bits/types/__sigset_t.h: + +/usr/lib/gcc/x86_64-redhat-linux/8/include/stdint.h: + +/usr/include/gnu/stubs.h: + +/usr/include/stdc-predef.h: + +/root/Git/demo/demo2/main.c: + +/usr/include/stdint.h: + +/usr/include/gnu/stubs-64.h: + +/usr/include/bits/select.h: + +/usr/include/bits/wchar.h: + +/usr/include/asm/sockios.h: + +/usr/include/sys/cdefs.h: + +/usr/include/bits/types/sigset_t.h: + +/usr/include/features.h: + +/usr/include/bits/long-double.h: + +/usr/include/bits/types/locale_t.h: + +/usr/include/netinet/in.h: + +/usr/include/sys/socket.h: + +/usr/include/bits/types/timer_t.h: + +/usr/include/bits/types/__locale_t.h: + +/usr/include/bits/socket_type.h: + +/usr/lib/gcc/x86_64-redhat-linux/8/include/stddef.h: + +/usr/include/strings.h: + +/usr/include/sys/types.h: + +/usr/include/bits/types/clockid_t.h: + +/usr/include/bits/types/struct_iovec.h: + +/usr/include/bits/stdint-uintn.h: + +/usr/include/bits/types/clock_t.h: + +/usr/include/bits/types.h: + +/usr/include/endian.h: + +/usr/include/bits/types/struct_timeval.h: + +/usr/include/bits/endian.h: + +/usr/include/bits/libc-header-start.h: + +/usr/include/bits/types/time_t.h: + +/usr/include/bits/uintn-identity.h: + +/usr/include/sys/select.h: diff --git a/build/demo3/CMakeFiles/demo3.dir/compiler_depend.internal b/build/demo3/CMakeFiles/demo3.dir/compiler_depend.internal deleted file mode 100644 index 82a32ae..0000000 --- a/build/demo3/CMakeFiles/demo3.dir/compiler_depend.internal +++ /dev/null @@ -1,69 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.26 - -demo3/CMakeFiles/demo3.dir/main.c.o - /root/Git/demo/demo3/main.c - /usr/include/stdc-predef.h - /opt/MESA/include/MESA/maat.h - /usr/lib/gcc/x86_64-redhat-linux/8/include/stdint.h - /usr/include/stdint.h - /usr/include/bits/libc-header-start.h - /usr/include/features.h - /usr/include/sys/cdefs.h - /usr/include/bits/wordsize.h - /usr/include/bits/long-double.h - /usr/include/gnu/stubs.h - /usr/include/gnu/stubs-64.h - /usr/include/bits/types.h - /usr/include/bits/typesizes.h - /usr/include/bits/wchar.h - /usr/include/bits/stdint-intn.h - /usr/include/bits/stdint-uintn.h - /usr/include/netinet/in.h - /usr/include/sys/socket.h - /usr/include/bits/types/struct_iovec.h - /usr/lib/gcc/x86_64-redhat-linux/8/include/stddef.h - /usr/include/bits/socket.h - /usr/include/sys/types.h - /usr/include/bits/types/clock_t.h - /usr/include/bits/types/clockid_t.h - /usr/include/bits/types/time_t.h - /usr/include/bits/types/timer_t.h - /usr/include/endian.h - /usr/include/bits/endian.h - /usr/include/bits/byteswap.h - /usr/include/bits/uintn-identity.h - /usr/include/sys/select.h - /usr/include/bits/select.h - /usr/include/bits/types/sigset_t.h - /usr/include/bits/types/__sigset_t.h - /usr/include/bits/types/struct_timeval.h - /usr/include/bits/types/struct_timespec.h - /usr/include/bits/pthreadtypes.h - /usr/include/bits/thread-shared-types.h - /usr/include/bits/pthreadtypes-arch.h - /usr/include/bits/socket_type.h - /usr/include/bits/sockaddr.h - /usr/include/asm/socket.h - /usr/include/asm-generic/socket.h - /usr/include/asm/sockios.h - /usr/include/asm-generic/sockios.h - /usr/include/bits/types/struct_osockaddr.h - /usr/include/bits/in.h - /usr/include/stdio.h - /usr/lib/gcc/x86_64-redhat-linux/8/include/stdarg.h - /usr/include/bits/types/__fpos_t.h - /usr/include/bits/types/__mbstate_t.h - /usr/include/bits/types/__fpos64_t.h - /usr/include/bits/types/__FILE.h - /usr/include/bits/types/FILE.h - /usr/include/bits/types/struct_FILE.h - /usr/include/bits/stdio_lim.h - /usr/include/bits/sys_errlist.h - /usr/include/arpa/inet.h - /usr/include/assert.h - /usr/include/string.h - /usr/include/bits/types/locale_t.h - /usr/include/bits/types/__locale_t.h - /usr/include/strings.h - diff --git a/build/demo3/CMakeFiles/demo3.dir/compiler_depend.make b/build/demo3/CMakeFiles/demo3.dir/compiler_depend.make index 188c072..f0dc75a 100644 --- a/build/demo3/CMakeFiles/demo3.dir/compiler_depend.make +++ b/build/demo3/CMakeFiles/demo3.dir/compiler_depend.make @@ -1,196 +1,2 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.26 - -demo3/CMakeFiles/demo3.dir/main.c.o: /root/Git/demo/demo3/main.c \ - /usr/include/stdc-predef.h \ - /opt/MESA/include/MESA/maat.h \ - /usr/lib/gcc/x86_64-redhat-linux/8/include/stdint.h \ - /usr/include/stdint.h \ - /usr/include/bits/libc-header-start.h \ - /usr/include/features.h \ - /usr/include/sys/cdefs.h \ - /usr/include/bits/wordsize.h \ - /usr/include/bits/long-double.h \ - /usr/include/gnu/stubs.h \ - /usr/include/gnu/stubs-64.h \ - /usr/include/bits/types.h \ - /usr/include/bits/typesizes.h \ - /usr/include/bits/wchar.h \ - /usr/include/bits/stdint-intn.h \ - /usr/include/bits/stdint-uintn.h \ - /usr/include/netinet/in.h \ - /usr/include/sys/socket.h \ - /usr/include/bits/types/struct_iovec.h \ - /usr/lib/gcc/x86_64-redhat-linux/8/include/stddef.h \ - /usr/include/bits/socket.h \ - /usr/include/sys/types.h \ - /usr/include/bits/types/clock_t.h \ - /usr/include/bits/types/clockid_t.h \ - /usr/include/bits/types/time_t.h \ - /usr/include/bits/types/timer_t.h \ - /usr/include/endian.h \ - /usr/include/bits/endian.h \ - /usr/include/bits/byteswap.h \ - /usr/include/bits/uintn-identity.h \ - /usr/include/sys/select.h \ - /usr/include/bits/select.h \ - /usr/include/bits/types/sigset_t.h \ - /usr/include/bits/types/__sigset_t.h \ - /usr/include/bits/types/struct_timeval.h \ - /usr/include/bits/types/struct_timespec.h \ - /usr/include/bits/pthreadtypes.h \ - /usr/include/bits/thread-shared-types.h \ - /usr/include/bits/pthreadtypes-arch.h \ - /usr/include/bits/socket_type.h \ - /usr/include/bits/sockaddr.h \ - /usr/include/asm/socket.h \ - /usr/include/asm-generic/socket.h \ - /usr/include/asm/sockios.h \ - /usr/include/asm-generic/sockios.h \ - /usr/include/bits/types/struct_osockaddr.h \ - /usr/include/bits/in.h \ - /usr/include/stdio.h \ - /usr/lib/gcc/x86_64-redhat-linux/8/include/stdarg.h \ - /usr/include/bits/types/__fpos_t.h \ - /usr/include/bits/types/__mbstate_t.h \ - /usr/include/bits/types/__fpos64_t.h \ - /usr/include/bits/types/__FILE.h \ - /usr/include/bits/types/FILE.h \ - /usr/include/bits/types/struct_FILE.h \ - /usr/include/bits/stdio_lim.h \ - /usr/include/bits/sys_errlist.h \ - /usr/include/arpa/inet.h \ - /usr/include/assert.h \ - /usr/include/string.h \ - /usr/include/bits/types/locale_t.h \ - /usr/include/bits/types/__locale_t.h \ - /usr/include/strings.h - - -/usr/include/string.h: - -/usr/include/assert.h: - -/usr/include/arpa/inet.h: - -/usr/include/bits/sys_errlist.h: - -/usr/include/bits/stdio_lim.h: - -/usr/include/bits/types/FILE.h: - -/usr/include/bits/types/__FILE.h: - -/usr/include/bits/types/__mbstate_t.h: - -/usr/include/bits/types/__fpos_t.h: - -/usr/lib/gcc/x86_64-redhat-linux/8/include/stdarg.h: - -/usr/include/stdio.h: - -/usr/include/bits/in.h: - -/usr/include/bits/types/struct_FILE.h: - -/usr/include/bits/types/struct_osockaddr.h: - -/usr/include/asm-generic/sockios.h: - -/usr/include/asm/socket.h: - -/usr/include/asm-generic/socket.h: - -/usr/include/bits/sockaddr.h: - -/usr/include/bits/pthreadtypes-arch.h: - -/usr/include/bits/types/__fpos64_t.h: - -/usr/include/bits/thread-shared-types.h: - -/usr/include/bits/pthreadtypes.h: - -/usr/include/bits/types/struct_timespec.h: - -/usr/include/bits/typesizes.h: - -/usr/include/bits/wordsize.h: - -/usr/include/bits/stdint-intn.h: - -/opt/MESA/include/MESA/maat.h: - -/usr/include/bits/socket.h: - -/usr/include/bits/byteswap.h: - -/usr/include/bits/types/__sigset_t.h: - -/root/Git/demo/demo3/main.c: - -/usr/lib/gcc/x86_64-redhat-linux/8/include/stdint.h: - -/usr/include/gnu/stubs.h: - -/usr/include/stdc-predef.h: - -/usr/include/bits/wchar.h: - -/usr/include/asm/sockios.h: - -/usr/include/sys/cdefs.h: - -/usr/include/bits/types/sigset_t.h: - -/usr/include/features.h: - -/usr/include/bits/long-double.h: - -/usr/include/stdint.h: - -/usr/include/gnu/stubs-64.h: - -/usr/include/bits/select.h: - -/usr/include/bits/types/clock_t.h: - -/usr/include/bits/types/struct_iovec.h: - -/usr/include/bits/stdint-uintn.h: - -/usr/include/bits/types/locale_t.h: - -/usr/include/netinet/in.h: - -/usr/include/sys/socket.h: - -/usr/include/bits/types/timer_t.h: - -/usr/include/bits/types/__locale_t.h: - -/usr/include/bits/socket_type.h: - -/usr/lib/gcc/x86_64-redhat-linux/8/include/stddef.h: - -/usr/include/strings.h: - -/usr/include/sys/types.h: - -/usr/include/bits/types/clockid_t.h: - -/usr/include/bits/types.h: - -/usr/include/endian.h: - -/usr/include/bits/types/struct_timeval.h: - -/usr/include/bits/endian.h: - -/usr/include/bits/libc-header-start.h: - -/usr/include/bits/types/time_t.h: - -/usr/include/bits/uintn-identity.h: - -/usr/include/sys/select.h: +# Empty compiler generated dependencies file for demo3. +# This may be replaced when dependencies are built. diff --git a/build/demo3/CMakeFiles/demo3.dir/main.c.o b/build/demo3/CMakeFiles/demo3.dir/main.c.o Binary files differindex 4edd048..982a054 100644 --- a/build/demo3/CMakeFiles/demo3.dir/main.c.o +++ b/build/demo3/CMakeFiles/demo3.dir/main.c.o diff --git a/build/demo3/demo3 b/build/demo3/demo3 Binary files differindex 4e3de99..5fe3dad 100755 --- a/build/demo3/demo3 +++ b/build/demo3/demo3 diff --git a/demo1/maat_json.json b/demo1/maat_json.json index a9e70bc..c5b5931 100644 --- a/demo1/maat_json.json +++ b/demo1/maat_json.json @@ -1,16 +1,19 @@ { - "compile_table": "COMPILE", - "group2compile_table": "GROUP2COMPILE", + "compile_table": "WANNAT_COMPILE", + "group2compile_table": "WANNAT_GROUP_COMPILE_RELATION", "group2group_table": "GROUP2GROUP", "rules": [ { - "compile_id": 123, - "service": 1, + "compile_id": 301, + "service": 0, "action": 1, - "do_blacklist": 1, - "do_log": 1, - "user_region": "anything", + "do_blacklist": 0, + "do_log": 2, + "effective_range": "{}", + "user_region": "{\"ip_object_ids\":[203,204], \"translate_type\":\"never\", \"time_interval\":123, \"connection_count\":1243}", + "group_num": 8, "is_valid": "yes", + "modified_time": "100", "groups": [ { "virtual_table": "UE_ID", diff --git a/demo1/maat_json.json_iris_tmp/COMPILE.local b/demo1/maat_json.json_iris_tmp/COMPILE.local deleted file mode 100644 index 06a7f94..0000000 --- a/demo1/maat_json.json_iris_tmp/COMPILE.local +++ /dev/null @@ -1,2 +0,0 @@ -0000000001 -123 1 1 1 1 {} anything 1 1 diff --git a/demo1/maat_json.json_iris_tmp/GROUP2COMPILE.local b/demo1/maat_json.json_iris_tmp/GROUP2COMPILE.local index e9e15c1..5ca3efc 100644 --- a/demo1/maat_json.json_iris_tmp/GROUP2COMPILE.local +++ b/demo1/maat_json.json_iris_tmp/GROUP2COMPILE.local @@ -1,2 +1,2 @@ 0000000001 -123456789 123 0 HTTP_URL 0 1 +123456789 123 0 UE_ID 0 1 diff --git a/demo1/maat_json.json_iris_tmp/HTTP_URL.local b/demo1/maat_json.json_iris_tmp/HTTP_URL.local deleted file mode 100644 index befe550..0000000 --- a/demo1/maat_json.json_iris_tmp/HTTP_URL.local +++ /dev/null @@ -1,2 +0,0 @@ -0000000001 -1 123456789 Hello Maat 0 0 0 1 diff --git a/demo1/maat_json.json_iris_tmp/WANNAT_COMPILE.local b/demo1/maat_json.json_iris_tmp/WANNAT_COMPILE.local new file mode 100644 index 0000000..61414d2 --- /dev/null +++ b/demo1/maat_json.json_iris_tmp/WANNAT_COMPILE.local @@ -0,0 +1,2 @@ +0000000001 +301 0 1 0 2 {} {"ip_object_ids":[203,204], "translate_type":"never", "time_interval":123, "connection_count":1243} 1 1 diff --git a/demo1/maat_json.json_iris_tmp/WANNAT_GROUP_COMPILE_RELATION.local b/demo1/maat_json.json_iris_tmp/WANNAT_GROUP_COMPILE_RELATION.local new file mode 100644 index 0000000..785b439 --- /dev/null +++ b/demo1/maat_json.json_iris_tmp/WANNAT_GROUP_COMPILE_RELATION.local @@ -0,0 +1,2 @@ +0000000001 +123456789 301 0 UE_ID 0 1 diff --git a/demo3/maat_json.json_iris_tmp/WANNAT_OBJ_UE_ID.local b/demo1/maat_json.json_iris_tmp/WANNAT_OBJ_UE_ID.local index 3596a57..3596a57 100644 --- a/demo3/maat_json.json_iris_tmp/WANNAT_OBJ_UE_ID.local +++ b/demo1/maat_json.json_iris_tmp/WANNAT_OBJ_UE_ID.local diff --git a/demo1/maat_json.json_iris_tmp/index/full_config_index.0000000001 b/demo1/maat_json.json_iris_tmp/index/full_config_index.0000000001 index 2d010ee..513b5fb 100644 --- a/demo1/maat_json.json_iris_tmp/index/full_config_index.0000000001 +++ b/demo1/maat_json.json_iris_tmp/index/full_config_index.0000000001 @@ -1,4 +1,4 @@ -COMPILE 1 /root/Git/demo/demo1/maat_json.json_iris_tmp/COMPILE.local -GROUP2COMPILE 1 /root/Git/demo/demo1/maat_json.json_iris_tmp/GROUP2COMPILE.local +WANNAT_COMPILE 1 /root/Git/demo/demo1/maat_json.json_iris_tmp/WANNAT_COMPILE.local +WANNAT_GROUP_COMPILE_RELATION 1 /root/Git/demo/demo1/maat_json.json_iris_tmp/WANNAT_GROUP_COMPILE_RELATION.local GROUP2GROUP 0 /root/Git/demo/demo1/maat_json.json_iris_tmp/GROUP2GROUP.local -HTTP_URL 1 /root/Git/demo/demo1/maat_json.json_iris_tmp/HTTP_URL.local +WANNAT_OBJ_UE_ID 1 /root/Git/demo/demo1/maat_json.json_iris_tmp/WANNAT_OBJ_UE_ID.local diff --git a/demo1/main.c b/demo1/main.c index 7f2742b..e15240d 100644 --- a/demo1/main.c +++ b/demo1/main.c @@ -6,16 +6,11 @@ #define ARRAY_SIZE 16 -const char *json_filename = "/root/Git/demo/demo1/maat_json.json"; -const char *table_info_path = "/root/Git/demo/demo1/table_info.conf"; +const char *json_filename = "/root/Git/demo/demo2/maat_json.json"; +const char *table_info_path = "/root/Git/demo/demo/table_info.conf"; int main() { - // 输出 pwd - // char pwd[1024] = {0}; - // getcwd(pwd, sizeof(pwd)); - // printf("pwd: %s\n", pwd); - /* initialize maat options which will be used by maat_new() */ struct maat_options *opts = maat_options_new(); maat_options_set_json_file(opts, json_filename); @@ -28,7 +23,7 @@ int main() const char *table_name = "UE_ID"; /* maat_json.json has HTTP_URL rule */ int table_id = maat_get_table_id(maat_instance, table_name); - assert(table_id == 4); /* defined in table_info.conf */ + assert(table_id == 5); /* defined in table_info.conf */ int thread_id = 0; long long results[ARRAY_SIZE] = {0}; diff --git a/demo1/sample_test.log.2024-04-24 b/demo1/sample_test.log.2024-04-24 index 94f985a..943bf89 100644 --- a/demo1/sample_test.log.2024-04-24 +++ b/demo1/sample_test.log.2024-04-24 @@ -16,3 +16,256 @@ Wed Apr 24 07:28:02 2024, INFO, maat.rule(43825), table:<COMPILE> rule_count:1 Wed Apr 24 07:28:02 2024, INFO, maat.rule(43825), table:<GROUP2COMPILE> rule_count:1 Wed Apr 24 07:28:02 2024, INFO, maat.rule(43825), table:<HTTP_URL> rule_count:1 Wed Apr 24 07:28:02 2024, INFO, maat.rule(43825), Full config version 1 load 3 entries complete +Wed Apr 24 07:28:43 2024, INFO, maat.table(44003), successfully register physical table[COMPILE]->table_id:0 +Wed Apr 24 07:28:43 2024, INFO, maat.table(44003), successfully register physical table[GROUP2COMPILE]->table_id:1 +Wed Apr 24 07:28:43 2024, INFO, maat.table(44003), successfully register physical table[GROUP2GROUP]->table_id:2 +Wed Apr 24 07:28:43 2024, INFO, maat.table(44003), successfully register physical table[HTTP_URL]->table_id:3 +Wed Apr 24 07:28:43 2024, INFO, maat.table(44003), successfully register virtual table[UE_ID]->vtable_id:4, physical_table_id:3 +Wed Apr 24 07:28:43 2024, INFO, maat.table(44003), default compile table id: 0 +Wed Apr 24 07:28:43 2024, INFO, maat.table(44003), group2group table id: 2 +Wed Apr 24 07:28:43 2024, INFO, maat.config_monitor(44003), Maat initial with JSON file /root/Git/demo/demo1/maat_json.json, formating... +Wed Apr 24 07:28:43 2024, INFO, maat.config_monitor(44003), JSON file /root/Git/demo/demo1/maat_json.json md5: 192be5ed263cb71be3507fd9ec134309, generate index file /root/Git/demo/demo1/maat_json.json_iris_tmp/index OK +Wed Apr 24 07:28:43 2024, INFO, maat.config_monitor(44003), load /root/Git/demo/demo1/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Wed Apr 24 07:28:43 2024, INFO, maat.compile(44003), Build bool matcher of 1 expressions with 16777356 bytes memory. +Wed Apr 24 07:28:43 2024, INFO, maat.compile(44003), table[COMPILE] commit 1 compile rules and rebuild compile bool_matcher completed, version:1, consume:2ms +Wed Apr 24 07:28:43 2024, INFO, maat.expr_matcher(44003), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Wed Apr 24 07:28:43 2024, INFO, maat.expr(44003), table[HTTP_URL] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:2ms +Wed Apr 24 07:28:43 2024, INFO, maat.rule(44003), table:<COMPILE> rule_count:1 +Wed Apr 24 07:28:43 2024, INFO, maat.rule(44003), table:<GROUP2COMPILE> rule_count:1 +Wed Apr 24 07:28:43 2024, INFO, maat.rule(44003), table:<HTTP_URL> rule_count:1 +Wed Apr 24 07:28:43 2024, INFO, maat.rule(44003), Full config version 1 load 3 entries complete +Wed Apr 24 07:29:17 2024, INFO, maat.table(44298), successfully register physical table[COMPILE]->table_id:0 +Wed Apr 24 07:29:17 2024, INFO, maat.table(44298), successfully register physical table[GROUP2COMPILE]->table_id:1 +Wed Apr 24 07:29:17 2024, INFO, maat.table(44298), successfully register physical table[GROUP2GROUP]->table_id:2 +Wed Apr 24 07:29:17 2024, INFO, maat.table(44298), successfully register physical table[HTTP_URL]->table_id:3 +Wed Apr 24 07:29:17 2024, INFO, maat.table(44298), successfully register virtual table[UE_ID]->vtable_id:4, physical_table_id:3 +Wed Apr 24 07:29:17 2024, INFO, maat.table(44298), default compile table id: 0 +Wed Apr 24 07:29:17 2024, INFO, maat.table(44298), group2group table id: 2 +Wed Apr 24 07:29:17 2024, INFO, maat.config_monitor(44298), Maat initial with JSON file /root/Git/demo/demo1/maat_json.json, formating... +Wed Apr 24 07:29:17 2024, INFO, maat.config_monitor(44298), JSON file /root/Git/demo/demo1/maat_json.json md5: 192be5ed263cb71be3507fd9ec134309, generate index file /root/Git/demo/demo1/maat_json.json_iris_tmp/index OK +Wed Apr 24 07:29:17 2024, INFO, maat.config_monitor(44298), load /root/Git/demo/demo1/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Wed Apr 24 07:29:17 2024, INFO, maat.compile(44298), Build bool matcher of 1 expressions with 16777356 bytes memory. +Wed Apr 24 07:29:17 2024, INFO, maat.compile(44298), table[COMPILE] commit 1 compile rules and rebuild compile bool_matcher completed, version:1, consume:1ms +Wed Apr 24 07:29:17 2024, INFO, maat.expr_matcher(44298), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Wed Apr 24 07:29:17 2024, INFO, maat.expr(44298), table[HTTP_URL] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:2ms +Wed Apr 24 07:29:17 2024, INFO, maat.rule(44298), table:<COMPILE> rule_count:1 +Wed Apr 24 07:29:17 2024, INFO, maat.rule(44298), table:<GROUP2COMPILE> rule_count:1 +Wed Apr 24 07:29:17 2024, INFO, maat.rule(44298), table:<HTTP_URL> rule_count:1 +Wed Apr 24 07:29:17 2024, INFO, maat.rule(44298), Full config version 1 load 3 entries complete +Wed Apr 24 07:29:25 2024, INFO, maat.table(44433), successfully register physical table[COMPILE]->table_id:0 +Wed Apr 24 07:29:25 2024, INFO, maat.table(44433), successfully register physical table[GROUP2COMPILE]->table_id:1 +Wed Apr 24 07:29:25 2024, INFO, maat.table(44433), successfully register physical table[GROUP2GROUP]->table_id:2 +Wed Apr 24 07:29:25 2024, INFO, maat.table(44433), successfully register physical table[HTTP_URL]->table_id:3 +Wed Apr 24 07:29:25 2024, INFO, maat.table(44433), successfully register virtual table[UE_ID]->vtable_id:4, physical_table_id:3 +Wed Apr 24 07:29:25 2024, INFO, maat.table(44433), default compile table id: 0 +Wed Apr 24 07:29:25 2024, INFO, maat.table(44433), group2group table id: 2 +Wed Apr 24 07:29:25 2024, INFO, maat.config_monitor(44433), Maat initial with JSON file /root/Git/demo/demo1/maat_json.json, formating... +Wed Apr 24 07:29:25 2024, INFO, maat.config_monitor(44433), JSON file /root/Git/demo/demo1/maat_json.json md5: 192be5ed263cb71be3507fd9ec134309, generate index file /root/Git/demo/demo1/maat_json.json_iris_tmp/index OK +Wed Apr 24 07:29:25 2024, INFO, maat.config_monitor(44433), load /root/Git/demo/demo1/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Wed Apr 24 07:29:25 2024, INFO, maat.compile(44433), Build bool matcher of 1 expressions with 16777356 bytes memory. +Wed Apr 24 07:29:25 2024, INFO, maat.compile(44433), table[COMPILE] commit 1 compile rules and rebuild compile bool_matcher completed, version:1, consume:4ms +Wed Apr 24 07:29:25 2024, INFO, maat.expr_matcher(44433), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Wed Apr 24 07:29:25 2024, INFO, maat.expr(44433), table[HTTP_URL] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:2ms +Wed Apr 24 07:29:25 2024, INFO, maat.rule(44433), table:<COMPILE> rule_count:1 +Wed Apr 24 07:29:25 2024, INFO, maat.rule(44433), table:<GROUP2COMPILE> rule_count:1 +Wed Apr 24 07:29:25 2024, INFO, maat.rule(44433), table:<HTTP_URL> rule_count:1 +Wed Apr 24 07:29:25 2024, INFO, maat.rule(44433), Full config version 1 load 3 entries complete +Wed Apr 24 21:37:05 2024, INFO, maat.table(45646), successfully register physical table[COMPILE]->table_id:0 +Wed Apr 24 21:37:05 2024, INFO, maat.table(45646), successfully register physical table[GROUP2COMPILE]->table_id:1 +Wed Apr 24 21:37:05 2024, INFO, maat.table(45646), successfully register physical table[GROUP2GROUP]->table_id:2 +Wed Apr 24 21:37:05 2024, INFO, maat.table(45646), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Wed Apr 24 21:37:05 2024, INFO, maat.table(45646), successfully register virtual table[UE_ID]->vtable_id:4, physical_table_id:3 +Wed Apr 24 21:37:05 2024, INFO, maat.table(45646), default compile table id: 0 +Wed Apr 24 21:37:05 2024, INFO, maat.table(45646), group2group table id: 2 +Wed Apr 24 21:37:05 2024, INFO, maat.config_monitor(45646), Maat initial with JSON file /root/Git/demo/demo1/maat_json.json, formating... +Wed Apr 24 21:37:05 2024, INFO, maat.config_monitor(45646), JSON file /root/Git/demo/demo1/maat_json.json md5: cc39edf1bf3ba41a81a1e94915dfd97a, generate index file /root/Git/demo/demo1/maat_json.json_iris_tmp/index OK +Wed Apr 24 21:37:05 2024, INFO, maat.config_monitor(45646), load /root/Git/demo/demo1/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Wed Apr 24 21:37:05 2024, INFO, maat.compile(45646), Build bool matcher of 1 expressions with 16777356 bytes memory. +Wed Apr 24 21:37:05 2024, INFO, maat.compile(45646), table[COMPILE] commit 1 compile rules and rebuild compile bool_matcher completed, version:1, consume:1ms +Wed Apr 24 21:37:05 2024, INFO, maat.expr_matcher(45646), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Wed Apr 24 21:37:05 2024, INFO, maat.expr(45646), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:2ms +Wed Apr 24 21:37:05 2024, INFO, maat.rule(45646), table:<COMPILE> rule_count:1 +Wed Apr 24 21:37:05 2024, INFO, maat.rule(45646), table:<GROUP2COMPILE> rule_count:1 +Wed Apr 24 21:37:05 2024, INFO, maat.rule(45646), table:<WANNAT_OBJ_UE_ID> rule_count:1 +Wed Apr 24 21:37:05 2024, INFO, maat.rule(45646), Full config version 1 load 3 entries complete +Wed Apr 24 21:37:45 2024, INFO, maat.table(45894), successfully register physical table[COMPILE]->table_id:0 +Wed Apr 24 21:37:45 2024, INFO, maat.table(45894), successfully register physical table[GROUP2COMPILE]->table_id:1 +Wed Apr 24 21:37:45 2024, INFO, maat.table(45894), successfully register physical table[GROUP2GROUP]->table_id:2 +Wed Apr 24 21:37:45 2024, INFO, maat.table(45894), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Wed Apr 24 21:37:45 2024, INFO, maat.table(45894), successfully register virtual table[UE_ID]->vtable_id:4, physical_table_id:3 +Wed Apr 24 21:37:45 2024, INFO, maat.table(45894), default compile table id: 0 +Wed Apr 24 21:37:45 2024, INFO, maat.table(45894), group2group table id: 2 +Wed Apr 24 21:37:45 2024, INFO, maat.config_monitor(45894), Maat initial with JSON file /root/Git/demo/demo1/maat_json.json, formating... +Wed Apr 24 21:37:45 2024, INFO, maat.config_monitor(45894), JSON file /root/Git/demo/demo1/maat_json.json md5: cc39edf1bf3ba41a81a1e94915dfd97a, generate index file /root/Git/demo/demo1/maat_json.json_iris_tmp/index OK +Wed Apr 24 21:37:45 2024, INFO, maat.config_monitor(45894), load /root/Git/demo/demo1/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Wed Apr 24 21:37:45 2024, INFO, maat.compile(45894), Build bool matcher of 1 expressions with 16777356 bytes memory. +Wed Apr 24 21:37:45 2024, INFO, maat.compile(45894), table[COMPILE] commit 1 compile rules and rebuild compile bool_matcher completed, version:1, consume:2ms +Wed Apr 24 21:37:45 2024, INFO, maat.expr_matcher(45894), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Wed Apr 24 21:37:45 2024, INFO, maat.expr(45894), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:2ms +Wed Apr 24 21:37:45 2024, INFO, maat.rule(45894), table:<COMPILE> rule_count:1 +Wed Apr 24 21:37:45 2024, INFO, maat.rule(45894), table:<GROUP2COMPILE> rule_count:1 +Wed Apr 24 21:37:45 2024, INFO, maat.rule(45894), table:<WANNAT_OBJ_UE_ID> rule_count:1 +Wed Apr 24 21:37:45 2024, INFO, maat.rule(45894), Full config version 1 load 3 entries complete +Wed Apr 24 21:38:14 2024, INFO, maat.table(46094), successfully register physical table[COMPILE]->table_id:0 +Wed Apr 24 21:38:14 2024, INFO, maat.table(46094), successfully register physical table[GROUP2COMPILE]->table_id:1 +Wed Apr 24 21:38:14 2024, INFO, maat.table(46094), successfully register physical table[GROUP2GROUP]->table_id:2 +Wed Apr 24 21:38:14 2024, INFO, maat.table(46094), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Wed Apr 24 21:38:14 2024, INFO, maat.table(46094), successfully register virtual table[UE_ID]->vtable_id:4, physical_table_id:3 +Wed Apr 24 21:38:14 2024, INFO, maat.table(46094), default compile table id: 0 +Wed Apr 24 21:38:14 2024, INFO, maat.table(46094), group2group table id: 2 +Wed Apr 24 21:38:14 2024, INFO, maat.config_monitor(46094), Maat initial with JSON file /root/Git/demo/demo1/maat_json.json, formating... +Wed Apr 24 21:38:14 2024, INFO, maat.config_monitor(46094), JSON file /root/Git/demo/demo1/maat_json.json md5: cc39edf1bf3ba41a81a1e94915dfd97a, generate index file /root/Git/demo/demo1/maat_json.json_iris_tmp/index OK +Wed Apr 24 21:38:14 2024, INFO, maat.config_monitor(46094), load /root/Git/demo/demo1/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Wed Apr 24 21:38:14 2024, INFO, maat.compile(46094), Build bool matcher of 1 expressions with 16777356 bytes memory. +Wed Apr 24 21:38:14 2024, INFO, maat.compile(46094), table[COMPILE] commit 1 compile rules and rebuild compile bool_matcher completed, version:1, consume:1ms +Wed Apr 24 21:38:14 2024, INFO, maat.expr_matcher(46094), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Wed Apr 24 21:38:14 2024, INFO, maat.expr(46094), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:2ms +Wed Apr 24 21:38:14 2024, INFO, maat.rule(46094), table:<COMPILE> rule_count:1 +Wed Apr 24 21:38:14 2024, INFO, maat.rule(46094), table:<GROUP2COMPILE> rule_count:1 +Wed Apr 24 21:38:14 2024, INFO, maat.rule(46094), table:<WANNAT_OBJ_UE_ID> rule_count:1 +Wed Apr 24 21:38:14 2024, INFO, maat.rule(46094), Full config version 1 load 3 entries complete +Wed Apr 24 21:38:44 2024, INFO, maat.table(46290), successfully register physical table[COMPILE]->table_id:0 +Wed Apr 24 21:38:44 2024, INFO, maat.table(46290), successfully register physical table[GROUP2COMPILE]->table_id:1 +Wed Apr 24 21:38:44 2024, INFO, maat.table(46290), successfully register physical table[GROUP2GROUP]->table_id:2 +Wed Apr 24 21:38:44 2024, INFO, maat.table(46290), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Wed Apr 24 21:38:44 2024, INFO, maat.table(46290), successfully register virtual table[UE_ID]->vtable_id:4, physical_table_id:3 +Wed Apr 24 21:38:44 2024, INFO, maat.table(46290), default compile table id: 0 +Wed Apr 24 21:38:44 2024, INFO, maat.table(46290), group2group table id: 2 +Wed Apr 24 21:38:44 2024, INFO, maat.config_monitor(46290), Maat initial with JSON file /root/Git/demo/demo1/maat_json.json, formating... +Wed Apr 24 21:38:44 2024, INFO, maat.config_monitor(46290), JSON file /root/Git/demo/demo1/maat_json.json md5: 73bb030958aa86ee22237e7b95732927, generate index file /root/Git/demo/demo1/maat_json.json_iris_tmp/index OK +Wed Apr 24 21:38:44 2024, INFO, maat.config_monitor(46290), load /root/Git/demo/demo1/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Wed Apr 24 21:38:44 2024, INFO, maat.compile(46290), Build bool matcher of 1 expressions with 16777356 bytes memory. +Wed Apr 24 21:38:44 2024, INFO, maat.compile(46290), table[COMPILE] commit 1 compile rules and rebuild compile bool_matcher completed, version:1, consume:1ms +Wed Apr 24 21:38:44 2024, INFO, maat.expr_matcher(46290), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Wed Apr 24 21:38:44 2024, INFO, maat.expr(46290), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:2ms +Wed Apr 24 21:38:44 2024, INFO, maat.rule(46290), table:<COMPILE> rule_count:1 +Wed Apr 24 21:38:44 2024, INFO, maat.rule(46290), table:<GROUP2COMPILE> rule_count:1 +Wed Apr 24 21:38:44 2024, INFO, maat.rule(46290), table:<WANNAT_OBJ_UE_ID> rule_count:1 +Wed Apr 24 21:38:44 2024, INFO, maat.rule(46290), Full config version 1 load 3 entries complete +Wed Apr 24 21:38:57 2024, INFO, maat.table(46468), successfully register physical table[COMPILE]->table_id:0 +Wed Apr 24 21:38:57 2024, INFO, maat.table(46468), successfully register physical table[GROUP2COMPILE]->table_id:1 +Wed Apr 24 21:38:57 2024, INFO, maat.table(46468), successfully register physical table[GROUP2GROUP]->table_id:2 +Wed Apr 24 21:38:57 2024, INFO, maat.table(46468), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Wed Apr 24 21:38:57 2024, INFO, maat.table(46468), successfully register virtual table[UE_ID]->vtable_id:4, physical_table_id:3 +Wed Apr 24 21:38:57 2024, INFO, maat.table(46468), default compile table id: 0 +Wed Apr 24 21:38:57 2024, INFO, maat.table(46468), group2group table id: 2 +Wed Apr 24 21:38:57 2024, INFO, maat.config_monitor(46468), Maat initial with JSON file /root/Git/demo/demo1/maat_json.json, formating... +Wed Apr 24 21:38:57 2024, INFO, maat.config_monitor(46468), JSON file /root/Git/demo/demo1/maat_json.json md5: 73bb030958aa86ee22237e7b95732927, generate index file /root/Git/demo/demo1/maat_json.json_iris_tmp/index OK +Wed Apr 24 21:38:57 2024, INFO, maat.config_monitor(46468), load /root/Git/demo/demo1/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Wed Apr 24 21:38:57 2024, INFO, maat.compile(46468), Build bool matcher of 1 expressions with 16777356 bytes memory. +Wed Apr 24 21:38:57 2024, INFO, maat.compile(46468), table[COMPILE] commit 1 compile rules and rebuild compile bool_matcher completed, version:1, consume:1ms +Wed Apr 24 21:38:57 2024, INFO, maat.expr_matcher(46468), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Wed Apr 24 21:38:57 2024, INFO, maat.expr(46468), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:2ms +Wed Apr 24 21:38:57 2024, INFO, maat.rule(46468), table:<COMPILE> rule_count:1 +Wed Apr 24 21:38:57 2024, INFO, maat.rule(46468), table:<GROUP2COMPILE> rule_count:1 +Wed Apr 24 21:38:57 2024, INFO, maat.rule(46468), table:<WANNAT_OBJ_UE_ID> rule_count:1 +Wed Apr 24 21:38:57 2024, INFO, maat.rule(46468), Full config version 1 load 3 entries complete +Wed Apr 24 21:58:50 2024, INFO, maat.table(48507), successfully register physical table[WANNAT_COMPILE]->table_id:0 +Wed Apr 24 21:58:50 2024, INFO, maat.table(48507), successfully register physical table[WANNAT_GROUP_COMPILE_RELATION]->table_id:1 +Wed Apr 24 21:58:50 2024, INFO, maat.table(48507), successfully register physical table[GROUP2GROUP]->table_id:2 +Wed Apr 24 21:58:50 2024, INFO, maat.table(48507), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Wed Apr 24 21:58:50 2024, INFO, maat.table(48507), successfully register virtual table[UE_ID]->vtable_id:4, physical_table_id:3 +Wed Apr 24 21:58:50 2024, INFO, maat.table(48507), default compile table id: 0 +Wed Apr 24 21:58:50 2024, INFO, maat.table(48507), group2group table id: 2 +Wed Apr 24 21:58:50 2024, INFO, maat.config_monitor(48507), Maat initial with JSON file /root/Git/demo/demo1/maat_json.json, formating... +Wed Apr 24 21:58:50 2024, INFO, maat.config_monitor(48507), JSON file /root/Git/demo/demo1/maat_json.json md5: e8ae6f098aeb407105c010484e538649, generate index file /root/Git/demo/demo1/maat_json.json_iris_tmp/index OK +Wed Apr 24 21:58:50 2024, INFO, maat.config_monitor(48507), load /root/Git/demo/demo1/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Wed Apr 24 21:58:50 2024, INFO, maat.compile(48507), Build bool matcher of 1 expressions with 16777356 bytes memory. +Wed Apr 24 21:58:50 2024, INFO, maat.compile(48507), table[WANNAT_COMPILE] commit 1 compile rules and rebuild compile bool_matcher completed, version:1, consume:1ms +Wed Apr 24 21:58:50 2024, INFO, maat.expr_matcher(48507), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Wed Apr 24 21:58:50 2024, INFO, maat.expr(48507), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:2ms +Wed Apr 24 21:58:50 2024, INFO, maat.rule(48507), table:<WANNAT_COMPILE> rule_count:1 +Wed Apr 24 21:58:50 2024, INFO, maat.rule(48507), table:<WANNAT_GROUP_COMPILE_RELATION> rule_count:1 +Wed Apr 24 21:58:50 2024, INFO, maat.rule(48507), table:<WANNAT_OBJ_UE_ID> rule_count:1 +Wed Apr 24 21:58:50 2024, INFO, maat.rule(48507), Full config version 1 load 3 entries complete +Wed Apr 24 21:58:50 2024, INFO, maat.rule(48513), rule_monitor_loop thread still alive......... +Wed Apr 24 22:00:53 2024, INFO, maat.table(48730), successfully register physical table[WANNAT_COMPILE]->table_id:0 +Wed Apr 24 22:00:53 2024, INFO, maat.table(48730), successfully register physical table[WANNAT_GROUP_COMPILE_RELATION]->table_id:1 +Wed Apr 24 22:00:53 2024, INFO, maat.table(48730), successfully register physical table[GROUP2GROUP]->table_id:2 +Wed Apr 24 22:00:53 2024, INFO, maat.table(48730), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Wed Apr 24 22:00:53 2024, INFO, maat.table(48730), successfully register virtual table[UE_ID]->vtable_id:4, physical_table_id:3 +Wed Apr 24 22:00:53 2024, INFO, maat.table(48730), default compile table id: 0 +Wed Apr 24 22:00:53 2024, INFO, maat.table(48730), group2group table id: 2 +Wed Apr 24 22:00:53 2024, INFO, maat.config_monitor(48730), Maat initial with JSON file /root/Git/demo/demo1/maat_json.json, formating... +Wed Apr 24 22:00:53 2024, INFO, maat.config_monitor(48730), JSON file /root/Git/demo/demo1/maat_json.json md5: 0092fcfeea96940d7ac0f1e87e21844f, generate index file /root/Git/demo/demo1/maat_json.json_iris_tmp/index OK +Wed Apr 24 22:00:53 2024, INFO, maat.config_monitor(48730), load /root/Git/demo/demo1/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Wed Apr 24 22:00:53 2024, INFO, maat.compile(48730), Build bool matcher of 1 expressions with 16777356 bytes memory. +Wed Apr 24 22:00:53 2024, INFO, maat.compile(48730), table[WANNAT_COMPILE] commit 1 compile rules and rebuild compile bool_matcher completed, version:1, consume:4ms +Wed Apr 24 22:00:53 2024, INFO, maat.expr_matcher(48730), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Wed Apr 24 22:00:53 2024, INFO, maat.expr(48730), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:2ms +Wed Apr 24 22:00:53 2024, INFO, maat.rule(48730), table:<WANNAT_COMPILE> rule_count:1 +Wed Apr 24 22:00:53 2024, INFO, maat.rule(48730), table:<WANNAT_GROUP_COMPILE_RELATION> rule_count:1 +Wed Apr 24 22:00:53 2024, INFO, maat.rule(48730), table:<WANNAT_OBJ_UE_ID> rule_count:1 +Wed Apr 24 22:00:53 2024, INFO, maat.rule(48730), Full config version 1 load 3 entries complete +Wed Apr 24 22:01:37 2024, INFO, maat.table(48972), successfully register physical table[WANNAT_COMPILE]->table_id:0 +Wed Apr 24 22:01:37 2024, INFO, maat.table(48972), successfully register physical table[WANNAT_GROUP_COMPILE_RELATION]->table_id:1 +Wed Apr 24 22:01:37 2024, INFO, maat.table(48972), successfully register physical table[GROUP2GROUP]->table_id:2 +Wed Apr 24 22:01:37 2024, INFO, maat.table(48972), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Wed Apr 24 22:01:37 2024, INFO, maat.table(48972), successfully register virtual table[UE_ID]->vtable_id:4, physical_table_id:3 +Wed Apr 24 22:01:37 2024, INFO, maat.table(48972), default compile table id: 0 +Wed Apr 24 22:01:37 2024, INFO, maat.table(48972), group2group table id: 2 +Wed Apr 24 22:01:37 2024, INFO, maat.config_monitor(48972), Maat initial with JSON file /root/Git/demo/demo1/maat_json.json, formating... +Wed Apr 24 22:01:37 2024, INFO, maat.config_monitor(48972), JSON file /root/Git/demo/demo1/maat_json.json md5: 0092fcfeea96940d7ac0f1e87e21844f, generate index file /root/Git/demo/demo1/maat_json.json_iris_tmp/index OK +Wed Apr 24 22:01:37 2024, INFO, maat.config_monitor(48972), load /root/Git/demo/demo1/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Wed Apr 24 22:01:37 2024, INFO, maat.compile(48972), Build bool matcher of 1 expressions with 16777356 bytes memory. +Wed Apr 24 22:01:37 2024, INFO, maat.compile(48972), table[WANNAT_COMPILE] commit 1 compile rules and rebuild compile bool_matcher completed, version:1, consume:1ms +Wed Apr 24 22:01:37 2024, INFO, maat.expr_matcher(48972), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Wed Apr 24 22:01:37 2024, INFO, maat.expr(48972), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:2ms +Wed Apr 24 22:01:37 2024, INFO, maat.rule(48972), table:<WANNAT_COMPILE> rule_count:1 +Wed Apr 24 22:01:37 2024, INFO, maat.rule(48972), table:<WANNAT_GROUP_COMPILE_RELATION> rule_count:1 +Wed Apr 24 22:01:37 2024, INFO, maat.rule(48972), table:<WANNAT_OBJ_UE_ID> rule_count:1 +Wed Apr 24 22:01:37 2024, INFO, maat.rule(48972), Full config version 1 load 3 entries complete +Wed Apr 24 22:04:05 2024, INFO, maat.table(49229), successfully register physical table[WANNAT_COMPILE]->table_id:0 +Wed Apr 24 22:04:05 2024, INFO, maat.table(49229), successfully register physical table[WANNAT_GROUP_COMPILE_RELATION]->table_id:1 +Wed Apr 24 22:04:05 2024, INFO, maat.table(49229), successfully register physical table[GROUP2GROUP]->table_id:2 +Wed Apr 24 22:04:05 2024, INFO, maat.table(49229), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Wed Apr 24 22:04:05 2024, INFO, maat.table(49229), successfully register virtual table[UE_ID]->vtable_id:4, physical_table_id:3 +Wed Apr 24 22:04:05 2024, INFO, maat.table(49229), default compile table id: -1 +Wed Apr 24 22:04:05 2024, INFO, maat.table(49229), group2group table id: 2 +Wed Apr 24 22:04:05 2024, INFO, maat.config_monitor(49229), Maat initial with JSON file /root/Git/demo/demo1/maat_json.json, formating... +Wed Apr 24 22:04:05 2024, INFO, maat.config_monitor(49229), JSON file /root/Git/demo/demo1/maat_json.json md5: 0092fcfeea96940d7ac0f1e87e21844f, generate index file /root/Git/demo/demo1/maat_json.json_iris_tmp/index OK +Wed Apr 24 22:04:05 2024, INFO, maat.config_monitor(49229), load /root/Git/demo/demo1/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Wed Apr 24 22:04:05 2024, INFO, maat.compile(49229), Build bool matcher of 1 expressions with 16777356 bytes memory. +Wed Apr 24 22:04:05 2024, INFO, maat.compile(49229), table[WANNAT_COMPILE] commit 1 compile rules and rebuild compile bool_matcher completed, version:1, consume:2ms +Wed Apr 24 22:04:05 2024, INFO, maat.expr_matcher(49229), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Wed Apr 24 22:04:05 2024, INFO, maat.expr(49229), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:2ms +Wed Apr 24 22:04:05 2024, INFO, maat.rule(49229), table:<WANNAT_COMPILE> rule_count:1 +Wed Apr 24 22:04:05 2024, INFO, maat.rule(49229), table:<WANNAT_GROUP_COMPILE_RELATION> rule_count:1 +Wed Apr 24 22:04:05 2024, INFO, maat.rule(49229), table:<WANNAT_OBJ_UE_ID> rule_count:1 +Wed Apr 24 22:04:05 2024, INFO, maat.rule(49229), Full config version 1 load 3 entries complete +Wed Apr 24 22:04:13 2024, INFO, maat.table(49356), successfully register physical table[WANNAT_COMPILE]->table_id:0 +Wed Apr 24 22:04:13 2024, INFO, maat.table(49356), successfully register physical table[WANNAT_GROUP_COMPILE_RELATION]->table_id:1 +Wed Apr 24 22:04:13 2024, INFO, maat.table(49356), successfully register physical table[GROUP2GROUP]->table_id:2 +Wed Apr 24 22:04:13 2024, INFO, maat.table(49356), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Wed Apr 24 22:04:13 2024, INFO, maat.table(49356), successfully register virtual table[UE_ID]->vtable_id:4, physical_table_id:3 +Wed Apr 24 22:04:13 2024, INFO, maat.table(49356), default compile table id: -1 +Wed Apr 24 22:04:13 2024, INFO, maat.table(49356), group2group table id: 2 +Wed Apr 24 22:04:13 2024, INFO, maat.config_monitor(49356), Maat initial with JSON file /root/Git/demo/demo1/maat_json.json, formating... +Wed Apr 24 22:04:13 2024, INFO, maat.config_monitor(49356), JSON file /root/Git/demo/demo1/maat_json.json md5: 0092fcfeea96940d7ac0f1e87e21844f, generate index file /root/Git/demo/demo1/maat_json.json_iris_tmp/index OK +Wed Apr 24 22:04:13 2024, INFO, maat.config_monitor(49356), load /root/Git/demo/demo1/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Wed Apr 24 22:04:13 2024, INFO, maat.compile(49356), Build bool matcher of 1 expressions with 16777356 bytes memory. +Wed Apr 24 22:04:13 2024, INFO, maat.compile(49356), table[WANNAT_COMPILE] commit 1 compile rules and rebuild compile bool_matcher completed, version:1, consume:2ms +Wed Apr 24 22:04:13 2024, INFO, maat.expr_matcher(49356), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Wed Apr 24 22:04:13 2024, INFO, maat.expr(49356), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:2ms +Wed Apr 24 22:04:13 2024, INFO, maat.rule(49356), table:<WANNAT_COMPILE> rule_count:1 +Wed Apr 24 22:04:13 2024, INFO, maat.rule(49356), table:<WANNAT_GROUP_COMPILE_RELATION> rule_count:1 +Wed Apr 24 22:04:13 2024, INFO, maat.rule(49356), table:<WANNAT_OBJ_UE_ID> rule_count:1 +Wed Apr 24 22:04:13 2024, INFO, maat.rule(49356), Full config version 1 load 3 entries complete +Wed Apr 24 22:05:47 2024, INFO, maat.table(49534), successfully register physical table[WANNAT_COMPILE]->table_id:0 +Wed Apr 24 22:05:47 2024, INFO, maat.table(49534), successfully register physical table[WANNAT_GROUP_COMPILE_RELATION]->table_id:1 +Wed Apr 24 22:05:47 2024, INFO, maat.table(49534), successfully register physical table[GROUP2GROUP]->table_id:2 +Wed Apr 24 22:05:47 2024, INFO, maat.table(49534), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Wed Apr 24 22:05:47 2024, INFO, maat.table(49534), successfully register virtual table[UE_ID]->vtable_id:4, physical_table_id:3 +Wed Apr 24 22:05:47 2024, INFO, maat.table(49534), default compile table id: 0 +Wed Apr 24 22:05:47 2024, INFO, maat.table(49534), group2group table id: 2 +Wed Apr 24 22:05:47 2024, INFO, maat.config_monitor(49534), Maat initial with JSON file /root/Git/demo/demo1/maat_json.json, formating... +Wed Apr 24 22:05:47 2024, INFO, maat.config_monitor(49534), JSON file /root/Git/demo/demo1/maat_json.json md5: 0092fcfeea96940d7ac0f1e87e21844f, generate index file /root/Git/demo/demo1/maat_json.json_iris_tmp/index OK +Wed Apr 24 22:05:47 2024, INFO, maat.config_monitor(49534), load /root/Git/demo/demo1/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Wed Apr 24 22:05:47 2024, INFO, maat.compile(49534), Build bool matcher of 1 expressions with 16777356 bytes memory. +Wed Apr 24 22:05:47 2024, INFO, maat.compile(49534), table[WANNAT_COMPILE] commit 1 compile rules and rebuild compile bool_matcher completed, version:1, consume:1ms +Wed Apr 24 22:05:47 2024, INFO, maat.expr_matcher(49534), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Wed Apr 24 22:05:47 2024, INFO, maat.expr(49534), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:2ms +Wed Apr 24 22:05:47 2024, INFO, maat.rule(49534), table:<WANNAT_COMPILE> rule_count:1 +Wed Apr 24 22:05:47 2024, INFO, maat.rule(49534), table:<WANNAT_GROUP_COMPILE_RELATION> rule_count:1 +Wed Apr 24 22:05:47 2024, INFO, maat.rule(49534), table:<WANNAT_OBJ_UE_ID> rule_count:1 +Wed Apr 24 22:05:47 2024, INFO, maat.rule(49534), Full config version 1 load 3 entries complete diff --git a/demo1/table_info.conf b/demo1/table_info.conf index fda91e0..f9a8c7b 100644 --- a/demo1/table_info.conf +++ b/demo1/table_info.conf @@ -1,19 +1,24 @@ [ { "table_id":0, - "table_name":"COMPILE", + "table_name":"WANNAT_COMPILE", "table_type":"compile", "default_compile_table":0, - "valid_column":8, + "valid_column":9, "custom": { "compile_id":1, + "service":2, + "action":3, + "do_blacklist":4, + "do_log":5, "tags":6, - "clause_num":9 + "user_region":7, + "clause_num":8 } }, { "table_id":1, - "table_name":"GROUP2COMPILE", + "table_name":"WANNAT_GROUP_COMPILE_RELATION", "table_type":"group2compile", "associated_compile_table_id":0, "valid_column":6, diff --git a/demo2/maat_json.json b/demo2/maat_json.json index 64558a8..192e80d 100644 --- a/demo2/maat_json.json +++ b/demo2/maat_json.json @@ -1,14 +1,102 @@ { - "compile_table": "COMPILE", - "group2compile_table": "GROUP2COMPILE", + "compile_table": "WANNAT_COMPILE", + "group2compile_table": "WANNAT_GROUP_COMPILE_RELATION", "group2group_table": "GROUP2GROUP", - "plugin_table": { - "table_name": "TEST_IP_PLUGIN_WITH_EXDATA", - "table_content": [ - "101\t4\t192.168.30.99\t192.168.30.101\tSomething-like-json\t1", - "102\t4\t192.168.30.90\t192.168.30.128\tBigger-range-should-in-the-back\t1", - "103\t6\t2001:db8:1234::\t2001:db8:1235::\tBigger-range-should-in-the-back\t1", - "104\t6\t2001:db8:1234::1\t2001:db8:1234::5210\tSomething-like-json\t1", + "rules": [ + { + "compile_id": 301, + "service": 0, + "action": 1, + "do_blacklist": 0, + "do_log": 2, + "effective_range": "{}", + "user_region": "{\"ip_object_ids\":[203,204], \"translate_type\":\"never\", \"time_interval\":123, \"connection_count\":1243}", + "group_num": 8, + "is_valid": "yes", + "modified_time": "100", + "groups": [ + { + "virtual_table": "UE_ID", + "group_name": "SNAT", + "group_id": 1, + "not_flag": 0, + "nth_clause": 1, + "regions": [ + { + "table_name": "WANNAT_OBJ_UE_ID", + "table_type": "expr", + "table_content": { + "region_id": 101, + "keywords": "abcdefghij", + "expr_type": "none", + "match_method": "exact", + "is_hexbin": "no", + "format": "uncase plain" + } + } + ] + } ] }, -} + { + "compile_id": 302, + "service": 0, + "action": 2, + "do_blacklist": 0, + "do_log": 2, + "effect_range": "{}", + "user_region": "{\"ue_object_ids\":[102], \"failover\":\"drop\"}", + "is_valid": "yes", + "modified_time": "200", + "groups": [ + { + "virtual_table": "WANNAT_OBJ_IP_ADDR", + "group_id": 2, + "group_name": "DNAT", + "sub_groups": [ + { + "group_name": "DNAT_SRC", + "group_id": 3, + "not_flag": 0, + "nth_clause": 1, + "regions": [ + { + "table_name": "WANNAT_OBJ_IP_ADDR", + "table_type": "ip", + "table_content": { + "region_id": 201, + "addr_type": "ipv4", + "addr_format": "CIDR", + "ip1": "20.20.20.20", + "ip2": "32", + "port": "0-65535" + } + } + ] + }, + { + "group_name": "DNAT_DST", + "group_id": 4, + "not_flag": 0, + "nth_clause": 1, + "regions": [ + { + "table_name": "WANNAT_OBJ_IP_ADDR", + "table_type": "ip", + "table_content": { + "region_id": 201, + "addr_type": "ipv4", + "addr_format": "CIDR", + "ip1": "8.8.8.8", + "ip2": "32", + "port": "0-65535" + } + } + ] + } + ] + } + ] + } + ] +}
\ No newline at end of file diff --git a/demo2/maat_json.json_iris_tmp/GROUP2GROUP.local b/demo2/maat_json.json_iris_tmp/GROUP2GROUP.local new file mode 100644 index 0000000..40596ce --- /dev/null +++ b/demo2/maat_json.json_iris_tmp/GROUP2GROUP.local @@ -0,0 +1,2 @@ +0000000001 +2 3,4 null 1 diff --git a/demo2/maat_json.json_iris_tmp/WANNAT_COMPILE.local b/demo2/maat_json.json_iris_tmp/WANNAT_COMPILE.local new file mode 100644 index 0000000..1af525b --- /dev/null +++ b/demo2/maat_json.json_iris_tmp/WANNAT_COMPILE.local @@ -0,0 +1,3 @@ +0000000002 +301 0 1 0 2 {} {"ip_object_ids":[203,204], "translate_type":"never", "time_interval":123, "connection_count":1243} 1 1 +302 0 2 0 2 {} {"ue_object_ids":[102], "failover":"drop"} 1 1 diff --git a/demo2/maat_json.json_iris_tmp/WANNAT_GROUP_COMPILE_RELATION.local b/demo2/maat_json.json_iris_tmp/WANNAT_GROUP_COMPILE_RELATION.local new file mode 100644 index 0000000..5ae896a --- /dev/null +++ b/demo2/maat_json.json_iris_tmp/WANNAT_GROUP_COMPILE_RELATION.local @@ -0,0 +1,3 @@ +0000000002 +1 301 0 UE_ID 0 1 +2 302 0 WANNAT_OBJ_IP_ADDR 0 1 diff --git a/demo2/maat_json.json_iris_tmp/WANNAT_OBJ_IP_ADDR.local b/demo2/maat_json.json_iris_tmp/WANNAT_OBJ_IP_ADDR.local new file mode 100644 index 0000000..e5d995a --- /dev/null +++ b/demo2/maat_json.json_iris_tmp/WANNAT_OBJ_IP_ADDR.local @@ -0,0 +1,3 @@ +0000000002 +201 3 4 CIDR 20.20.20.20 32 0-65535 1 +201 4 4 CIDR 8.8.8.8 32 0-65535 1 diff --git a/demo2/maat_json.json_iris_tmp/WANNAT_OBJ_UE_ID.local b/demo2/maat_json.json_iris_tmp/WANNAT_OBJ_UE_ID.local new file mode 100644 index 0000000..6d0104a --- /dev/null +++ b/demo2/maat_json.json_iris_tmp/WANNAT_OBJ_UE_ID.local @@ -0,0 +1,2 @@ +0000000001 +101 1 abcdefghij 0 3 0 1 diff --git a/demo2/maat_json.json_iris_tmp/index/full_config_index.0000000001 b/demo2/maat_json.json_iris_tmp/index/full_config_index.0000000001 new file mode 100644 index 0000000..ecfc867 --- /dev/null +++ b/demo2/maat_json.json_iris_tmp/index/full_config_index.0000000001 @@ -0,0 +1,5 @@ +WANNAT_COMPILE 2 /root/Git/demo/demo2/maat_json.json_iris_tmp/WANNAT_COMPILE.local +WANNAT_GROUP_COMPILE_RELATION 2 /root/Git/demo/demo2/maat_json.json_iris_tmp/WANNAT_GROUP_COMPILE_RELATION.local +GROUP2GROUP 1 /root/Git/demo/demo2/maat_json.json_iris_tmp/GROUP2GROUP.local +WANNAT_OBJ_UE_ID 1 /root/Git/demo/demo2/maat_json.json_iris_tmp/WANNAT_OBJ_UE_ID.local +WANNAT_OBJ_IP_ADDR 2 /root/Git/demo/demo2/maat_json.json_iris_tmp/WANNAT_OBJ_IP_ADDR.local diff --git a/demo2/main.c b/demo2/main.c index 1384db8..150b645 100644 --- a/demo2/main.c +++ b/demo2/main.c @@ -1,112 +1,68 @@ -#include <assert.h> - #include "maat.h" -#include "assert.h" -#include "stdlib.h" -// #include "maat_utils.h" +#include "stdio.h" +#include <arpa/inet.h> +#include <assert.h> +#include <stddef.h> +#include <string.h> #define ARRAY_SIZE 16 -const char *json_filename = "./maat_json.json"; -const char *table_info_path = "./table_info.conf"; - -struct ip_plugin_ud { - long long rule_id; - char *buffer; - size_t buf_len; -}; -// void ip_plugin_ex_new_cb(const char *table_name, int table_id, const char *key, -// const char *table_line, void **ad, long argl, void *argp) -// { -// int *counter = (int *)argp; -// size_t column_offset=0, column_len=0; -// struct ip_plugin_ud *ud = ALLOC(struct ip_plugin_ud, 1); - -// int ret = get_column_pos(table_line, 1, &column_offset, &column_len); -// EXPECT_EQ(ret, 0); - -// ud->rule_id = atoll(table_line + column_offset); - -// ret = get_column_pos(table_line, 5, &column_offset, &column_len); -// EXPECT_EQ(ret, 0); - -// ud->buffer = ALLOC(char, column_len + 1); -// strncpy(ud->buffer, table_line + column_offset, column_len); - -// ud->buf_len = column_len + 1; -// *ad = ud; -// (*counter)++; -// } - -// void ip_plugin_ex_free_cb(int table_id, void **ad, long argl, void *argp) -// { -// struct ip_plugin_ud *ud = (struct ip_plugin_ud *)(*ad); - -// ud->rule_id = 0; -// memset(ud->buffer, 0, ud->buf_len); -// ud->buf_len = 0; - -// free(ud->buffer); -// free(ud); -// *ad = NULL; -// } - -// void ip_plugin_ex_dup_cb(int table_id, void **to, void **from, long argl, void *argp) -// { -// struct ip_plugin_ud *ud = (struct ip_plugin_ud *)(*from); - -// *to = ud; -// } +const char *json_filename = "/root/Git/demo/demo2/maat_json.json"; +const char *table_info_path = "/root/Git/demo/demo2/table_info.conf"; int main() { - // /* initialize maat options which will be used by maat_new() */ - // struct maat_options *opts = maat_options_new(); - // maat_options_set_json_file(opts, json_filename); - // maat_options_set_logger(opts, "./sample_test.log", LOG_LEVEL_INFO); - - // /* create maat instance, rules in table_info.conf will be loaded. */ - // struct maat *maat_instance = maat_new(opts, table_info_path); - // assert(maat_instance != NULL); - // maat_options_free(opts); - - // const char *table_name = "TEST_IP_PLUGIN_WITH_EXDATA"; /* maat_json.json has TEST_IP_PLUGIN_WITH_EXDATA rule */ - // int table_id = maat_get_table_id(maat_instance, table_name); - // assert(table_id == 1); /* defined in table_info.conf */ - - // int ret = maat_plugin_table_ex_schema_register(maat_inst, table_name, - // ip_plugin_ex_new_cb, - // ip_plugin_ex_free_cb, - // ip_plugin_ex_dup_cb, - // 0, &ip_plugin_ex_data_counter); - // EXPECT_EQ(ret, 0); - // EXPECT_EQ(ip_plugin_ex_data_counter, 4); - - // struct ip_addr ipv4; - // ipv4.ip_type = IPv4; - // ret = inet_pton(AF_INET, "192.168.30.100", &ipv4.ipv4); - // EXPECT_EQ(ret, 1); - - // /* get ex_data */ - // struct ip_plugin_ud *results[ARRAY_SIZE]; - // ret = maat_ip_plugin_table_get_ex_data(maat_inst, table_id, &ipv4, - // (void **)results, ARRAY_SIZE); - // EXPECT_EQ(ret, 2); - // EXPECT_EQ(results[0]->rule_id, 101); - // EXPECT_EQ(results[1]->rule_id, 102); - - // struct ip_addr ipv6; - // ipv6.ip_type = IPv6; - // inet_pton(AF_INET6, "2001:db8:1234::5210", &(ipv6.ipv6)); - // memset(results, 0, sizeof(results)); - - // ret = maat_ip_plugin_table_get_ex_data(maat_inst, table_id, &ipv6, - // (void**)results, ARRAY_SIZE); - // EXPECT_EQ(ret, 2); - // EXPECT_EQ(results[0]->rule_id, 104); - // EXPECT_EQ(results[1]->rule_id, 103); - - // maat_state_free(state); + /* initialize maat options which will be used by maat_new() */ + struct maat_options *opts = maat_options_new(); + maat_options_set_json_file(opts, json_filename); + maat_options_set_logger(opts, "/root/Git/demo/demo2/sample_test.log", LOG_LEVEL_TRACE); + + /* create maat instance, rules in table_info.conf will be loaded. */ + struct maat *maat_instance = maat_new(opts, table_info_path); + assert(maat_instance != NULL); + maat_options_free(opts); + + const char *table_name = "UE_ID"; // 虚拟表 5 + int table_id = maat_get_table_id(maat_instance, table_name); + assert(table_id == 5); /* defined in table_info.conf */ + + int thread_id = 0; + long long results[ARRAY_SIZE] = {0}; + size_t n_hit_result = 0; + int ret = 0; + + /* store scanning intermediate state */ + struct maat_state *state = maat_state_new(maat_instance, thread_id); + assert(state != NULL); + + const char *ue_id = "abcdefghij"; + + ret = maat_scan_string(maat_instance, table_id, ue_id, strlen(ue_id), results, ARRAY_SIZE, &n_hit_result, state); + assert(ret == MAAT_SCAN_HIT); + assert(n_hit_result == 1); + assert(results[0] == 301); + + maat_state_free(state); + + struct ip_addr ipv4; + ipv4.ip_type = 4; + ret = inet_pton(AF_INET, "20.20.20.20", &ipv4.ipv4); + + struct maat_state *state2 = maat_state_new(maat_instance, thread_id); + assert(state2 != NULL); + + uint32_t a = ipv4.ipv4; + ret = maat_scan_ipv4_port(maat_instance, 4, a, 443, results, ARRAY_SIZE, &n_hit_result, state2); + assert(ret == MAAT_SCAN_HIT); + assert(n_hit_result == 1); + assert(results[0] == 302); + + struct maat_hit_path path_array[7] = {0}; + ret = maat_state_get_hit_paths(state2, path_array, 7); + assert(ret == 1); + + + maat_state_free(state2); return 0; } diff --git a/demo2/sample_test.log b/demo2/sample_test.log new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/demo2/sample_test.log diff --git a/demo2/sample_test.log.2024-04-25 b/demo2/sample_test.log.2024-04-25 new file mode 100644 index 0000000..6832f16 --- /dev/null +++ b/demo2/sample_test.log.2024-04-25 @@ -0,0 +1,287 @@ +Thu Apr 25 00:36:40 2024, INFO, maat.table(61159), successfully register physical table[WANNAT_COMPILE]->table_id:0 +Thu Apr 25 00:36:40 2024, INFO, maat.table(61159), successfully register physical table[WANNAT_GROUP_COMPILE_RELATION]->table_id:1 +Thu Apr 25 00:36:40 2024, INFO, maat.table(61159), successfully register physical table[GROUP2GROUP]->table_id:2 +Thu Apr 25 00:36:40 2024, INFO, maat.table(61159), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Thu Apr 25 00:36:40 2024, INFO, maat.table(61159), successfully register physical table[WANNAT_OBJ_IP_ADDR]->table_id:4 +Thu Apr 25 00:36:40 2024, INFO, maat.table(61159), successfully register virtual table[UE_ID]->vtable_id:5, physical_table_id:3 +Thu Apr 25 00:36:40 2024, INFO, maat.table(61159), successfully register virtual table[IP_ADDR]->vtable_id:6, physical_table_id:4 +Thu Apr 25 00:36:40 2024, INFO, maat.table(61159), default compile table id: 0 +Thu Apr 25 00:36:40 2024, INFO, maat.table(61159), group2group table id: 2 +Thu Apr 25 00:36:40 2024, INFO, maat.config_monitor(61159), Maat initial with JSON file /root/Git/demo/demo2/maat_json.json, formating... +Thu Apr 25 00:36:40 2024, INFO, maat.config_monitor(61159), JSON file /root/Git/demo/demo2/maat_json.json md5: 6f66a42efd48a7f25bd15cd17ec3e48c, generate index file /root/Git/demo/demo2/maat_json.json_iris_tmp/index OK +Thu Apr 25 00:36:40 2024, INFO, maat.config_monitor(61159), load /root/Git/demo/demo2/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Thu Apr 25 00:36:40 2024, INFO, maat.compile(61159), Build bool matcher of 2 expressions with 16777420 bytes memory. +Thu Apr 25 00:36:40 2024, INFO, maat.compile(61159), table[WANNAT_COMPILE] commit 2 compile rules and rebuild compile bool_matcher completed, version:1, consume:2ms +Thu Apr 25 00:36:40 2024, INFO, maat.group(61159), table[GROUP2GROUP] commit 1 g2g rules and rebuild super_groups completed, version:1, consume:0ms +Thu Apr 25 00:36:40 2024, INFO, maat.expr_matcher(61159), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Thu Apr 25 00:36:40 2024, INFO, maat.expr(61159), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:2ms +Thu Apr 25 00:36:40 2024, INFO, maat.ip(61159), table[WANNAT_OBJ_IP_ADDR] commit 1 ip rules and rebuild ip_matcher completed, version:1, consume:0ms +Thu Apr 25 00:36:40 2024, INFO, maat.rule(61159), table:<WANNAT_COMPILE> rule_count:2 +Thu Apr 25 00:36:40 2024, INFO, maat.rule(61159), table:<WANNAT_GROUP_COMPILE_RELATION> rule_count:2 +Thu Apr 25 00:36:40 2024, INFO, maat.rule(61159), table:<GROUP2GROUP> rule_count:1 +Thu Apr 25 00:36:40 2024, INFO, maat.rule(61159), table:<WANNAT_OBJ_UE_ID> rule_count:1 +Thu Apr 25 00:36:40 2024, INFO, maat.rule(61159), table:<WANNAT_OBJ_IP_ADDR> rule_count:1 +Thu Apr 25 00:36:40 2024, INFO, maat.rule(61159), Full config version 1 load 7 entries complete +Thu Apr 25 00:36:40 2024, INFO, maat.rule(61207), rule_monitor_loop thread still alive......... +Thu Apr 25 00:38:07 2024, INFO, maat.table(61416), successfully register physical table[WANNAT_COMPILE]->table_id:0 +Thu Apr 25 00:38:07 2024, INFO, maat.table(61416), successfully register physical table[WANNAT_GROUP_COMPILE_RELATION]->table_id:1 +Thu Apr 25 00:38:07 2024, INFO, maat.table(61416), successfully register physical table[GROUP2GROUP]->table_id:2 +Thu Apr 25 00:38:07 2024, INFO, maat.table(61416), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Thu Apr 25 00:38:07 2024, INFO, maat.table(61416), successfully register physical table[WANNAT_OBJ_IP_ADDR]->table_id:4 +Thu Apr 25 00:38:07 2024, INFO, maat.table(61416), successfully register virtual table[UE_ID]->vtable_id:5, physical_table_id:3 +Thu Apr 25 00:38:07 2024, INFO, maat.table(61416), successfully register virtual table[IP_ADDR]->vtable_id:6, physical_table_id:4 +Thu Apr 25 00:38:07 2024, INFO, maat.table(61416), default compile table id: 0 +Thu Apr 25 00:38:07 2024, INFO, maat.table(61416), group2group table id: 2 +Thu Apr 25 00:38:07 2024, INFO, maat.config_monitor(61416), Maat initial with JSON file /root/Git/demo/demo2/maat_json.json, formating... +Thu Apr 25 00:38:07 2024, INFO, maat.config_monitor(61416), JSON file /root/Git/demo/demo2/maat_json.json md5: 563fb0f6fb332fe454a3dfdf9ff1b89c, generate index file /root/Git/demo/demo2/maat_json.json_iris_tmp/index OK +Thu Apr 25 00:38:07 2024, INFO, maat.config_monitor(61416), load /root/Git/demo/demo2/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Thu Apr 25 00:38:07 2024, INFO, maat.compile(61416), Build bool matcher of 2 expressions with 16777420 bytes memory. +Thu Apr 25 00:38:07 2024, INFO, maat.compile(61416), table[WANNAT_COMPILE] commit 2 compile rules and rebuild compile bool_matcher completed, version:1, consume:2ms +Thu Apr 25 00:38:07 2024, INFO, maat.group(61416), table[GROUP2GROUP] commit 1 g2g rules and rebuild super_groups completed, version:1, consume:0ms +Thu Apr 25 00:38:07 2024, INFO, maat.expr_matcher(61416), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Thu Apr 25 00:38:07 2024, INFO, maat.expr(61416), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:2ms +Thu Apr 25 00:38:07 2024, INFO, maat.ip(61416), table[WANNAT_OBJ_IP_ADDR] commit 1 ip rules and rebuild ip_matcher completed, version:1, consume:0ms +Thu Apr 25 00:38:07 2024, INFO, maat.rule(61416), table:<WANNAT_COMPILE> rule_count:2 +Thu Apr 25 00:38:07 2024, INFO, maat.rule(61416), table:<WANNAT_GROUP_COMPILE_RELATION> rule_count:2 +Thu Apr 25 00:38:07 2024, INFO, maat.rule(61416), table:<GROUP2GROUP> rule_count:1 +Thu Apr 25 00:38:07 2024, INFO, maat.rule(61416), table:<WANNAT_OBJ_UE_ID> rule_count:1 +Thu Apr 25 00:38:07 2024, INFO, maat.rule(61416), table:<WANNAT_OBJ_IP_ADDR> rule_count:1 +Thu Apr 25 00:38:07 2024, INFO, maat.rule(61416), Full config version 1 load 7 entries complete +Thu Apr 25 00:40:00 2024, INFO, maat.table(61675), successfully register physical table[WANNAT_COMPILE]->table_id:0 +Thu Apr 25 00:40:00 2024, INFO, maat.table(61675), successfully register physical table[WANNAT_GROUP_COMPILE_RELATION]->table_id:1 +Thu Apr 25 00:40:00 2024, INFO, maat.table(61675), successfully register physical table[GROUP2GROUP]->table_id:2 +Thu Apr 25 00:40:00 2024, INFO, maat.table(61675), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Thu Apr 25 00:40:00 2024, INFO, maat.table(61675), successfully register physical table[WANNAT_OBJ_IP_ADDR]->table_id:4 +Thu Apr 25 00:40:00 2024, INFO, maat.table(61675), successfully register virtual table[UE_ID]->vtable_id:5, physical_table_id:3 +Thu Apr 25 00:40:00 2024, INFO, maat.table(61675), successfully register virtual table[IP_ADDR]->vtable_id:6, physical_table_id:4 +Thu Apr 25 00:40:00 2024, INFO, maat.table(61675), default compile table id: 0 +Thu Apr 25 00:40:00 2024, INFO, maat.table(61675), group2group table id: 2 +Thu Apr 25 00:40:00 2024, INFO, maat.config_monitor(61675), Maat initial with JSON file /root/Git/demo/demo2/maat_json.json, formating... +Thu Apr 25 00:40:00 2024, INFO, maat.config_monitor(61675), JSON file /root/Git/demo/demo2/maat_json.json md5: cde3cbc8256d73870235387256db7729, generate index file /root/Git/demo/demo2/maat_json.json_iris_tmp/index OK +Thu Apr 25 00:40:00 2024, INFO, maat.config_monitor(61675), load /root/Git/demo/demo2/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Thu Apr 25 00:40:00 2024, INFO, maat.compile(61675), Build bool matcher of 2 expressions with 16777420 bytes memory. +Thu Apr 25 00:40:00 2024, INFO, maat.compile(61675), table[WANNAT_COMPILE] commit 2 compile rules and rebuild compile bool_matcher completed, version:1, consume:2ms +Thu Apr 25 00:40:00 2024, INFO, maat.group(61675), table[GROUP2GROUP] commit 1 g2g rules and rebuild super_groups completed, version:1, consume:0ms +Thu Apr 25 00:40:00 2024, INFO, maat.expr_matcher(61675), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Thu Apr 25 00:40:00 2024, INFO, maat.expr(61675), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:5ms +Thu Apr 25 00:40:00 2024, INFO, maat.ip(61675), table[WANNAT_OBJ_IP_ADDR] commit 1 ip rules and rebuild ip_matcher completed, version:1, consume:0ms +Thu Apr 25 00:40:00 2024, INFO, maat.rule(61675), table:<WANNAT_COMPILE> rule_count:2 +Thu Apr 25 00:40:00 2024, INFO, maat.rule(61675), table:<WANNAT_GROUP_COMPILE_RELATION> rule_count:2 +Thu Apr 25 00:40:00 2024, INFO, maat.rule(61675), table:<GROUP2GROUP> rule_count:1 +Thu Apr 25 00:40:00 2024, INFO, maat.rule(61675), table:<WANNAT_OBJ_UE_ID> rule_count:1 +Thu Apr 25 00:40:00 2024, INFO, maat.rule(61675), table:<WANNAT_OBJ_IP_ADDR> rule_count:1 +Thu Apr 25 00:40:00 2024, INFO, maat.rule(61675), Full config version 1 load 7 entries complete +Thu Apr 25 00:40:00 2024, INFO, maat.rule(61705), rule_monitor_loop thread still alive......... +Thu Apr 25 00:43:14 2024, INFO, maat.table(61997), successfully register physical table[WANNAT_COMPILE]->table_id:0 +Thu Apr 25 00:43:14 2024, INFO, maat.table(61997), successfully register physical table[WANNAT_GROUP_COMPILE_RELATION]->table_id:1 +Thu Apr 25 00:43:14 2024, INFO, maat.table(61997), successfully register physical table[GROUP2GROUP]->table_id:2 +Thu Apr 25 00:43:14 2024, INFO, maat.table(61997), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Thu Apr 25 00:43:14 2024, INFO, maat.table(61997), successfully register physical table[WANNAT_OBJ_IP_ADDR]->table_id:4 +Thu Apr 25 00:43:14 2024, INFO, maat.table(61997), successfully register virtual table[UE_ID]->vtable_id:5, physical_table_id:3 +Thu Apr 25 00:43:14 2024, INFO, maat.table(61997), successfully register virtual table[IP_ADDR]->vtable_id:6, physical_table_id:4 +Thu Apr 25 00:43:14 2024, INFO, maat.table(61997), default compile table id: 0 +Thu Apr 25 00:43:14 2024, INFO, maat.table(61997), group2group table id: 2 +Thu Apr 25 00:43:14 2024, INFO, maat.config_monitor(61997), Maat initial with JSON file /root/Git/demo/demo2/maat_json.json, formating... +Thu Apr 25 00:43:14 2024, INFO, maat.config_monitor(61997), JSON file /root/Git/demo/demo2/maat_json.json md5: 21d29e94e4839f465efb88c94795d3e8, generate index file /root/Git/demo/demo2/maat_json.json_iris_tmp/index OK +Thu Apr 25 00:43:14 2024, INFO, maat.config_monitor(61997), load /root/Git/demo/demo2/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Thu Apr 25 00:43:14 2024, INFO, maat.compile(61997), Build bool matcher of 2 expressions with 16777420 bytes memory. +Thu Apr 25 00:43:14 2024, INFO, maat.compile(61997), table[WANNAT_COMPILE] commit 2 compile rules and rebuild compile bool_matcher completed, version:1, consume:4ms +Thu Apr 25 00:43:14 2024, INFO, maat.group(61997), table[GROUP2GROUP] commit 1 g2g rules and rebuild super_groups completed, version:1, consume:0ms +Thu Apr 25 00:43:14 2024, INFO, maat.expr_matcher(61997), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Thu Apr 25 00:43:14 2024, INFO, maat.expr(61997), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:2ms +Thu Apr 25 00:43:14 2024, INFO, maat.ip(61997), table[WANNAT_OBJ_IP_ADDR] commit 1 ip rules and rebuild ip_matcher completed, version:1, consume:0ms +Thu Apr 25 00:43:14 2024, INFO, maat.rule(61997), table:<WANNAT_COMPILE> rule_count:2 +Thu Apr 25 00:43:14 2024, INFO, maat.rule(61997), table:<WANNAT_GROUP_COMPILE_RELATION> rule_count:2 +Thu Apr 25 00:43:14 2024, INFO, maat.rule(61997), table:<GROUP2GROUP> rule_count:1 +Thu Apr 25 00:43:14 2024, INFO, maat.rule(61997), table:<WANNAT_OBJ_UE_ID> rule_count:1 +Thu Apr 25 00:43:14 2024, INFO, maat.rule(61997), table:<WANNAT_OBJ_IP_ADDR> rule_count:1 +Thu Apr 25 00:43:14 2024, INFO, maat.rule(61997), Full config version 1 load 7 entries complete +Thu Apr 25 00:45:08 2024, INFO, maat.table(62270), successfully register physical table[WANNAT_COMPILE]->table_id:0 +Thu Apr 25 00:45:08 2024, INFO, maat.table(62270), successfully register physical table[WANNAT_GROUP_COMPILE_RELATION]->table_id:1 +Thu Apr 25 00:45:08 2024, INFO, maat.table(62270), successfully register physical table[GROUP2GROUP]->table_id:2 +Thu Apr 25 00:45:08 2024, INFO, maat.table(62270), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Thu Apr 25 00:45:08 2024, INFO, maat.table(62270), successfully register physical table[WANNAT_OBJ_IP_ADDR]->table_id:4 +Thu Apr 25 00:45:08 2024, INFO, maat.table(62270), successfully register virtual table[UE_ID]->vtable_id:5, physical_table_id:3 +Thu Apr 25 00:45:08 2024, INFO, maat.table(62270), successfully register virtual table[IP_ADDR]->vtable_id:6, physical_table_id:4 +Thu Apr 25 00:45:08 2024, INFO, maat.table(62270), default compile table id: 0 +Thu Apr 25 00:45:08 2024, INFO, maat.table(62270), group2group table id: 2 +Thu Apr 25 00:45:08 2024, INFO, maat.config_monitor(62270), Maat initial with JSON file /root/Git/demo/demo2/maat_json.json, formating... +Thu Apr 25 00:45:08 2024, INFO, maat.config_monitor(62270), JSON file /root/Git/demo/demo2/maat_json.json md5: 6a93a9257681db36b89fc14c1af5157e, generate index file /root/Git/demo/demo2/maat_json.json_iris_tmp/index OK +Thu Apr 25 00:45:08 2024, INFO, maat.config_monitor(62270), load /root/Git/demo/demo2/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Thu Apr 25 00:45:08 2024, FATAL, maat.ip(62270), [ip_runtime_update_row:428] ip item(item_id:201) add to ip runtime htable failed +Thu Apr 25 00:45:08 2024, FATAL, maat.rule(62270), [maat_update_cb:178] table<WANNAT_OBJ_IP_ADDR> update runtime error for rules:201 4 4 CIDR 8.8.8.8 32 0-65535 1 + +Thu Apr 25 00:45:08 2024, INFO, maat.compile(62270), Build bool matcher of 2 expressions with 16777420 bytes memory. +Thu Apr 25 00:45:08 2024, INFO, maat.compile(62270), table[WANNAT_COMPILE] commit 2 compile rules and rebuild compile bool_matcher completed, version:1, consume:2ms +Thu Apr 25 00:45:08 2024, INFO, maat.group(62270), table[GROUP2GROUP] commit 1 g2g rules and rebuild super_groups completed, version:1, consume:0ms +Thu Apr 25 00:45:08 2024, INFO, maat.expr_matcher(62270), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Thu Apr 25 00:45:08 2024, INFO, maat.expr(62270), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:5ms +Thu Apr 25 00:45:08 2024, INFO, maat.ip(62270), table[WANNAT_OBJ_IP_ADDR] commit 1 ip rules and rebuild ip_matcher completed, version:1, consume:0ms +Thu Apr 25 00:45:08 2024, INFO, maat.rule(62270), table:<WANNAT_COMPILE> rule_count:2 +Thu Apr 25 00:45:08 2024, INFO, maat.rule(62270), table:<WANNAT_GROUP_COMPILE_RELATION> rule_count:2 +Thu Apr 25 00:45:08 2024, INFO, maat.rule(62270), table:<GROUP2GROUP> rule_count:1 +Thu Apr 25 00:45:08 2024, INFO, maat.rule(62270), table:<WANNAT_OBJ_UE_ID> rule_count:1 +Thu Apr 25 00:45:08 2024, INFO, maat.rule(62270), table:<WANNAT_OBJ_IP_ADDR> rule_count:1 +Thu Apr 25 00:45:08 2024, INFO, maat.rule(62270), Full config version 1 load 7 entries complete +Thu Apr 25 00:45:53 2024, INFO, maat.table(62491), successfully register physical table[WANNAT_COMPILE]->table_id:0 +Thu Apr 25 00:45:53 2024, INFO, maat.table(62491), successfully register physical table[WANNAT_GROUP_COMPILE_RELATION]->table_id:1 +Thu Apr 25 00:45:53 2024, INFO, maat.table(62491), successfully register physical table[GROUP2GROUP]->table_id:2 +Thu Apr 25 00:45:53 2024, INFO, maat.table(62491), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Thu Apr 25 00:45:53 2024, INFO, maat.table(62491), successfully register physical table[WANNAT_OBJ_IP_ADDR]->table_id:4 +Thu Apr 25 00:45:53 2024, INFO, maat.table(62491), successfully register virtual table[UE_ID]->vtable_id:5, physical_table_id:3 +Thu Apr 25 00:45:53 2024, INFO, maat.table(62491), successfully register virtual table[IP_ADDR]->vtable_id:6, physical_table_id:4 +Thu Apr 25 00:45:53 2024, INFO, maat.table(62491), default compile table id: 0 +Thu Apr 25 00:45:53 2024, INFO, maat.table(62491), group2group table id: 2 +Thu Apr 25 00:45:53 2024, INFO, maat.config_monitor(62491), Maat initial with JSON file /root/Git/demo/demo2/maat_json.json, formating... +Thu Apr 25 00:45:53 2024, INFO, maat.config_monitor(62491), JSON file /root/Git/demo/demo2/maat_json.json md5: 6a93a9257681db36b89fc14c1af5157e, generate index file /root/Git/demo/demo2/maat_json.json_iris_tmp/index OK +Thu Apr 25 00:45:53 2024, INFO, maat.config_monitor(62491), load /root/Git/demo/demo2/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Thu Apr 25 00:45:53 2024, FATAL, maat.ip(62491), [ip_runtime_update_row:428] ip item(item_id:201) add to ip runtime htable failed +Thu Apr 25 00:45:53 2024, FATAL, maat.rule(62491), [maat_update_cb:178] table<WANNAT_OBJ_IP_ADDR> update runtime error for rules:201 4 4 CIDR 8.8.8.8 32 0-65535 1 + +Thu Apr 25 00:45:53 2024, INFO, maat.compile(62491), Build bool matcher of 2 expressions with 16777420 bytes memory. +Thu Apr 25 00:45:53 2024, INFO, maat.compile(62491), table[WANNAT_COMPILE] commit 2 compile rules and rebuild compile bool_matcher completed, version:1, consume:2ms +Thu Apr 25 00:45:53 2024, INFO, maat.group(62491), table[GROUP2GROUP] commit 1 g2g rules and rebuild super_groups completed, version:1, consume:0ms +Thu Apr 25 00:45:53 2024, INFO, maat.expr_matcher(62491), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Thu Apr 25 00:45:53 2024, INFO, maat.expr(62491), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:3ms +Thu Apr 25 00:45:53 2024, INFO, maat.ip(62491), table[WANNAT_OBJ_IP_ADDR] commit 1 ip rules and rebuild ip_matcher completed, version:1, consume:0ms +Thu Apr 25 00:45:53 2024, INFO, maat.rule(62491), table:<WANNAT_COMPILE> rule_count:2 +Thu Apr 25 00:45:53 2024, INFO, maat.rule(62491), table:<WANNAT_GROUP_COMPILE_RELATION> rule_count:2 +Thu Apr 25 00:45:53 2024, INFO, maat.rule(62491), table:<GROUP2GROUP> rule_count:1 +Thu Apr 25 00:45:53 2024, INFO, maat.rule(62491), table:<WANNAT_OBJ_UE_ID> rule_count:1 +Thu Apr 25 00:45:53 2024, INFO, maat.rule(62491), table:<WANNAT_OBJ_IP_ADDR> rule_count:1 +Thu Apr 25 00:45:53 2024, INFO, maat.rule(62491), Full config version 1 load 7 entries complete +Thu Apr 25 00:46:42 2024, INFO, maat.table(62650), successfully register physical table[WANNAT_COMPILE]->table_id:0 +Thu Apr 25 00:46:42 2024, INFO, maat.table(62650), successfully register physical table[WANNAT_GROUP_COMPILE_RELATION]->table_id:1 +Thu Apr 25 00:46:42 2024, INFO, maat.table(62650), successfully register physical table[GROUP2GROUP]->table_id:2 +Thu Apr 25 00:46:42 2024, INFO, maat.table(62650), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Thu Apr 25 00:46:42 2024, INFO, maat.table(62650), successfully register physical table[WANNAT_OBJ_IP_ADDR]->table_id:4 +Thu Apr 25 00:46:42 2024, INFO, maat.table(62650), successfully register virtual table[UE_ID]->vtable_id:5, physical_table_id:3 +Thu Apr 25 00:46:42 2024, INFO, maat.table(62650), successfully register virtual table[IP_ADDR]->vtable_id:6, physical_table_id:4 +Thu Apr 25 00:46:42 2024, INFO, maat.table(62650), default compile table id: 0 +Thu Apr 25 00:46:42 2024, INFO, maat.table(62650), group2group table id: 2 +Thu Apr 25 00:46:42 2024, INFO, maat.config_monitor(62650), Maat initial with JSON file /root/Git/demo/demo2/maat_json.json, formating... +Thu Apr 25 00:46:42 2024, INFO, maat.config_monitor(62650), JSON file /root/Git/demo/demo2/maat_json.json md5: 6a93a9257681db36b89fc14c1af5157e, generate index file /root/Git/demo/demo2/maat_json.json_iris_tmp/index OK +Thu Apr 25 00:46:42 2024, INFO, maat.config_monitor(62650), load /root/Git/demo/demo2/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Thu Apr 25 00:46:42 2024, FATAL, maat.ip(62650), [ip_runtime_update_row:428] ip item(item_id:201) add to ip runtime htable failed +Thu Apr 25 00:46:42 2024, FATAL, maat.rule(62650), [maat_update_cb:178] table<WANNAT_OBJ_IP_ADDR> update runtime error for rules:201 4 4 CIDR 8.8.8.8 32 0-65535 1 + +Thu Apr 25 00:46:42 2024, INFO, maat.compile(62650), Build bool matcher of 2 expressions with 16777420 bytes memory. +Thu Apr 25 00:46:42 2024, INFO, maat.compile(62650), table[WANNAT_COMPILE] commit 2 compile rules and rebuild compile bool_matcher completed, version:1, consume:2ms +Thu Apr 25 00:46:42 2024, INFO, maat.group(62650), table[GROUP2GROUP] commit 1 g2g rules and rebuild super_groups completed, version:1, consume:0ms +Thu Apr 25 00:46:42 2024, INFO, maat.expr_matcher(62650), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Thu Apr 25 00:46:42 2024, INFO, maat.expr(62650), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:2ms +Thu Apr 25 00:46:42 2024, INFO, maat.ip(62650), table[WANNAT_OBJ_IP_ADDR] commit 1 ip rules and rebuild ip_matcher completed, version:1, consume:0ms +Thu Apr 25 00:46:42 2024, INFO, maat.rule(62650), table:<WANNAT_COMPILE> rule_count:2 +Thu Apr 25 00:46:42 2024, INFO, maat.rule(62650), table:<WANNAT_GROUP_COMPILE_RELATION> rule_count:2 +Thu Apr 25 00:46:42 2024, INFO, maat.rule(62650), table:<GROUP2GROUP> rule_count:1 +Thu Apr 25 00:46:42 2024, INFO, maat.rule(62650), table:<WANNAT_OBJ_UE_ID> rule_count:1 +Thu Apr 25 00:46:42 2024, INFO, maat.rule(62650), table:<WANNAT_OBJ_IP_ADDR> rule_count:1 +Thu Apr 25 00:46:42 2024, INFO, maat.rule(62650), Full config version 1 load 7 entries complete +Thu Apr 25 00:51:26 2024, INFO, maat.table(63073), successfully register physical table[WANNAT_COMPILE]->table_id:0 +Thu Apr 25 00:51:26 2024, INFO, maat.table(63073), successfully register physical table[WANNAT_GROUP_COMPILE_RELATION]->table_id:1 +Thu Apr 25 00:51:26 2024, INFO, maat.table(63073), successfully register physical table[GROUP2GROUP]->table_id:2 +Thu Apr 25 00:51:26 2024, INFO, maat.table(63073), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Thu Apr 25 00:51:26 2024, INFO, maat.table(63073), successfully register physical table[WANNAT_OBJ_IP_ADDR]->table_id:4 +Thu Apr 25 00:51:26 2024, INFO, maat.table(63073), successfully register virtual table[UE_ID]->vtable_id:5, physical_table_id:3 +Thu Apr 25 00:51:26 2024, INFO, maat.table(63073), successfully register virtual table[IP_ADDR]->vtable_id:6, physical_table_id:4 +Thu Apr 25 00:51:26 2024, INFO, maat.table(63073), default compile table id: 0 +Thu Apr 25 00:51:26 2024, INFO, maat.table(63073), group2group table id: 2 +Thu Apr 25 00:51:26 2024, INFO, maat.config_monitor(63073), Maat initial with JSON file /root/Git/demo/demo2/maat_json.json, formating... +Thu Apr 25 00:51:26 2024, INFO, maat.config_monitor(63073), JSON file /root/Git/demo/demo2/maat_json.json md5: 6a93a9257681db36b89fc14c1af5157e, generate index file /root/Git/demo/demo2/maat_json.json_iris_tmp/index OK +Thu Apr 25 00:51:26 2024, INFO, maat.config_monitor(63073), load /root/Git/demo/demo2/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Thu Apr 25 00:51:26 2024, FATAL, maat.ip(63073), [ip_runtime_update_row:428] ip item(item_id:201) add to ip runtime htable failed +Thu Apr 25 00:51:26 2024, FATAL, maat.rule(63073), [maat_update_cb:178] table<WANNAT_OBJ_IP_ADDR> update runtime error for rules:201 4 4 CIDR 8.8.8.8 32 0-65535 1 + +Thu Apr 25 00:51:26 2024, INFO, maat.compile(63073), Build bool matcher of 2 expressions with 16777420 bytes memory. +Thu Apr 25 00:51:26 2024, INFO, maat.compile(63073), table[WANNAT_COMPILE] commit 2 compile rules and rebuild compile bool_matcher completed, version:1, consume:2ms +Thu Apr 25 00:51:26 2024, INFO, maat.group(63073), table[GROUP2GROUP] commit 1 g2g rules and rebuild super_groups completed, version:1, consume:0ms +Thu Apr 25 00:51:26 2024, INFO, maat.expr_matcher(63073), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Thu Apr 25 00:51:26 2024, INFO, maat.expr(63073), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:2ms +Thu Apr 25 00:51:26 2024, INFO, maat.ip(63073), table[WANNAT_OBJ_IP_ADDR] commit 1 ip rules and rebuild ip_matcher completed, version:1, consume:0ms +Thu Apr 25 00:51:26 2024, INFO, maat.rule(63073), table:<WANNAT_COMPILE> rule_count:2 +Thu Apr 25 00:51:26 2024, INFO, maat.rule(63073), table:<WANNAT_GROUP_COMPILE_RELATION> rule_count:2 +Thu Apr 25 00:51:26 2024, INFO, maat.rule(63073), table:<GROUP2GROUP> rule_count:1 +Thu Apr 25 00:51:26 2024, INFO, maat.rule(63073), table:<WANNAT_OBJ_UE_ID> rule_count:1 +Thu Apr 25 00:51:26 2024, INFO, maat.rule(63073), table:<WANNAT_OBJ_IP_ADDR> rule_count:1 +Thu Apr 25 00:51:26 2024, INFO, maat.rule(63073), Full config version 1 load 7 entries complete +Thu Apr 25 00:57:12 2024, INFO, maat.table(63438), successfully register physical table[WANNAT_COMPILE]->table_id:0 +Thu Apr 25 00:57:12 2024, INFO, maat.table(63438), successfully register physical table[WANNAT_GROUP_COMPILE_RELATION]->table_id:1 +Thu Apr 25 00:57:12 2024, INFO, maat.table(63438), successfully register physical table[GROUP2GROUP]->table_id:2 +Thu Apr 25 00:57:12 2024, INFO, maat.table(63438), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Thu Apr 25 00:57:12 2024, INFO, maat.table(63438), successfully register physical table[WANNAT_OBJ_IP_ADDR]->table_id:4 +Thu Apr 25 00:57:12 2024, INFO, maat.table(63438), successfully register virtual table[UE_ID]->vtable_id:5, physical_table_id:3 +Thu Apr 25 00:57:12 2024, INFO, maat.table(63438), successfully register virtual table[IP_ADDR]->vtable_id:6, physical_table_id:4 +Thu Apr 25 00:57:12 2024, INFO, maat.table(63438), default compile table id: 0 +Thu Apr 25 00:57:12 2024, INFO, maat.table(63438), group2group table id: 2 +Thu Apr 25 00:57:12 2024, INFO, maat.config_monitor(63438), Maat initial with JSON file /root/Git/demo/demo2/maat_json.json, formating... +Thu Apr 25 00:57:12 2024, INFO, maat.config_monitor(63438), JSON file /root/Git/demo/demo2/maat_json.json md5: 6a93a9257681db36b89fc14c1af5157e, generate index file /root/Git/demo/demo2/maat_json.json_iris_tmp/index OK +Thu Apr 25 00:57:12 2024, INFO, maat.config_monitor(63438), load /root/Git/demo/demo2/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Thu Apr 25 00:57:12 2024, FATAL, maat.ip(63438), [ip_runtime_update_row:428] ip item(item_id:201) add to ip runtime htable failed +Thu Apr 25 00:57:12 2024, FATAL, maat.rule(63438), [maat_update_cb:178] table<WANNAT_OBJ_IP_ADDR> update runtime error for rules:201 4 4 CIDR 8.8.8.8 32 0-65535 1 + +Thu Apr 25 00:57:12 2024, INFO, maat.compile(63438), Build bool matcher of 2 expressions with 16777420 bytes memory. +Thu Apr 25 00:57:12 2024, INFO, maat.compile(63438), table[WANNAT_COMPILE] commit 2 compile rules and rebuild compile bool_matcher completed, version:1, consume:2ms +Thu Apr 25 00:57:12 2024, INFO, maat.group(63438), table[GROUP2GROUP] commit 1 g2g rules and rebuild super_groups completed, version:1, consume:0ms +Thu Apr 25 00:57:12 2024, INFO, maat.expr_matcher(63438), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Thu Apr 25 00:57:12 2024, INFO, maat.expr(63438), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:3ms +Thu Apr 25 00:57:12 2024, INFO, maat.ip(63438), table[WANNAT_OBJ_IP_ADDR] commit 1 ip rules and rebuild ip_matcher completed, version:1, consume:0ms +Thu Apr 25 00:57:12 2024, INFO, maat.rule(63438), table:<WANNAT_COMPILE> rule_count:2 +Thu Apr 25 00:57:12 2024, INFO, maat.rule(63438), table:<WANNAT_GROUP_COMPILE_RELATION> rule_count:2 +Thu Apr 25 00:57:12 2024, INFO, maat.rule(63438), table:<GROUP2GROUP> rule_count:1 +Thu Apr 25 00:57:12 2024, INFO, maat.rule(63438), table:<WANNAT_OBJ_UE_ID> rule_count:1 +Thu Apr 25 00:57:12 2024, INFO, maat.rule(63438), table:<WANNAT_OBJ_IP_ADDR> rule_count:1 +Thu Apr 25 00:57:12 2024, INFO, maat.rule(63438), Full config version 1 load 7 entries complete +Thu Apr 25 00:58:47 2024, INFO, maat.table(63631), successfully register physical table[WANNAT_COMPILE]->table_id:0 +Thu Apr 25 00:58:47 2024, INFO, maat.table(63631), successfully register physical table[WANNAT_GROUP_COMPILE_RELATION]->table_id:1 +Thu Apr 25 00:58:47 2024, INFO, maat.table(63631), successfully register physical table[GROUP2GROUP]->table_id:2 +Thu Apr 25 00:58:47 2024, INFO, maat.table(63631), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Thu Apr 25 00:58:47 2024, INFO, maat.table(63631), successfully register physical table[WANNAT_OBJ_IP_ADDR]->table_id:4 +Thu Apr 25 00:58:47 2024, INFO, maat.table(63631), successfully register virtual table[UE_ID]->vtable_id:5, physical_table_id:3 +Thu Apr 25 00:58:47 2024, INFO, maat.table(63631), successfully register virtual table[IP_ADDR]->vtable_id:6, physical_table_id:4 +Thu Apr 25 00:58:47 2024, INFO, maat.table(63631), default compile table id: 0 +Thu Apr 25 00:58:47 2024, INFO, maat.table(63631), group2group table id: 2 +Thu Apr 25 00:58:47 2024, INFO, maat.config_monitor(63631), Maat initial with JSON file /root/Git/demo/demo2/maat_json.json, formating... +Thu Apr 25 00:58:47 2024, INFO, maat.config_monitor(63631), JSON file /root/Git/demo/demo2/maat_json.json md5: 6a93a9257681db36b89fc14c1af5157e, generate index file /root/Git/demo/demo2/maat_json.json_iris_tmp/index OK +Thu Apr 25 00:58:47 2024, INFO, maat.config_monitor(63631), load /root/Git/demo/demo2/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Thu Apr 25 00:58:47 2024, FATAL, maat.ip(63631), [ip_runtime_update_row:428] ip item(item_id:201) add to ip runtime htable failed +Thu Apr 25 00:58:47 2024, FATAL, maat.rule(63631), [maat_update_cb:178] table<WANNAT_OBJ_IP_ADDR> update runtime error for rules:201 4 4 CIDR 8.8.8.8 32 0-65535 1 + +Thu Apr 25 00:58:47 2024, INFO, maat.compile(63631), Build bool matcher of 2 expressions with 16777420 bytes memory. +Thu Apr 25 00:58:47 2024, INFO, maat.compile(63631), table[WANNAT_COMPILE] commit 2 compile rules and rebuild compile bool_matcher completed, version:1, consume:2ms +Thu Apr 25 00:58:47 2024, INFO, maat.group(63631), table[GROUP2GROUP] commit 1 g2g rules and rebuild super_groups completed, version:1, consume:0ms +Thu Apr 25 00:58:47 2024, INFO, maat.expr_matcher(63631), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Thu Apr 25 00:58:47 2024, INFO, maat.expr(63631), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:3ms +Thu Apr 25 00:58:47 2024, INFO, maat.ip(63631), table[WANNAT_OBJ_IP_ADDR] commit 1 ip rules and rebuild ip_matcher completed, version:1, consume:0ms +Thu Apr 25 00:58:47 2024, INFO, maat.rule(63631), table:<WANNAT_COMPILE> rule_count:2 +Thu Apr 25 00:58:47 2024, INFO, maat.rule(63631), table:<WANNAT_GROUP_COMPILE_RELATION> rule_count:2 +Thu Apr 25 00:58:47 2024, INFO, maat.rule(63631), table:<GROUP2GROUP> rule_count:1 +Thu Apr 25 00:58:47 2024, INFO, maat.rule(63631), table:<WANNAT_OBJ_UE_ID> rule_count:1 +Thu Apr 25 00:58:47 2024, INFO, maat.rule(63631), table:<WANNAT_OBJ_IP_ADDR> rule_count:1 +Thu Apr 25 00:58:47 2024, INFO, maat.rule(63631), Full config version 1 load 7 entries complete +Thu Apr 25 01:02:37 2024, INFO, maat.table(63790), successfully register physical table[WANNAT_COMPILE]->table_id:0 +Thu Apr 25 01:02:37 2024, INFO, maat.table(63790), successfully register physical table[WANNAT_GROUP_COMPILE_RELATION]->table_id:1 +Thu Apr 25 01:02:37 2024, INFO, maat.table(63790), successfully register physical table[GROUP2GROUP]->table_id:2 +Thu Apr 25 01:02:37 2024, INFO, maat.table(63790), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Thu Apr 25 01:02:37 2024, INFO, maat.table(63790), successfully register physical table[WANNAT_OBJ_IP_ADDR]->table_id:4 +Thu Apr 25 01:02:37 2024, INFO, maat.table(63790), successfully register virtual table[UE_ID]->vtable_id:5, physical_table_id:3 +Thu Apr 25 01:02:37 2024, INFO, maat.table(63790), successfully register virtual table[IP_ADDR]->vtable_id:6, physical_table_id:4 +Thu Apr 25 01:02:37 2024, INFO, maat.table(63790), default compile table id: 0 +Thu Apr 25 01:02:37 2024, INFO, maat.table(63790), group2group table id: 2 +Thu Apr 25 01:02:37 2024, INFO, maat.config_monitor(63790), Maat initial with JSON file /root/Git/demo/demo2/maat_json.json, formating... +Thu Apr 25 01:02:37 2024, INFO, maat.config_monitor(63790), JSON file /root/Git/demo/demo2/maat_json.json md5: 6a93a9257681db36b89fc14c1af5157e, generate index file /root/Git/demo/demo2/maat_json.json_iris_tmp/index OK +Thu Apr 25 01:02:37 2024, INFO, maat.config_monitor(63790), load /root/Git/demo/demo2/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Thu Apr 25 01:02:37 2024, FATAL, maat.ip(63790), [ip_runtime_update_row:428] ip item(item_id:201) add to ip runtime htable failed +Thu Apr 25 01:02:37 2024, FATAL, maat.rule(63790), [maat_update_cb:178] table<WANNAT_OBJ_IP_ADDR> update runtime error for rules:201 4 4 CIDR 8.8.8.8 32 0-65535 1 + +Thu Apr 25 01:02:37 2024, INFO, maat.compile(63790), Build bool matcher of 2 expressions with 16777420 bytes memory. +Thu Apr 25 01:02:37 2024, INFO, maat.compile(63790), table[WANNAT_COMPILE] commit 2 compile rules and rebuild compile bool_matcher completed, version:1, consume:2ms +Thu Apr 25 01:02:37 2024, INFO, maat.group(63790), table[GROUP2GROUP] commit 1 g2g rules and rebuild super_groups completed, version:1, consume:0ms +Thu Apr 25 01:02:37 2024, INFO, maat.expr_matcher(63790), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory +Thu Apr 25 01:02:37 2024, INFO, maat.expr(63790), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:3ms +Thu Apr 25 01:02:37 2024, INFO, maat.ip(63790), table[WANNAT_OBJ_IP_ADDR] commit 1 ip rules and rebuild ip_matcher completed, version:1, consume:0ms +Thu Apr 25 01:02:37 2024, INFO, maat.rule(63790), table:<WANNAT_COMPILE> rule_count:2 +Thu Apr 25 01:02:37 2024, INFO, maat.rule(63790), table:<WANNAT_GROUP_COMPILE_RELATION> rule_count:2 +Thu Apr 25 01:02:37 2024, INFO, maat.rule(63790), table:<GROUP2GROUP> rule_count:1 +Thu Apr 25 01:02:37 2024, INFO, maat.rule(63790), table:<WANNAT_OBJ_UE_ID> rule_count:1 +Thu Apr 25 01:02:37 2024, INFO, maat.rule(63790), table:<WANNAT_OBJ_IP_ADDR> rule_count:1 +Thu Apr 25 01:02:37 2024, INFO, maat.rule(63790), Full config version 1 load 7 entries complete diff --git a/demo2/table_info.conf b/demo2/table_info.conf index e9aa2c8..beef44d 100644 --- a/demo2/table_info.conf +++ b/demo2/table_info.conf @@ -1,15 +1,92 @@ - [ +[ + { + "table_id":0, + "table_name":"WANNAT_COMPILE", + "table_type":"compile", + "default_compile_table":0, + "user_region_encoded":"escape", + "valid_column":9, + "custom": { + "compile_id":1, + "service":2, + "action":3, + "do_blacklist":4, + "do_log":5, + "tags":6, + "user_region":7, + "clause_num":8 + } + }, { "table_id":1, - "table_name":"TEST_IP_PLUGIN_WITH_EXDATA", - "table_type":"ip_plugin", + "table_name":"WANNAT_GROUP_COMPILE_RELATION", + "table_type":"group2compile", + "associated_compile_table_id":0, "valid_column":6, "custom": { - "gc_timeout_s": 3, + "group_id":1, + "compile_id":2, + "not_flag":3, + "virtual_table_name":4, + "clause_index":5 + } + }, + { + "table_id":2, + "table_name":"GROUP2GROUP", + "table_type":"group2group", + "valid_column":4, + "custom": { + "group_id":1, + "included_sub_group_ids":2, + "excluded_sub_group_ids":3 + } + }, + { + "table_id":3, + "table_name":"WANNAT_OBJ_UE_ID", + "table_type":"expr", + "valid_column":7, + "custom": { + "item_id":1, + "group_id":2, + "keywords":3, + "expr_type":4, + "match_method":5, + "is_hexbin":6 + } + }, + { + "table_id":4, + "table_name":"WANNAT_OBJ_IP_ADDR", + "table_type":"ip", + "valid_column":8, + "custom": { "item_id":1, - "ip_type":2, - "start_ip":3, - "end_ip":4 + "group_id":2, + "addr_type":3, + "addr_format":4, + "ip1":5, + "ip2":6, + "port":7 } + }, + { + "table_id":5, + "table_name": "UE_ID", + "table_type": "virtual", + "physical_table": "WANNAT_OBJ_UE_ID" + }, + { + "table_id":6, + "table_name": "IP_ADDR", + "table_type": "virtual", + "physical_table": "WANNAT_OBJ_IP_ADDR" + }, + { + "table_id":7, + "table_name": "DESTINATION_IP", + "table_type": "virtual", + "physical_table": "WANNAT_OBJ_IP_ADDR" } - ] +]
\ No newline at end of file diff --git a/demo3/maat_json.json b/demo3/maat_json.json index 761231c..5a2dde4 100644 --- a/demo3/maat_json.json +++ b/demo3/maat_json.json @@ -4,6 +4,39 @@ "group2group_table": "GROUP2GROUP", "rules": [ { + "compile_id": 302, + "service": 0, + "action": 2, + "do_blacklist": 0, + "do_log": 2, + "effect_range": "{}", + "user_region": "{\"ue_object_ids\":[102], \"failover\":\"drop\"}", + "is_valid": "yes", + "modified_time": "200", + "groups": [ + { + "virtual_table": "WANNAT_OBJ_IP_ADDR", + "group_id": 2, + "not_flag": 0, + "nth_clause": 1, + "regions": [ + { + "table_name": "WANNAT_OBJ_IP_ADDR", + "table_type": "ip", + "table_content": { + "region_id": 201, + "addr_type": "ipv4", + "addr_format": "CIDR", + "ip1": "20.20.20.20", + "ip2": "32", + "port": "0-65535" + } + } + ] + } + ] + }, + { "compile_id": 301, "service": 0, "action": 1, @@ -17,7 +50,7 @@ "groups": [ { "virtual_table": "UE_ID", - "group_id": 1, + "group_id": 2, "not_flag": 0, "nth_clause": 1, "regions": [ diff --git a/demo3/maat_json.json_iris_tmp/WANNAT_COMPILE.local b/demo3/maat_json.json_iris_tmp/WANNAT_COMPILE.local index 61414d2..35f500f 100644 --- a/demo3/maat_json.json_iris_tmp/WANNAT_COMPILE.local +++ b/demo3/maat_json.json_iris_tmp/WANNAT_COMPILE.local @@ -1,2 +1,3 @@ -0000000001 +0000000002 +302 0 2 0 2 {} {"ue_object_ids":[102], "failover":"drop"} 1 1 301 0 1 0 2 {} {"ip_object_ids":[203,204], "translate_type":"never", "time_interval":123, "connection_count":1243} 1 1 diff --git a/demo3/maat_json.json_iris_tmp/WANNAT_GROUP_COMPILE_RELATION.local b/demo3/maat_json.json_iris_tmp/WANNAT_GROUP_COMPILE_RELATION.local index 785b439..5a57bab 100644 --- a/demo3/maat_json.json_iris_tmp/WANNAT_GROUP_COMPILE_RELATION.local +++ b/demo3/maat_json.json_iris_tmp/WANNAT_GROUP_COMPILE_RELATION.local @@ -1,2 +1,3 @@ -0000000001 +0000000002 +123456789 302 0 WANNAT_OBJ_IP_ADDR 0 1 123456789 301 0 UE_ID 0 1 diff --git a/demo3/maat_json.json_iris_tmp/WANNAT_OBJ_IP_ADDR.local b/demo3/maat_json.json_iris_tmp/WANNAT_OBJ_IP_ADDR.local new file mode 100644 index 0000000..433298e --- /dev/null +++ b/demo3/maat_json.json_iris_tmp/WANNAT_OBJ_IP_ADDR.local @@ -0,0 +1,2 @@ +0000000001 +201 123456789 4 CIDR 20.20.20.20 32 0-65535 1 diff --git a/demo3/maat_json.json_iris_tmp/index/full_config_index.0000000001 b/demo3/maat_json.json_iris_tmp/index/full_config_index.0000000001 index 829b94a..152ffd4 100644 --- a/demo3/maat_json.json_iris_tmp/index/full_config_index.0000000001 +++ b/demo3/maat_json.json_iris_tmp/index/full_config_index.0000000001 @@ -1,4 +1,4 @@ -WANNAT_COMPILE 1 /root/Git/demo/demo3/maat_json.json_iris_tmp/WANNAT_COMPILE.local -WANNAT_GROUP_COMPILE_RELATION 1 /root/Git/demo/demo3/maat_json.json_iris_tmp/WANNAT_GROUP_COMPILE_RELATION.local +WANNAT_COMPILE 2 /root/Git/demo/demo3/maat_json.json_iris_tmp/WANNAT_COMPILE.local +WANNAT_GROUP_COMPILE_RELATION 2 /root/Git/demo/demo3/maat_json.json_iris_tmp/WANNAT_GROUP_COMPILE_RELATION.local GROUP2GROUP 0 /root/Git/demo/demo3/maat_json.json_iris_tmp/GROUP2GROUP.local -WANNAT_OBJ_UE_ID 1 /root/Git/demo/demo3/maat_json.json_iris_tmp/WANNAT_OBJ_UE_ID.local +WANNAT_OBJ_IP_ADDR 1 /root/Git/demo/demo3/maat_json.json_iris_tmp/WANNAT_OBJ_IP_ADDR.local diff --git a/demo3/main.c b/demo3/main.c index d05a494..4e3375d 100644 --- a/demo3/main.c +++ b/demo3/main.c @@ -25,9 +25,9 @@ int main_1() assert(maat_instance != NULL); maat_options_free(opts); - const char *table_name = "UE_ID"; // 虚拟表 4 + const char *table_name = "UE_ID"; // 虚拟表 5 int table_id = maat_get_table_id(maat_instance, table_name); - assert(table_id == 4); /* defined in table_info.conf */ + assert(table_id == 5); /* defined in table_info.conf */ int thread_id = 0; long long results[ARRAY_SIZE] = {0}; @@ -47,18 +47,18 @@ int main_1() maat_state_free(state); - // struct ip_addr ipv4; - // ipv4.ip_type = 4; - // ret = inet_pton(AF_INET, "20.20.20.20", &ipv4.ipv4); + struct ip_addr ipv4; + ipv4.ip_type = 4; + ret = inet_pton(AF_INET, "20.20.20.20", &ipv4.ipv4); - // struct maat_state *state2 = maat_state_new(maat_instance, thread_id); - // assert(state2 != NULL); + struct maat_state *state2 = maat_state_new(maat_instance, thread_id); + assert(state2 != NULL); - // uint32_t a = ipv4.ipv4; - // ret = maat_scan_ipv4(maat_instance, 6, a, results, ARRAY_SIZE, &n_hit_result, state2); + uint32_t a = ipv4.ipv4; + ret = maat_scan_ipv4_port(maat_instance, 4, a, 443, results, ARRAY_SIZE, &n_hit_result, state2); - // printf("ret: %d\n", ret); - // maat_state_free(state2); + printf("ret: %d\n", ret); + maat_state_free(state2); return 0; } diff --git a/demo3/sample_test.log.2024-04-24 b/demo3/sample_test.log.2024-04-24 index 05179e2..5125b3f 100644 --- a/demo3/sample_test.log.2024-04-24 +++ b/demo3/sample_test.log.2024-04-24 @@ -1,18 +1,76 @@ -Wed Apr 24 07:21:31 2024, INFO, maat.table(42782), successfully register physical table[WANNAT_COMPILE]->table_id:0 -Wed Apr 24 07:21:31 2024, INFO, maat.table(42782), successfully register physical table[WANNAT_GROUP_COMPILE_RELATION]->table_id:1 -Wed Apr 24 07:21:31 2024, INFO, maat.table(42782), successfully register physical table[GROUP2GROUP]->table_id:2 -Wed Apr 24 07:21:31 2024, INFO, maat.table(42782), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 -Wed Apr 24 07:21:31 2024, INFO, maat.table(42782), successfully register virtual table[UE_ID]->vtable_id:4, physical_table_id:3 -Wed Apr 24 07:21:31 2024, INFO, maat.table(42782), default compile table id: -1 -Wed Apr 24 07:21:31 2024, INFO, maat.table(42782), group2group table id: 2 -Wed Apr 24 07:21:31 2024, INFO, maat.config_monitor(42782), Maat initial with JSON file /root/Git/demo/demo3/maat_json.json, formating... -Wed Apr 24 07:21:31 2024, INFO, maat.config_monitor(42782), JSON file /root/Git/demo/demo3/maat_json.json md5: 442bba72638e4ac8d8f27f6666dc2ad2, generate index file /root/Git/demo/demo3/maat_json.json_iris_tmp/index OK -Wed Apr 24 07:21:31 2024, INFO, maat.config_monitor(42782), load /root/Git/demo/demo3/maat_json.json_iris_tmp/index/full_config_index.0000000001 -Wed Apr 24 07:21:31 2024, FATAL, maat.compile(42782), [maat_compile_bool_matcher_new:972] No bool expression to build bool matcher. -Wed Apr 24 07:21:31 2024, FATAL, maat.compile(42782), [compile_runtime_commit:2348] table[WANNAT_COMPILE] rebuild compile bool_matcher failed, compile rules count:1 -Wed Apr 24 07:21:31 2024, INFO, maat.expr_matcher(42782), expr_matcher module: build bool matcher of 1 expressions with 16777356 bytes memory -Wed Apr 24 07:21:31 2024, INFO, maat.expr(42782), table[WANNAT_OBJ_UE_ID] has 1 rules, commit 1 expr rules(literal_rules:1 regex_rules:0) and rebuild expr_matcher(hyperscan) completed, version:1, consume:2ms -Wed Apr 24 07:21:31 2024, INFO, maat.rule(42782), table:<WANNAT_COMPILE> rule_count:1 -Wed Apr 24 07:21:31 2024, INFO, maat.rule(42782), table:<WANNAT_GROUP_COMPILE_RELATION> rule_count:1 -Wed Apr 24 07:21:31 2024, INFO, maat.rule(42782), table:<WANNAT_OBJ_UE_ID> rule_count:1 -Wed Apr 24 07:21:31 2024, INFO, maat.rule(42782), Full config version 1 load 3 entries complete +Wed Apr 24 23:32:28 2024, INFO, maat.table(57836), successfully register physical table[WANNAT_COMPILE]->table_id:0 +Wed Apr 24 23:32:28 2024, INFO, maat.table(57836), successfully register physical table[WANNAT_GROUP_COMPILE_RELATION]->table_id:1 +Wed Apr 24 23:32:28 2024, INFO, maat.table(57836), successfully register physical table[GROUP2GROUP]->table_id:2 +Wed Apr 24 23:32:28 2024, INFO, maat.table(57836), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Wed Apr 24 23:32:28 2024, INFO, maat.table(57836), successfully register physical table[WANNAT_OBJ_IP_ADDR]->table_id:4 +Wed Apr 24 23:32:28 2024, INFO, maat.table(57836), successfully register virtual table[UE_ID]->vtable_id:5, physical_table_id:3 +Wed Apr 24 23:32:28 2024, INFO, maat.table(57836), successfully register virtual table[SOURCE_IP]->vtable_id:6, physical_table_id:4 +Wed Apr 24 23:32:28 2024, INFO, maat.table(57836), default compile table id: 0 +Wed Apr 24 23:32:28 2024, INFO, maat.table(57836), group2group table id: 2 +Wed Apr 24 23:32:28 2024, INFO, maat.config_monitor(57836), Maat initial with JSON file /root/Git/demo/demo3/maat_json.json, formating... +Wed Apr 24 23:32:28 2024, INFO, maat.config_monitor(57836), JSON file /root/Git/demo/demo3/maat_json.json md5: 19ab4a8e95146da458500cb3e9cc0db2, generate index file /root/Git/demo/demo3/maat_json.json_iris_tmp/index OK +Wed Apr 24 23:32:28 2024, INFO, maat.config_monitor(57836), load /root/Git/demo/demo3/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Wed Apr 24 23:32:28 2024, INFO, maat.compile(57836), Build bool matcher of 2 expressions with 16777420 bytes memory. +Wed Apr 24 23:32:28 2024, INFO, maat.compile(57836), table[WANNAT_COMPILE] commit 2 compile rules and rebuild compile bool_matcher completed, version:1, consume:1ms +Wed Apr 24 23:32:28 2024, INFO, maat.ip(57836), table[WANNAT_OBJ_IP_ADDR] commit 1 ip rules and rebuild ip_matcher completed, version:1, consume:0ms +Wed Apr 24 23:32:28 2024, INFO, maat.rule(57836), table:<WANNAT_COMPILE> rule_count:2 +Wed Apr 24 23:32:28 2024, INFO, maat.rule(57836), table:<WANNAT_GROUP_COMPILE_RELATION> rule_count:2 +Wed Apr 24 23:32:28 2024, INFO, maat.rule(57836), table:<WANNAT_OBJ_IP_ADDR> rule_count:1 +Wed Apr 24 23:32:28 2024, INFO, maat.rule(57836), Full config version 1 load 5 entries complete +Wed Apr 24 23:34:27 2024, INFO, maat.table(58099), successfully register physical table[WANNAT_COMPILE]->table_id:0 +Wed Apr 24 23:34:27 2024, INFO, maat.table(58099), successfully register physical table[WANNAT_GROUP_COMPILE_RELATION]->table_id:1 +Wed Apr 24 23:34:27 2024, INFO, maat.table(58099), successfully register physical table[GROUP2GROUP]->table_id:2 +Wed Apr 24 23:34:27 2024, INFO, maat.table(58099), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Wed Apr 24 23:34:27 2024, INFO, maat.table(58099), successfully register physical table[WANNAT_OBJ_IP_ADDR]->table_id:4 +Wed Apr 24 23:34:27 2024, INFO, maat.table(58099), successfully register virtual table[UE_ID]->vtable_id:5, physical_table_id:3 +Wed Apr 24 23:34:27 2024, INFO, maat.table(58099), successfully register virtual table[SOURCE_IP]->vtable_id:6, physical_table_id:4 +Wed Apr 24 23:34:27 2024, INFO, maat.table(58099), default compile table id: 0 +Wed Apr 24 23:34:27 2024, INFO, maat.table(58099), group2group table id: 2 +Wed Apr 24 23:34:27 2024, INFO, maat.config_monitor(58099), Maat initial with JSON file /root/Git/demo/demo3/maat_json.json, formating... +Wed Apr 24 23:34:27 2024, INFO, maat.config_monitor(58099), JSON file /root/Git/demo/demo3/maat_json.json md5: 19ab4a8e95146da458500cb3e9cc0db2, generate index file /root/Git/demo/demo3/maat_json.json_iris_tmp/index OK +Wed Apr 24 23:34:27 2024, INFO, maat.config_monitor(58099), load /root/Git/demo/demo3/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Wed Apr 24 23:34:27 2024, INFO, maat.compile(58099), Build bool matcher of 2 expressions with 16777420 bytes memory. +Wed Apr 24 23:34:27 2024, INFO, maat.compile(58099), table[WANNAT_COMPILE] commit 2 compile rules and rebuild compile bool_matcher completed, version:1, consume:2ms +Wed Apr 24 23:34:27 2024, INFO, maat.ip(58099), table[WANNAT_OBJ_IP_ADDR] commit 1 ip rules and rebuild ip_matcher completed, version:1, consume:0ms +Wed Apr 24 23:34:27 2024, INFO, maat.rule(58099), table:<WANNAT_COMPILE> rule_count:2 +Wed Apr 24 23:34:27 2024, INFO, maat.rule(58099), table:<WANNAT_GROUP_COMPILE_RELATION> rule_count:2 +Wed Apr 24 23:34:27 2024, INFO, maat.rule(58099), table:<WANNAT_OBJ_IP_ADDR> rule_count:1 +Wed Apr 24 23:34:27 2024, INFO, maat.rule(58099), Full config version 1 load 5 entries complete +Wed Apr 24 23:37:13 2024, INFO, maat.table(58348), successfully register physical table[WANNAT_COMPILE]->table_id:0 +Wed Apr 24 23:37:13 2024, INFO, maat.table(58348), successfully register physical table[WANNAT_GROUP_COMPILE_RELATION]->table_id:1 +Wed Apr 24 23:37:13 2024, INFO, maat.table(58348), successfully register physical table[GROUP2GROUP]->table_id:2 +Wed Apr 24 23:37:13 2024, INFO, maat.table(58348), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Wed Apr 24 23:37:13 2024, INFO, maat.table(58348), successfully register physical table[WANNAT_OBJ_IP_ADDR]->table_id:4 +Wed Apr 24 23:37:13 2024, INFO, maat.table(58348), successfully register virtual table[UE_ID]->vtable_id:5, physical_table_id:3 +Wed Apr 24 23:37:13 2024, INFO, maat.table(58348), successfully register virtual table[SOURCE_IP]->vtable_id:6, physical_table_id:4 +Wed Apr 24 23:37:13 2024, INFO, maat.table(58348), default compile table id: 0 +Wed Apr 24 23:37:13 2024, INFO, maat.table(58348), group2group table id: 2 +Wed Apr 24 23:37:13 2024, INFO, maat.config_monitor(58348), Maat initial with JSON file /root/Git/demo/demo3/maat_json.json, formating... +Wed Apr 24 23:37:13 2024, INFO, maat.config_monitor(58348), JSON file /root/Git/demo/demo3/maat_json.json md5: 19ab4a8e95146da458500cb3e9cc0db2, generate index file /root/Git/demo/demo3/maat_json.json_iris_tmp/index OK +Wed Apr 24 23:37:13 2024, INFO, maat.config_monitor(58348), load /root/Git/demo/demo3/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Wed Apr 24 23:37:13 2024, INFO, maat.compile(58348), Build bool matcher of 2 expressions with 16777420 bytes memory. +Wed Apr 24 23:37:13 2024, INFO, maat.compile(58348), table[WANNAT_COMPILE] commit 2 compile rules and rebuild compile bool_matcher completed, version:1, consume:4ms +Wed Apr 24 23:37:13 2024, INFO, maat.ip(58348), table[WANNAT_OBJ_IP_ADDR] commit 1 ip rules and rebuild ip_matcher completed, version:1, consume:0ms +Wed Apr 24 23:37:13 2024, INFO, maat.rule(58348), table:<WANNAT_COMPILE> rule_count:2 +Wed Apr 24 23:37:13 2024, INFO, maat.rule(58348), table:<WANNAT_GROUP_COMPILE_RELATION> rule_count:2 +Wed Apr 24 23:37:13 2024, INFO, maat.rule(58348), table:<WANNAT_OBJ_IP_ADDR> rule_count:1 +Wed Apr 24 23:37:13 2024, INFO, maat.rule(58348), Full config version 1 load 5 entries complete +Wed Apr 24 23:58:03 2024, INFO, maat.table(59331), successfully register physical table[WANNAT_COMPILE]->table_id:0 +Wed Apr 24 23:58:03 2024, INFO, maat.table(59331), successfully register physical table[WANNAT_GROUP_COMPILE_RELATION]->table_id:1 +Wed Apr 24 23:58:03 2024, INFO, maat.table(59331), successfully register physical table[GROUP2GROUP]->table_id:2 +Wed Apr 24 23:58:03 2024, INFO, maat.table(59331), successfully register physical table[WANNAT_OBJ_UE_ID]->table_id:3 +Wed Apr 24 23:58:03 2024, INFO, maat.table(59331), successfully register physical table[WANNAT_OBJ_IP_ADDR]->table_id:4 +Wed Apr 24 23:58:03 2024, INFO, maat.table(59331), successfully register virtual table[UE_ID]->vtable_id:5, physical_table_id:3 +Wed Apr 24 23:58:03 2024, INFO, maat.table(59331), successfully register virtual table[SOURCE_IP]->vtable_id:6, physical_table_id:4 +Wed Apr 24 23:58:03 2024, INFO, maat.table(59331), default compile table id: 0 +Wed Apr 24 23:58:03 2024, INFO, maat.table(59331), group2group table id: 2 +Wed Apr 24 23:58:03 2024, INFO, maat.config_monitor(59331), Maat initial with JSON file /root/Git/demo/demo3/maat_json.json, formating... +Wed Apr 24 23:58:03 2024, INFO, maat.config_monitor(59331), JSON file /root/Git/demo/demo3/maat_json.json md5: 4c69124a0efe373c00e5badeddb33470, generate index file /root/Git/demo/demo3/maat_json.json_iris_tmp/index OK +Wed Apr 24 23:58:03 2024, INFO, maat.config_monitor(59331), load /root/Git/demo/demo3/maat_json.json_iris_tmp/index/full_config_index.0000000001 +Wed Apr 24 23:58:03 2024, INFO, maat.compile(59331), Build bool matcher of 2 expressions with 16777420 bytes memory. +Wed Apr 24 23:58:03 2024, INFO, maat.compile(59331), table[WANNAT_COMPILE] commit 2 compile rules and rebuild compile bool_matcher completed, version:1, consume:3ms +Wed Apr 24 23:58:03 2024, INFO, maat.ip(59331), table[WANNAT_OBJ_IP_ADDR] commit 1 ip rules and rebuild ip_matcher completed, version:1, consume:0ms +Wed Apr 24 23:58:03 2024, INFO, maat.rule(59331), table:<WANNAT_COMPILE> rule_count:2 +Wed Apr 24 23:58:03 2024, INFO, maat.rule(59331), table:<WANNAT_GROUP_COMPILE_RELATION> rule_count:2 +Wed Apr 24 23:58:03 2024, INFO, maat.rule(59331), table:<WANNAT_OBJ_IP_ADDR> rule_count:1 +Wed Apr 24 23:58:03 2024, INFO, maat.rule(59331), Full config version 1 load 5 entries complete diff --git a/demo3/table_info.conf b/demo3/table_info.conf index eeeffe4..a59e689 100644 --- a/demo3/table_info.conf +++ b/demo3/table_info.conf @@ -4,6 +4,7 @@ "table_name":"WANNAT_COMPILE", "table_type":"compile", "default_compile_table":0, + "user_region_encoded":"escape", "valid_column":9, "custom": { "compile_id":1, @@ -57,8 +58,29 @@ }, { "table_id":4, + "table_name":"WANNAT_OBJ_IP_ADDR", + "table_type":"ip", + "valid_column":8, + "custom": { + "item_id":1, + "group_id":2, + "addr_type":3, + "addr_format":4, + "ip1":5, + "ip2":6, + "port":7 + } + }, + { + "table_id":5, "table_name": "UE_ID", "table_type": "virtual", "physical_table": "WANNAT_OBJ_UE_ID" + }, + { + "table_id":6, + "table_name": "SOURCE_IP", + "table_type": "virtual", + "physical_table": "WANNAT_OBJ_IP_ADDR" } ]
\ No newline at end of file |
