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

Function rcode

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

Source from the content-addressed store, hash-verified

32
33#[inline]
34pub fn rcode(packet: &[u8]) -> u8 {
35 packet[3] & 0x0f
36}
37
38#[inline]
39pub fn set_rcode(packet: &mut [u8], rcode: u8) {

Callers 3

rcode_servfailFunction · 0.85
rcode_refusedFunction · 0.85
rcode_nxdomainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected