aboutgitcodebugslistschat
path: root/tap.c
diff options
context:
space:
mode:
Diffstat (limited to 'tap.c')
-rw-r--r--tap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tap.c b/tap.c
index 0920a32..412766c 100644
--- a/tap.c
+++ b/tap.c
@@ -251,7 +251,7 @@ void *tap_push_uh4(struct udphdr *uh, struct in_addr src, in_port_t sport,
uh->source = htons(sport);
uh->dest = htons(dport);
uh->len = htons(l4len);
- csum_udp4(uh, src, dst, &payload);
+ csum_udp4(uh, src, dst, &payload, dlen);
return (char *)uh + sizeof(*uh);
}
@@ -356,7 +356,7 @@ void *tap_push_uh6(struct udphdr *uh,
uh->source = htons(sport);
uh->dest = htons(dport);
uh->len = htons(l4len);
- csum_udp6(uh, src, dst, &payload);
+ csum_udp6(uh, src, dst, &payload, dlen);
return (char *)uh + sizeof(*uh);
}