From 4cf4c1d7d4494e5e612840a4b91c33c3a5ed65c3 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 26 Aug 2021 22:48:53 +0000 Subject: Set tc bit when truncating a packet Signed-off-by: Laurent Bercot --- src/dnsfunnel/dnsfunneld_process.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dnsfunnel/dnsfunneld_process.c b/src/dnsfunnel/dnsfunneld_process.c index f9055ac..13600dd 100644 --- a/src/dnsfunnel/dnsfunneld_process.c +++ b/src/dnsfunnel/dnsfunneld_process.c @@ -60,6 +60,7 @@ static inline unsigned int truncate_packet (char *s, unsigned int olen) hdr.counts.an -= counts.an ; hdr.counts.ns -= counts.ns ; hdr.counts.nr -= counts.nr ; + hdr.tc = 1 ; s6dns_message_header_pack(s, &hdr) ; return pos ; } -- cgit 1.4.1