Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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]
34
pub fn rcode(packet: &[u8]) -> u8 {
35
packet[3] & 0x0f
36
}
37
38
#[inline]
39
pub fn set_rcode(packet: &mut [u8], rcode: u8) {
Callers
3
rcode_servfail
Function · 0.85
rcode_refused
Function · 0.85
rcode_nxdomain
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected