aboutsummaryrefslogtreecommitdiffstats
path: root/tests/osmo-pcap-test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/osmo-pcap-test')
-rw-r--r--tests/osmo-pcap-test/l4_udp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/osmo-pcap-test/l4_udp.c b/tests/osmo-pcap-test/l4_udp.c
index 0a4266e..9ffa77b 100644
--- a/tests/osmo-pcap-test/l4_udp.c
+++ b/tests/osmo-pcap-test/l4_udp.c
@@ -15,9 +15,7 @@
static int l4_udp_pkt_hdr_len(const uint8_t *pkt)
{
- const struct udphdr *udph = (const struct udphdr *)pkt;
-
- return ntohs(udph->len);
+ return sizeof(struct udphdr);
}
static int l4_udp_pkt_no_data(const uint8_t *pkt)