Skip to content

Commit

Permalink
libpacketdump: add decode support for new ETSI CC formats
Browse files Browse the repository at this point in the history
This includes TCP, UDP and RTP.

Update .deb and .rpm dependencies to require the upcoming
libwandder release, as these new format types are only defined
starting from 2.0.14.
  • Loading branch information
salcock committed Feb 10, 2025
1 parent eeecc62 commit 99c66c1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Maintainer: Shane Alcock <shane@alcock.co.nz>
Build-Depends: debhelper-compat (= 12), dh-autoreconf,
libpcap-dev, zlib1g-dev, flex, bison, doxygen, liblzma-dev, graphviz,
libncurses5-dev, libbz2-dev, libssl-dev, libwandio1-dev (>= 4.0.0),
libwandder2-dev (>= 2.0.6), dpdk-dev, libnuma-dev, libyaml-dev,
libwandder2-dev (>= 2.0.14), dpdk-dev, libnuma-dev, libyaml-dev,
gcc-multilib
Standards-Version: 4.1.3
Section: libs
Expand Down
6 changes: 6 additions & 0 deletions libpacketdump/link_22.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ DLLEXPORT void decode(int link_type UNUSED, const char *packet, unsigned len)
: TRACE_ETHERTYPE_IPV6);
} else if (ccformat == WANDDER_ETSILI_CC_FORMAT_APPLICATION) {
decode_next((const char *)cchdr, rem, "tcp", 0);
} else if (ccformat == WANDDER_ETSILI_CC_FORMAT_TCP) {
decode_next((const char *)cchdr, rem, "ip", 6);
} else if (ccformat == WANDDER_ETSILI_CC_FORMAT_UDP) {
decode_next((const char *)cchdr, rem, "ip", 17);
} else if (ccformat == WANDDER_ETSILI_CC_FORMAT_RTP) {
decode_next((const char *)cchdr, rem, "udp", 0);
}

wandder_free_etsili_decoder(dec);
Expand Down
2 changes: 1 addition & 1 deletion rpm/libtrace4.spec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BuildRequires: numactl-devel
BuildRequires: ncurses-devel
BuildRequires: openssl-devel
BuildRequires: libyaml-devel
BuildRequires: libwandder2-devel >= 2.0.6
BuildRequires: libwandder2-devel >= 2.0.14
BuildRequires: libwandio1-devel
BuildRequires: dpdk-devel
BuildRequires: (flex-devel or libfl-static)
Expand Down

0 comments on commit 99c66c1

Please sign in to comment.