summaryrefslogtreecommitdiff
path: root/src/packet/header.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/packet/header.rs (renamed from packet/src/header.rs)5
1 files changed, 2 insertions, 3 deletions
diff --git a/packet/src/header.rs b/src/packet/header.rs
index b2bf1a1..a75f6ba 100644
--- a/packet/src/header.rs
+++ b/src/packet/header.rs
@@ -1,4 +1,4 @@
-use super::{buffer::PacketBuffer, Result, result::ResultCode};
+use super::{buffer::PacketBuffer, result::ResultCode, Result};
#[derive(Clone, Debug)]
pub struct DnsHeader {
@@ -48,7 +48,6 @@ impl DnsHeader {
pub fn read(&mut self, buffer: &mut PacketBuffer) -> Result<()> {
self.id = buffer.read_u16()?;
-
let flags = buffer.read_u16()?;
let a = (flags >> 8) as u8;
let b = (flags & 0xFF) as u8;
@@ -99,4 +98,4 @@ impl DnsHeader {
Ok(())
}
-} \ No newline at end of file
+}