]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust/dns: handle multiple txt strings
authorJason Ish <ish@unx.ca>
Tue, 27 Jun 2017 22:47:23 +0000 (16:47 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 28 Jun 2017 06:56:58 +0000 (08:56 +0200)
commit40991cab8222f40b6d0ad85312c021fb459dc2e5
treee47abd02477f43876ba008f297f5708e42694e0a
parent9dab3ec71e04081686c3632d0b0d28c953048a36
rust/dns: handle multiple txt strings

Fix handling of TXT records when there are multiple strings
in a single TXT record. For now, conform to the C implementation
where an answer record is created for each string in a single
txt record.

Also removes the data_len field from the answer entry. In Rust,
the length is available from actual data, which after decoding
may actually be different than the encoded data length, so just
use the length from the actual data.
rust/src/dns/dns.rs
rust/src/dns/log.rs
rust/src/dns/parser.rs