1 #[deprecated(since = "0.10.1", note = "Please use tcp_option::KIND_END instead")] 2 /// Deprecated please use [tcp_option::KIND_END] instead. 3 pub const TCP_OPTION_ID_END: u8 = 0; 4 5 #[deprecated(since = "0.10.1", note = "Please use tcp_option::KIND_NOOP instead")] 6 /// Deprecated please use [tcp_option::KIND_NOOP] instead. 7 pub const TCP_OPTION_ID_NOP: u8 = 1; 8 9 #[deprecated( 10 since = "0.10.1", 11 note = "Please use tcp_option::KIND_MAXIMUM_SEGMENT_SIZE instead" 12 )] 13 /// Deprecated please use [tcp_option::KIND_MAXIMUM_SEGMENT_SIZE] instead. 14 pub const TCP_OPTION_ID_MAXIMUM_SEGMENT_SIZE: u8 = 2; 15 16 #[deprecated( 17 since = "0.10.1", 18 note = "Please use tcp_option::KIND_WINDOW_SCALE instead" 19 )] 20 /// Deprecated please use [tcp_option::KIND_WINDOW_SCALE] instead. 21 pub const TCP_OPTION_ID_WINDOW_SCALE: u8 = 3; 22 23 #[deprecated( 24 since = "0.10.1", 25 note = "Please use tcp_option::KIND_SELECTIVE_ACK_PERMITTED instead" 26 )] 27 /// Deprecated please use [tcp_option::KIND_SELECTIVE_ACK_PERMITTED] instead. 28 pub const TCP_OPTION_ID_SELECTIVE_ACK_PERMITTED: u8 = 4; 29 30 #[deprecated( 31 since = "0.10.1", 32 note = "Please use tcp_option::KIND_SELECTIVE_ACK instead" 33 )] 34 /// Deprecated please use [tcp_option::KIND_SELECTIVE_ACK] instead. 35 pub const TCP_OPTION_ID_SELECTIVE_ACK: u8 = 5; 36 37 #[deprecated( 38 since = "0.10.1", 39 note = "Please use tcp_option::KIND_TIMESTAMP instead" 40 )] 41 /// Deprecated please use [tcp_option::KIND_TIMESTAMP] instead. 42 pub const TCP_OPTION_ID_TIMESTAMP: u8 = 8; 43 44 /// Module containing the constants for tcp options (id number & sizes). 45 pub mod tcp_option { 46 /// `u8` identifying the "end of options list" in the tcp option. 47 pub const KIND_END: u8 = 0; 48 /// `u8` identifying a "no operation" tcp option. 49 pub const KIND_NOOP: u8 = 1; 50 /// `u8` identifying a "maximum segment size" tcp option. 51 pub const KIND_MAXIMUM_SEGMENT_SIZE: u8 = 2; 52 /// `u8` identifying a "window scaling" tcp option. 53 pub const KIND_WINDOW_SCALE: u8 = 3; 54 /// `u8` identifying a "selective acknowledgement permitted" tcp option. 55 pub const KIND_SELECTIVE_ACK_PERMITTED: u8 = 4; 56 /// `u8` identifying a "selective acknowledgement" tcp option. 57 pub const KIND_SELECTIVE_ACK: u8 = 5; 58 /// `u8` identifying a "timestamp and echo of previous timestamp" tcp option. 59 pub const KIND_TIMESTAMP: u8 = 8; 60 /// Length in octets/bytes of the "end" tcp option (includes kind value). 61 pub const LEN_END: u8 = 1; 62 /// Length in octets/bytes of the "no operation" tcp option (includes kind value). 63 pub const LEN_NOOP: u8 = 1; 64 /// Length in octets/bytes of the "maximum segment size" tcp option (includes kind value). 65 pub const LEN_MAXIMUM_SEGMENT_SIZE: u8 = 4; 66 /// Length in octets/bytes of the "window scaling" tcp option (includes kind value). 67 pub const LEN_WINDOW_SCALE: u8 = 3; 68 /// Length in octets/bytes of the "selective acknowledgement permitted" tcp option (includes kind value). 69 pub const LEN_SELECTIVE_ACK_PERMITTED: u8 = 2; 70 /// Length in octets/bytes of the "timestamp and echo of previous timestamp" tcp option (includes kind value). 71 pub const LEN_TIMESTAMP: u8 = 10; 72 } 73