diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-10-27 16:40:39 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-02-09 17:51:45 +0100 |
commit | 1a6cd0206bb865d5d087dd5e44d226f0c5e24294 (patch) | |
tree | 0e47f76f2cca952a95a1c2a4765fab1d8309ba46 /src/resolve/resolved-dns-packet.h | |
parent | Merge pull request #18518 from poettering/inhibit-limit-columns (diff) | |
download | systemd-1a6cd0206bb865d5d087dd5e44d226f0c5e24294.tar.xz systemd-1a6cd0206bb865d5d087dd5e44d226f0c5e24294.zip |
resolved: add helper dns_packet_dup() for duplicating packets
Diffstat (limited to 'src/resolve/resolved-dns-packet.h')
-rw-r--r-- | src/resolve/resolved-dns-packet.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-packet.h b/src/resolve/resolved-dns-packet.h index 4dba96b3b8..c33ca8c999 100644 --- a/src/resolve/resolved-dns-packet.h +++ b/src/resolve/resolved-dns-packet.h @@ -176,6 +176,8 @@ static inline unsigned DNS_PACKET_RRCOUNT(DnsPacket *p) { int dns_packet_new(DnsPacket **p, DnsProtocol protocol, size_t min_alloc_dsize, size_t max_size); int dns_packet_new_query(DnsPacket **p, DnsProtocol protocol, size_t min_alloc_dsize, bool dnssec_checking_disabled); +int dns_packet_dup(DnsPacket **ret, DnsPacket *p); + void dns_packet_set_flags(DnsPacket *p, bool dnssec_checking_disabled, bool truncated); DnsPacket *dns_packet_ref(DnsPacket *p); |