Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add version info to the zilla.lua plugin
  • Loading branch information
attilakreiner committed Dec 14, 2023
commit e7dc3ce150062537a04be750113402fe6c8bc22b
14 changes: 14 additions & 0 deletions incubator/command-dump/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
Expand Down Expand Up @@ -137,5 +142,14 @@
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>wireshark/zilla.lua</include>
</includes>
</resource>
</resources>
</build>
</project>
15 changes: 14 additions & 1 deletion incubator/command-dump/src/main/resources/wireshark/zilla.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,20 @@

]]

zilla_protocol = Proto("Zilla", "Zilla Frames")
local zilla_version = "@version@"
if zilla_version == string.format("@%s@", "version") or zilla_version == "develop-SNAPSHOT" then
zilla_version = "dev"
end

local zilla_info = {
version = zilla_version,
author = "Aklivity, Inc.",
repository = "https://github.com/aklivity/zilla",
description = "Dissector for the internal protocol of Zilla"
}
set_plugin_info(zilla_info)

local zilla_protocol = Proto("Zilla", "Zilla Frames")

HEADER_OFFSET = 0
LABELS_OFFSET = 16
Expand Down