summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-08-26 22:48:53 +0000
committerLaurent Bercot <ska@appnovation.com>2021-08-26 22:48:53 +0000
commit4cf4c1d7d4494e5e612840a4b91c33c3a5ed65c3 (patch)
tree93d6b991ff4c2f9038ba7e4021717ba6b4393a97
parentc4f5028b95067d97ff53894e705186004e51a81a (diff)
downloaddnsfunnel-4cf4c1d7d4494e5e612840a4b91c33c3a5ed65c3.tar.xz
Set tc bit when truncating a packet
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--src/dnsfunnel/dnsfunneld_process.c1
1 files changed, 1 insertions, 0 deletions
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 ;
}