-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from devanlai/lua-poc
Add support for Lua dissectors
- Loading branch information
Showing
15 changed files
with
886 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
From 56160a1aeabb9513c2e93cd49c40f0c56514c58d Mon Sep 17 00:00:00 2001 | ||
From: Devan Lai <[email protected]> | ||
Date: Sun, 5 Nov 2023 10:31:35 -0800 | ||
Subject: [PATCH] Export lrexlib | ||
|
||
--- | ||
epan/wslua/lrexlib/CMakeLists.txt | 14 ++++++++++++++ | ||
1 file changed, 14 insertions(+) | ||
|
||
diff --git a/epan/wslua/lrexlib/CMakeLists.txt b/epan/wslua/lrexlib/CMakeLists.txt | ||
index 1f5f13f278..a60b3f916f 100644 | ||
--- a/epan/wslua/lrexlib/CMakeLists.txt | ||
+++ b/epan/wslua/lrexlib/CMakeLists.txt | ||
@@ -24,3 +24,17 @@ add_compile_definitions( | ||
VERSION=\"2.9.1\" | ||
PCRE2_CODE_UNIT_WIDTH=8 | ||
) | ||
+ | ||
+set_target_properties(lrexlib PROPERTIES | ||
+ PREFIX "lib" | ||
+ LINK_FLAGS "${WS_LINK_FLAGS}" | ||
+ FOLDER "DLLs" | ||
+ INSTALL_RPATH "${LIBRARY_INSTALL_RPATH}" | ||
+) | ||
+ | ||
+install(TARGETS lrexlib | ||
+ EXPORT WiresharkTargets | ||
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
+) | ||
-- | ||
2.34.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
From 1dec7120a409696d1e975a1217958526ce6fc411 Mon Sep 17 00:00:00 2001 | ||
From: Osama Khalid <[email protected]> | ||
Date: Tue, 7 Nov 2023 11:54:03 -0500 | ||
Subject: [PATCH] Export init_wslua.h header | ||
|
||
--- | ||
epan/wslua/CMakeLists.txt | 8 ++++++++ | ||
1 file changed, 8 insertions(+) | ||
|
||
diff --git a/epan/wslua/CMakeLists.txt b/epan/wslua/CMakeLists.txt | ||
index 39b23d3c5c..10216cc205 100644 | ||
--- a/epan/wslua/CMakeLists.txt | ||
+++ b/epan/wslua/CMakeLists.txt | ||
@@ -9,6 +9,14 @@ | ||
|
||
add_subdirectory(lrexlib) | ||
|
||
+set(WSLUA_PUBLIC_HEADERS | ||
+ init_wslua.h | ||
+) | ||
+ | ||
+install(FILES ${WSLUA_PUBLIC_HEADERS} | ||
+ DESTINATION "${PROJECT_INSTALL_INCLUDEDIR}/epan/wslua" | ||
+) | ||
+ | ||
set(WSLUA_MODULES | ||
${CMAKE_CURRENT_SOURCE_DIR}/lua_bitop.c | ||
${CMAKE_CURRENT_SOURCE_DIR}/wslua_address.c | ||
-- | ||
2.34.1 | ||
|
Oops, something went wrong.