Struct dnstap::DNSMessage [] [src]

pub struct DNSMessage {
    pub identity: Option<Vec<u8>>,
    pub version: Option<Vec<u8>>,
    pub message_type: MessageType,
    pub socket_family: Option<SocketFamily>,
    pub socket_protocol: Option<SocketProtocol>,
    pub query_address: Option<IpAddr>,
    pub query_port: Option<u16>,
    pub query_time: Option<Duration>,
    pub query_packet: Option<Vec<u8>>,
    pub response_address: Option<IpAddr>,
    pub response_port: Option<u16>,
    pub response_time: Option<Duration>,
    pub response_packet: Option<Vec<u8>>,
    pub bailiwick: Option<String>,
}

A DNS message.

All properties are optional except the message type.

Although socket_family can be explicitly set, it can also be automatically inferred from query_address or response_address if these are present.

Fields

Methods

impl DNSMessage
[src]

Returns a minimal DNS message

Trait Implementations

impl Clone for DNSMessage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for DNSMessage
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.