~kf5jwc/dns-server-rs

3c1aff3cf17c6c30aed5bfc299c329b6d88442a5 — Kyle Jones 6 months ago 7e879c2
Expose ResultCode
3 files changed, 3 insertions(+), 2 deletions(-)

M src/dns_packet.rs
M src/dns_packet/dns_header.rs
M src/lib.rs
M src/dns_packet.rs => src/dns_packet.rs +1 -1
@@ 6,7 6,7 @@ mod query_type;

use log::debug;
pub use byte_packet_buffer::BytePacketBuffer;
pub use dns_header::DnsHeader;
pub use dns_header::{DnsHeader, ResultCode};
pub use dns_question::DnsQuestion;
pub use dns_record::DnsRecord;
pub use query_type::QueryType;

M src/dns_packet/dns_header.rs => src/dns_packet/dns_header.rs +1 -1
@@ 2,7 2,7 @@ mod result_code;

use std::io::Result;
use super::BytePacketBuffer;
use result_code::ResultCode;
pub use result_code::ResultCode;

#[derive(Default, Clone, Debug)]
pub struct DnsHeader {

M src/lib.rs => src/lib.rs +1 -0
@@ 4,5 4,6 @@ pub use dns_packet::{
    BytePacketBuffer,
    DnsPacket,
    DnsQuestion,
    ResultCode,
    QueryType,
};