| /webrtc/sctp/src/param/ |
| H A D | param_type.rs | 6 pub(crate) enum ParamType { enum 64 impl fmt::Display for ParamType { implementation 99 impl From<u16> for ParamType { implementation 100 fn from(v: u16) -> ParamType { in from() argument 103 5 => ParamType::Ipv4Addr, in from() 104 6 => ParamType::Ipv6Addr, in from() 116 32770 => ParamType::Random, in from() 135 impl From<ParamType> for u16 { 136 fn from(v: ParamType) -> u16 { in from() 139 ParamType::Ipv4Addr => 5, in from() [all …]
|
| H A D | mod.rs | 65 ParamType::ForwardTsnSupp => Ok(Box::new(ParamForwardTsnSupported::unmarshal(raw_param)?)), in build_param() 66 ParamType::SupportedExt => Ok(Box::new(ParamSupportedExtensions::unmarshal(raw_param)?)), in build_param() 67 ParamType::Random => Ok(Box::new(ParamRandom::unmarshal(raw_param)?)), in build_param() 68 ParamType::ReqHmacAlgo => Ok(Box::new(ParamRequestedHmacAlgorithm::unmarshal(raw_param)?)), in build_param() 69 ParamType::ChunkList => Ok(Box::new(ParamChunkList::unmarshal(raw_param)?)), in build_param() 70 ParamType::StateCookie => Ok(Box::new(ParamStateCookie::unmarshal(raw_param)?)), in build_param() 71 ParamType::HeartbeatInfo => Ok(Box::new(ParamHeartbeatInfo::unmarshal(raw_param)?)), in build_param() 72 ParamType::OutSsnResetReq => Ok(Box::new(ParamOutgoingResetRequest::unmarshal(raw_param)?)), in build_param() 73 ParamType::ReconfigResp => Ok(Box::new(ParamReconfigResponse::unmarshal(raw_param)?)), in build_param()
|
| H A D | param_test.rs | 11 (Bytes::from_static(&[0x0, 0x1]), ParamType::HeartbeatInfo), in test_parse_param_type_success() 12 (Bytes::from_static(&[0x0, 0xd]), ParamType::OutSsnResetReq), in test_parse_param_type_success() 16 let pt: ParamType = binary.get_u16().into(); in test_parse_param_type_success() 35 typ: ParamType::HeartbeatInfo, in test_param_header_success()
|
| H A D | param_header.rs | 8 pub(crate) typ: ParamType, 33 let typ: ParamType = reader.get_u16().into(); in unmarshal()
|
| H A D | param_chunk_list.rs | 29 typ: ParamType::ChunkList, in header() 37 if header.typ != ParamType::ChunkList { in unmarshal()
|
| H A D | param_unknown.rs | 3 use crate::param::param_type::ParamType; 28 typ: ParamType::Unknown { in header()
|
| H A D | param_unrecognized.rs | 2 use crate::param::param_type::ParamType; 32 typ: ParamType::UnrecognizedParam, in header()
|
| H A D | param_forward_tsn_supported.rs | 25 typ: ParamType::ForwardTsnSupp, in header()
|
| H A D | param_random.rs | 19 typ: ParamType::Random, in header()
|
| H A D | param_heartbeat_info.rs | 19 typ: ParamType::HeartbeatInfo, in header()
|
| H A D | param_state_cookie.rs | 22 typ: ParamType::StateCookie, in header()
|
| H A D | param_supported_extensions.rs | 29 typ: ParamType::SupportedExt, in header()
|
| H A D | param_outgoing_reset_request.rs | 66 typ: ParamType::OutSsnResetReq, in header()
|
| H A D | param_reconfig_response.rs | 94 typ: ParamType::ReconfigResp, in header()
|
| H A D | param_requested_hmac_algorithm.rs | 64 typ: ParamType::ReqHmacAlgo, in header()
|
| /webrtc/sctp/src/chunk/ |
| H A D | chunk_heartbeat_ack.rs | 2 use crate::param::param_type::ParamType; 69 if p.header().typ != ParamType::HeartbeatInfo { in unmarshal() 81 if self.params[0].header().typ != ParamType::HeartbeatInfo { in marshal_to()
|
| H A D | chunk_heartbeat.rs | 67 if p.header().typ != ParamType::HeartbeatInfo { in unmarshal()
|
| /webrtc/sctp/src/association/ |
| H A D | association_internal.rs | 6 use crate::param::param_type::ParamType; 672 if let ParamType::Unknown { param_type } = param.header().typ { in handle_init()
|