diff options
Diffstat (limited to 'internal/dns')
| -rw-r--r-- | internal/dns/.pack.go.swp | bin | 0 -> 12288 bytes | |||
| -rw-r--r-- | internal/dns/header.go | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/internal/dns/.pack.go.swp b/internal/dns/.pack.go.swp Binary files differnew file mode 100644 index 0000000..dd841fb --- /dev/null +++ b/internal/dns/.pack.go.swp diff --git a/internal/dns/header.go b/internal/dns/header.go index 3b51f67..0f462a8 100644 --- a/internal/dns/header.go +++ b/internal/dns/header.go @@ -47,7 +47,7 @@ func (h *Header) SetZ(v uint8) { h.Flags = (h.Flags &^ (0x7 << 4)) | ((uint1 func (h *Header) SetAD(v bool) { h.set(0x0020, v) } func (h *Header) SetCD(v bool) { h.set(0x0010, v) } func (h *Header) SetRCode(v uint8) { h.Flags = (h.Flags &^ 0xF) | (uint16(v) & 0xF) } - +func (h *Header) Rcode() uint8 { return uint8(h.Flags & 0xF) } func (h *Header) set(mask uint16, v bool) { if v { h.Flags |= mask |
