diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-08-26 22:48:53 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2021-08-26 22:48:53 +0000 |
commit | 4cf4c1d7d4494e5e612840a4b91c33c3a5ed65c3 (patch) | |
tree | 93d6b991ff4c2f9038ba7e4021717ba6b4393a97 /src | |
parent | c4f5028b95067d97ff53894e705186004e51a81a (diff) | |
download | dnsfunnel-4cf4c1d7d4494e5e612840a4b91c33c3a5ed65c3.tar.gz dnsfunnel-4cf4c1d7d4494e5e612840a4b91c33c3a5ed65c3.tar.xz dnsfunnel-4cf4c1d7d4494e5e612840a4b91c33c3a5ed65c3.zip |
Set tc bit when truncating a packet
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/dnsfunnel/dnsfunneld_process.c | 1 |
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 ; } |