Home
last modified time | relevance | path

Searched refs:Flags (Results 1 – 3 of 3) sorted by relevance

/smoltcp-0.9.1/src/wire/
Ddns.rs51 pub struct Flags: u16 {
126 pub fn flags(&self) -> Flags { in flags() argument
128 Flags::from_bits_truncate(NetworkEndian::read_u16(field)) in flags()
224 pub fn set_flags(&mut self, val: Flags) { in set_flags() argument
226 let mask = Flags::all().bits; in set_flags()
409 pub flags: Flags,
556 Flags::RECURSION_DESIRED | Flags::AUTHENTIC_DATA in test_parse_request()
589 Flags::RESPONSE | Flags::RECURSION_DESIRED | Flags::RECURSION_AVAILABLE in test_parse_response()
628 Flags::RESPONSE | Flags::RECURSION_DESIRED | Flags::RECURSION_AVAILABLE in test_parse_response_multiple_a()
690 Flags::RESPONSE | Flags::RECURSION_DESIRED | Flags::RECURSION_AVAILABLE in test_parse_response_cname()
[all …]
Ddhcpv4.rs41 pub struct Flags: u16 {
356 pub fn flags(&self) -> Flags { in flags() argument
358 Flags::from_bits_truncate(NetworkEndian::read_u16(field)) in flags()
528 pub fn set_flags(&mut self, val: Flags) { in set_flags() argument
803 let broadcast = packet.flags().contains(Flags::BROADCAST); in parse()
850 let mut flags = Flags::empty(); in emit()
852 flags |= Flags::BROADCAST; in emit()
1097 packet.set_flags(Flags::empty()); in test_construct_discover()
/smoltcp-0.9.1/src/socket/
Ddns.rs10 use crate::wire::dns::{Flags, Opcode, Packet, Question, Rcode, Record, RecordData, Repr, Type};
379 if !p.flags().contains(Flags::RESPONSE) { in process()
564 flags: Flags::RECURSION_DESIRED, in dispatch()