MCPcopy Create free account
hub / github.com/DNSCrypt/encrypted-dns-server / ancount

Function ancount

src/dns.rs:79–81  ·  view source on GitHub ↗
(packet: &[u8])

Source from the content-addressed store, hash-verified

77
78#[inline]
79pub fn ancount(packet: &[u8]) -> u16 {
80 BigEndian::read_u16(&packet[6..])
81}
82
83fn ancount_inc(packet: &mut [u8]) -> Result<(), Error> {
84 let mut ancount = ancount(packet);

Callers 5

ancount_incFunction · 0.85
min_ttlFunction · 0.85
set_ttlFunction · 0.85
query_metaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected