use bytes::Bytes;
use dns_message_parser::Dns;
fn decode_msg(msg: &[u8]) {
let bytes = Bytes::copy_from_slice(&msg[..]);
let dns = Dns::decode(&bytes);
println!("{:?}", dns);
assert!(dns.is_ok())
}
#[test]
fn a_example_org_request() {
let msg = b"\xdb\x1c\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x01\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn a_example_org_response() {
let msg = b"\xdb\x1c\x85\x80\x00\x01\x00\x01\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x01\x00\x01\xc0\x0c\x00\x01\x00\x01\x00\x00\x0e\x10\x00\x04\x0a\x00\
\x00\x0a";
decode_msg(&msg[..]);
}
#[test]
fn ns_example_org_request() {
let msg = b"\x03\x78\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x02\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn ns_example_org_response() {
let msg = b"\x03\x78\x85\x80\x00\x01\x00\x02\x00\x00\x00\x02\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x02\x00\x01\xc0\x0c\x00\x02\x00\x01\x00\x00\x0e\x10\x00\x06\x03\x6e\
\x73\x31\xc0\x0c\xc0\x0c\x00\x02\x00\x01\x00\x00\x0e\x10\x00\x06\x03\x6e\x73\x32\xc0\x0c\xc0\
\x29\x00\x01\x00\x01\x00\x00\x0e\x10\x00\x04\x7f\x00\x00\x01\xc0\x3b\x00\x01\x00\x01\x00\x00\
\x0e\x10\x00\x04\x0a\x00\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn cname_example_org_request() {
let msg = b"\xe2\x7b\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x05\x63\x6e\x61\x6d\x65\x07\x65\
\x78\x61\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00\x00\x05\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn cname_example_org_response() {
let msg = b"\xe2\x7b\x85\x80\x00\x01\x00\x01\x00\x00\x00\x00\x05\x63\x6e\x61\x6d\x65\x07\x65\
\x78\x61\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00\x00\x05\x00\x01\xc0\x0c\x00\x05\x00\x01\x00\x00\
\x0e\x10\x00\x02\xc0\x12";
decode_msg(&msg[..]);
}
#[test]
fn soa_example_org_request() {
let msg = b"\xeb\x9c\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x06\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn soa_example_org_response() {
let msg = b"\xeb\x9c\x85\x80\x00\x01\x00\x01\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x06\x00\x01\xc0\x0c\x00\x06\x00\x01\x00\x00\x0e\x10\x00\x22\x03\x6e\
\x73\x31\xc0\x0c\x05\x61\x64\x6d\x69\x6e\xc0\x0c\x00\x00\x00\x01\x00\x00\x2a\x30\x00\x00\x0e\
\x10\x00\x09\x3a\x80\x00\x00\x0e\x10";
decode_msg(&msg[..]);
}
#[test]
fn mb_example_org_request() {
let msg = b"\x36\x8b\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x07\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn mb_example_org_response() {
let msg = b"\x36\x8b\x85\x80\x00\x01\x00\x01\x00\x00\x00\x01\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x07\x00\x01\xc0\x0c\x00\x07\x00\x01\x00\x00\x0e\x10\x00\x07\x04\x6d\
\x61\x69\x6c\xc0\x0c\xc0\x29\x00\x01\x00\x01\x00\x00\x0e\x10\x00\x04\x0a\x00\x00\x0c";
decode_msg(&msg[..]);
}
#[test]
fn mg_example_org_request() {
let msg = b"\x7d\x35\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x08\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn mg_example_org_response() {
let msg = b"\x7d\x35\x85\x80\x00\x01\x00\x01\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x08\x00\x01\xc0\x0c\x00\x08\x00\x01\x00\x00\x0e\x10\x00\x07\x04\x6d\
\x61\x69\x6c\xc0\x0c";
decode_msg(&msg[..]);
}
#[test]
fn mr_example_org_request() {
let msg = b"\xa3\xc4\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x09\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn mr_example_org_response() {
let msg = b"\xa3\xc4\x85\x80\x00\x01\x00\x01\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x09\x00\x01\xc0\x0c\x00\x09\x00\x01\x00\x00\x0e\x10\x00\x07\x04\x6d\
\x61\x69\x6c\xc0\x0c";
decode_msg(&msg[..]);
}
#[test]
fn wks_example_org_request() {
let msg = b"\xd9\xc6\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x0b\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn wks_example_org_response() {
let msg = b"\xd9\xc6\x85\x80\x00\x01\x00\x01\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x0b\x00\x01\xc0\x0c\x00\x0b\x00\x01\x00\x00\x0e\x10\x00\x08\x0a\x00\
\x00\x0a\x06\x01\x00\x15";
decode_msg(&msg[..]);
}
#[test]
fn ptr_example_org_request() {
let msg = b"\x0c\x72\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x02\x31\x30\x01\x30\x01\x30\x02\
\x31\x30\x07\x65\x78\x61\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00\x00\x0c\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn ptr_example_org_response() {
let msg = b"\x0c\x72\x85\x80\x00\x01\x00\x01\x00\x00\x00\x00\x02\x31\x30\x01\x30\x01\x30\x02\
\x31\x30\x07\x65\x78\x61\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00\x00\x0c\x00\x01\xc0\x0c\x00\x0c\
\x00\x01\x00\x00\x0e\x10\x00\x0d\x07\x65\x78\x61\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00";
decode_msg(&msg[..]);
}
#[test]
fn hinfo_example_org_request() {
let msg = b"\x78\x99\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x0d\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn hinfo_example_org_response() {
let msg = b"\x78\x99\x85\x80\x00\x01\x00\x01\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x0d\x00\x01\xc0\x0c\x00\x0d\x00\x01\x00\x00\x0e\x10\x00\x0b\x04\x54\
\x45\x53\x54\x05\x4c\x69\x6e\x75\x78";
decode_msg(&msg[..]);
}
#[test]
fn minfo_example_org_request() {
let msg = b"\x03\x10\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x0e\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn minfo_example_org_response() {
let msg = b"\x03\x10\x85\x80\x00\x01\x00\x01\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x0e\x00\x01\xc0\x0c\x00\x0e\x00\x01\x00\x00\x0e\x10\x00\x10\x05\x61\
\x64\x6d\x69\x6e\xc0\x0c\x05\x65\x72\x72\x6f\x72\xc0\x0c";
decode_msg(&msg[..]);
}
#[test]
fn mx_example_org_request() {
let msg = b"\xca\x2d\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x0f\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn mx_example_org_response() {
let msg = b"\xca\x2d\x85\x80\x00\x01\x00\x01\x00\x00\x00\x01\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x0f\x00\x01\xc0\x0c\x00\x0f\x00\x01\x00\x00\x0e\x10\x00\x09\x00\x0a\
\x04\x6d\x61\x69\x6c\xc0\x0c\xc0\x2b\x00\x01\x00\x01\x00\x00\x0e\x10\x00\x04\x0a\x00\x00\x0c";
decode_msg(&msg[..]);
}
#[test]
fn txt_example_org_request() {
let msg = b"\x25\xd6\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x10\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn txt_example_org_response() {
let msg = b"\x25\xd6\x85\x80\x00\x01\x00\x01\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x10\x00\x01\xc0\x0c\x00\x10\x00\x01\x00\x00\x0e\x10\x00\x05\x04\x54\
\x65\x78\x74";
decode_msg(&msg[..]);
}
#[test]
fn rp_example_org_request() {
let msg = b"\x9b\xf1\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x11\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn rp_example_org_response() {
let msg = b"\x9b\xf1\x85\x80\x00\x01\x00\x01\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x11\x00\x01\xc0\x0c\x00\x11\x00\x01\x00\x00\x0e\x10\x00\x20\x05\x61\
\x64\x6d\x69\x6e\x07\x65\x78\x61\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00\x07\x65\x78\x61\x6d\x70\
\x6c\x65\x03\x6f\x72\x67\x00";
decode_msg(&msg[..]);
}
#[test]
fn afsdb_example_org_request() {
let msg = b"\x10\x2b\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x12\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn afsdb_example_org_response() {
let msg = b"\x10\x2b\x85\x80\x00\x01\x00\x02\x00\x00\x00\x01\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x12\x00\x01\xc0\x0c\x00\x12\x00\x01\x00\x00\x0e\x10\x00\x15\x00\x01\
\x05\x61\x66\x73\x64\x62\x07\x65\x78\x61\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00\xc0\x0c\x00\x12\
\x00\x01\x00\x00\x0e\x10\x00\x15\x00\x02\x05\x61\x66\x73\x64\x62\x07\x65\x78\x61\x6d\x70\x6c\
\x65\x03\x6f\x72\x67\x00\xc0\x4c\x00\x01\x00\x01\x00\x00\x0e\x10\x00\x04\x0a\x00\x00\x0e";
decode_msg(&msg[..]);
}
#[test]
fn x25_example_org_request() {
let msg = b"\x51\x00\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x05\x72\x65\x6c\x61\x79\x07\x65\
\x78\x61\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00\x00\x13\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn x25_example_org_response() {
let msg = b"\x51\x00\x85\x80\x00\x01\x00\x01\x00\x00\x00\x00\x05\x72\x65\x6c\x61\x79\x07\x65\
\x78\x61\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00\x00\x13\x00\x01\xc0\x0c\x00\x13\x00\x01\x00\x00\
\x0e\x10\x00\x0d\x0c\x33\x31\x31\x30\x36\x31\x37\x30\x30\x39\x35\x36";
decode_msg(&msg[..]);
}
#[test]
fn isdn_example_org_request() {
let msg = b"\x4f\xb2\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x05\x72\x65\x6c\x61\x79\x07\x65\
\x78\x61\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00\x00\x14\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn isdn_example_org_response() {
let msg = b"\x4f\xb2\x85\x80\x00\x01\x00\x01\x00\x00\x00\x00\x05\x72\x65\x6c\x61\x79\x07\x65\
\x78\x61\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00\x00\x14\x00\x01\xc0\x0c\x00\x14\x00\x01\x00\x00\
\x0e\x10\x00\x14\x0f\x31\x35\x30\x38\x36\x32\x30\x32\x38\x30\x30\x33\x32\x31\x37\x03\x30\x30\
\x34";
decode_msg(&msg[..]);
}
#[test]
fn rt_example_org_request() {
let msg = b"\x05\xa4\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x15\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn rt_example_org_response() {
let msg = b"\x05\xa4\x85\x80\x00\x01\x00\x01\x00\x00\x00\x03\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x15\x00\x01\xc0\x0c\x00\x15\x00\x01\x00\x00\x0e\x10\x00\x15\x00\x02\
\x05\x72\x65\x6c\x61\x79\x07\x65\x78\x61\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00\xc0\x2b\x00\x01\
\x00\x01\x00\x00\x0e\x10\x00\x04\x0a\x00\x00\x10\xc0\x2b\x00\x13\x00\x01\x00\x00\x0e\x10\x00\
\x0d\x0c\x33\x31\x31\x30\x36\x31\x37\x30\x30\x39\x35\x36\xc0\x2b\x00\x14\x00\x01\x00\x00\x0e\
\x10\x00\x14\x0f\x31\x35\x30\x38\x36\x32\x30\x32\x38\x30\x30\x33\x32\x31\x37\x03\x30\x30\x34";
decode_msg(&msg[..]);
}
#[test]
fn nsap_example_org_request() {
let msg = b"\x13\x86\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x04\x6e\x73\x61\x70\x07\x65\x78\
\x61\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00\x00\x16\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn nsap_example_org_response() {
let msg = b"\x13\x86\x85\x80\x00\x01\x00\x01\x00\x00\x00\x00\x04\x6e\x73\x61\x70\x07\x65\x78\
\x61\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00\x00\x16\x00\x01\xc0\x0c\x00\x16\x00\x01\x00\x00\x0e\
\x10\x00\x14\x47\x00\x05\x80\x00\x5a\x00\x00\x00\x00\x01\xe1\x33\xff\xff\xff\x00\x01\x61\x00";
decode_msg(&msg[..]);
}
#[test]
fn px_example_org_request() {
let msg = b"\xda\xbb\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x02\x70\x78\x07\x65\x78\x61\x6d\
\x70\x6c\x65\x03\x6f\x72\x67\x00\x00\x1a\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn px_example_org_response() {
let msg = b"\xda\xbb\x85\x80\x00\x01\x00\x01\x00\x00\x00\x00\x02\x70\x78\x07\x65\x78\x61\x6d\
\x70\x6c\x65\x03\x6f\x72\x67\x00\x00\x1a\x00\x01\xc0\x0c\x00\x1a\x00\x01\x00\x00\x0e\x10\x00\
\x22\x00\x0a\x07\x65\x78\x61\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00\x05\x70\x78\x34\x30\x30\x07\
\x65\x78\x61\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00";
decode_msg(&msg[..]);
}
#[test]
fn gpos_example_org_request() {
let msg = b"\x98\x89\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x1b\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn gpos_example_org_response() {
let msg = b"\x98\x89\x85\x80\x00\x01\x00\x01\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x1b\x00\x01\xc0\x0c\x00\x1b\x00\x01\x00\x00\x0e\x10\x00\x17\x08\x2d\
\x33\x32\x2e\x30\x30\x38\x32\x08\x31\x32\x30\x2e\x30\x30\x35\x30\x04\x31\x30\x2e\x30";
decode_msg(&msg[..]);
}
#[test]
fn aaaa_example_org_request() {
let msg = b"\xeb\xac\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x1c\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn aaaa_example_org_response() {
let msg = b"\xeb\xac\x85\x80\x00\x01\x00\x01\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x1c\x00\x01\xc0\x0c\x00\x1c\x00\x01\x00\x00\x0e\x10\x00\x10\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn loc_example_org_request() {
let msg = b"\xf6\x5e\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x1d\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn loc_example_org_response() {
let msg = b"\xf6\x5e\x85\x80\x00\x01\x00\x01\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x1d\x00\x01\xc0\x0c\x00\x1d\x00\x01\x00\x00\x0e\x10\x00\x10\x00\x33\
\x16\x13\x89\xd1\xe2\xb0\x70\xfa\x7a\xe0\x00\x98\x8e\xb0";
decode_msg(&msg[..]);
}
#[test]
fn eid_example_org_request() {
let msg = b"\x93\xe3\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x1f\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn eid_example_org_response() {
let msg = b"\x93\xe3\x85\x80\x00\x01\x00\x01\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x1f\x00\x01\xc0\x0c\x00\x1f\x00\x01\x00\x00\x0e\x10\x00\x08\xe3\x2c\
\x6f\x78\x16\x3a\x93\x48";
decode_msg(&msg[..]);
}
#[test]
fn nimloc_example_org_request() {
let msg = b"\x6b\xb3\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x20\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn nimloc_example_org_response() {
let msg = b"\x6b\xb3\x85\x80\x00\x01\x00\x01\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x20\x00\x01\xc0\x0c\x00\x20\x00\x01\x00\x00\x0e\x10\x00\x06\x32\x25\
\x1a\x03\x00\x67";
decode_msg(&msg[..]);
}
#[test]
fn srv_example_org_request() {
let msg = b"\x9f\xed\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x05\x5f\x68\x74\x74\x70\x04\x5f\
\x74\x63\x70\x07\x65\x78\x61\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00\x00\x21\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn srv_example_org_response() {
let msg = b"\x9f\xed\x85\x80\x00\x01\x00\x01\x00\x00\x00\x01\x05\x5f\x68\x74\x74\x70\x04\x5f\
\x74\x63\x70\x07\x65\x78\x61\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00\x00\x21\x00\x01\xc0\x0c\x00\
\x21\x00\x01\x00\x00\x0e\x10\x00\x17\x00\x00\x00\x01\x00\x50\x03\x73\x72\x76\x07\x65\x78\x61\
\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00\xc0\x3a\x00\x01\x00\x01\x00\x00\x0e\x10\x00\x04\x0a\x00\
\x00\x18";
decode_msg(&msg[..]);
}
#[test]
fn kx_example_org_request() {
let msg = b"\xca\x1b\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x24\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn kx_example_org_response() {
let msg = b"\xca\x1b\x85\x80\x00\x01\x00\x01\x00\x00\x00\x01\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x24\x00\x01\xc0\x0c\x00\x24\x00\x01\x00\x00\x0e\x10\x00\x12\x00\x0a\
\x02\x6b\x78\x07\x65\x78\x61\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00\xc0\x2b\x00\x01\x00\x01\x00\
\x00\x0e\x10\x00\x04\x0a\x00\x00\x1a";
decode_msg(&msg[..]);
}
#[test]
fn dname_example_org_request() {
let msg = b"\xd9\xd6\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x03\x6e\x73\x31\x07\x65\x78\x61\
\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00\x00\x27\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn dname_example_org_response() {
let msg = b"\xd9\xd6\x85\x80\x00\x01\x00\x01\x00\x00\x00\x00\x03\x6e\x73\x31\x07\x65\x78\x61\
\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00\x00\x27\x00\x01\xc0\x0c\x00\x27\x00\x01\x00\x00\x0e\x10\
\x00\x13\x05\x64\x6e\x61\x6d\x65\x07\x65\x78\x61\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00";
decode_msg(&msg[..]);
}
#[test]
fn sshfp_example_org_request() {
let msg = b"\xe4\xd6\x01\x20\x00\x01\x00\x00\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x2c\x00\x01";
decode_msg(&msg[..]);
}
#[test]
fn sshfp_example_org_response() {
let msg = b"\xe4\xd6\x85\x80\x00\x01\x00\x01\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\
\x03\x6f\x72\x67\x00\x00\x2c\x00\x01\xc0\x0c\x00\x2c\x00\x01\x00\x00\x0e\x10\x00\x16\x02\x01\
\x12\x34\x56\x78\x9a\xbc\xde\xf6\x78\x90\x12\x34\x56\x78\x9a\xbc\xde\xf6\x78\x90";
decode_msg(&msg[..]);
}