From 914100a0ab38e8e04b8a8f2aa116adddc83e0cdb Mon Sep 17 00:00:00 2001 From: C0D3 M4513R <28912031+C0D3-M4513R@users.noreply.github.com> Date: Mon, 15 Jul 2024 14:32:45 +0200 Subject: [PATCH] update to wireshark 4 Signed-off-by: C0D3 M4513R <28912031+C0D3-M4513R@users.noreply.github.com> --- README.md | 2 +- packet-minecraft.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a3fa8a5..3f6c9e3 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ You can use the `minecraft` filter to only display minecraft packets ```bash apt install make gcc pkg-config wireshark-dev nodejs # Ubuntu -nix-shell -p gnumake wireshark.dev pkgconfig glib.dev nodejs-14_x # Nixos +nix-shell -p gnumake wireshark.dev pkg-config glib.dev nodejs_22 libgcrypt # Nixos ``` ### Clone and compile diff --git a/packet-minecraft.c b/packet-minecraft.c index cf25f32..c50200d 100644 --- a/packet-minecraft.c +++ b/packet-minecraft.c @@ -1,4 +1,4 @@ -#include +#include #define WS_BUILD_DLL @@ -15,8 +15,8 @@ #include WS_DLL_PUBLIC_DEF const gchar plugin_version[] = "0.0.0"; -WS_DLL_PUBLIC_DEF const int plugin_want_major = VERSION_MAJOR; -WS_DLL_PUBLIC_DEF const int plugin_want_minor = VERSION_MINOR; +WS_DLL_PUBLIC_DEF const int plugin_want_major = WIRESHARK_VERSION_MAJOR; +WS_DLL_PUBLIC_DEF const int plugin_want_minor = WIRESHARK_VERSION_MINOR; WS_DLL_PUBLIC void plugin_register(void);