Skip to main content

encode_node_status_query

Function encode_node_status_query 

Source
pub fn encode_node_status_query(
    trn_id: u16,
    name: &str,
    suffix: u8,
) -> Result<Vec<u8>>
Expand description

Build a NODE STATUS REQUEST (RFC 1002 §4.2.17) — the nbtstat -A question.

FLAGS is always zero: a node status request is answered by the node itself and there is nothing to recurse to, which is also exactly what nmblookup -A sends.