summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trafgen_l4.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/trafgen_l4.c b/trafgen_l4.c
index c109675..79c5914 100644
--- a/trafgen_l4.c
+++ b/trafgen_l4.c
@@ -44,8 +44,6 @@ static void udp_packet_finish(struct proto_hdr *hdr)
if (!lower)
return;
- total_len = proto_field_get_u16(hdr, UDP_LEN);
-
switch (lower->id) {
case PROTO_IP4:
csum = p4_csum((void *) proto_header_ptr(lower), proto_header_ptr(hdr),