Lines Matching refs:u16
94 pub const FLG_FIN: u16 = 0x001;
95 pub const FLG_SYN: u16 = 0x002;
96 pub const FLG_RST: u16 = 0x004;
97 pub const FLG_PSH: u16 = 0x008;
98 pub const FLG_ACK: u16 = 0x010;
99 pub const FLG_URG: u16 = 0x020;
100 pub const FLG_ECE: u16 = 0x040;
101 pub const FLG_CWR: u16 = 0x080;
102 pub const FLG_NS: u16 = 0x100;
159 pub fn src_port(&self) -> u16 { in src_port() argument
166 pub fn dst_port(&self) -> u16 { in dst_port() argument
267 pub fn window_len(&self) -> u16 { in window_len() argument
274 pub fn checksum(&self) -> u16 { in checksum() argument
281 pub fn urgent_at(&self) -> u16 { in urgent_at() argument
371 pub fn set_src_port(&mut self, value: u16) { in set_src_port() argument
378 pub fn set_dst_port(&mut self, value: u16) { in set_dst_port() argument
528 let raw = (raw & !0xf000) | ((value as u16) / 4) << 12; in set_header_len()
534 pub fn set_window_len(&mut self, value: u16) { in set_window_len() argument
541 pub fn set_checksum(&mut self, value: u16) { in set_checksum() argument
548 pub fn set_urgent_at(&mut self, value: u16) { in set_urgent_at() argument
599 MaxSegmentSize(u16),
776 pub src_port: u16,
777 pub dst_port: u16,
781 pub window_len: u16,
783 pub max_seg_size: Option<u16>,