Lines Matching refs:payload

35                 payload: Bytes::from_static(&[0xFF, 0xFF, 0xFF, 0xFF]),  in test_basic()
39 payload: Bytes::from_static(&[0x98, 0x36, 0xbe, 0x88, 0x9e]), in test_basic()
106 payload: Bytes::from_static(&[0]), in test_extension()
110 payload: Bytes::from_static(&[]), in test_extension()
135 assert_eq!(&packet.payload[..], &raw_pkt[12..12 + 25]); in test_padding()
153 payload: Bytes::from_static(&[3, 4]), in test_packet_marshal_unmarshal()
157 payload: Bytes::from_static(&[5, 6]), in test_packet_marshal_unmarshal()
162 payload: Bytes::from_static(&[0xFFu8; 15]), in test_packet_marshal_unmarshal()
189 payload: Bytes::from_static(&[0xAA]), in test_rfc_8285_one_byte_extension()
199 payload: raw_pkt.slice(20..), in test_rfc_8285_one_byte_extension()
250 payload: Bytes::from_static(&[0xAA]), in test_rfc_8285_one_byte_two_extension_of_two_bytes()
254 payload: Bytes::from_static(&[0xBB]), in test_rfc_8285_one_byte_two_extension_of_two_bytes()
265 payload: raw_pkt.slice(20..), in test_rfc_8285_one_byte_two_extension_of_two_bytes()
381 payload: Bytes::from_static(&[0xAA]), in test_rfc_8285_one_byte_multiple_extension()
385 payload: Bytes::from_static(&[0xBB, 0xBB]), in test_rfc_8285_one_byte_multiple_extension()
389 payload: Bytes::from_static(&[0xCC, 0xCC]), in test_rfc_8285_one_byte_multiple_extension()
399 payload: raw_pkt[28..].into(), in test_rfc_8285_one_byte_multiple_extension()
429 payload: Bytes::from_static(&[ in test_rfc_8285_two_byte_extension()
441 payload: raw_pkt.slice(44..), in test_rfc_8285_two_byte_extension()
531 payload: Bytes::from_static(&[]), in test_rfc8285_two_byte_multiple_extension_with_large_extension()
535 payload: Bytes::from_static(&[0xBB]), in test_rfc8285_two_byte_multiple_extension_with_large_extension()
539 payload: Bytes::from_static(&[ in test_rfc8285_two_byte_multiple_extension_with_large_extension()
552 payload: raw_pkt.slice(40..), in test_rfc8285_two_byte_multiple_extension_with_large_extension()
566 let payload = Bytes::from_static(&[ in test_rfc8285_get_extension_returns_nil_when_extension_disabled() localVariable
581 payload, in test_rfc8285_get_extension_returns_nil_when_extension_disabled()
595 let payload = Bytes::from_static(&[ in test_rfc8285_del_extension() localVariable
606 payload: Bytes::from_static(&[0xAA]), in test_rfc8285_del_extension()
615 payload, in test_rfc8285_del_extension()
637 let payload = Bytes::from_static(&[0x98u8, 0x36, 0xbe, 0x88, 0x9e]); in test_rfc8285_get_extension_ids() localVariable
647 payload: Bytes::from_static(&[0xAA]), in test_rfc8285_get_extension_ids()
651 payload: Bytes::from_static(&[0xBB]), in test_rfc8285_get_extension_ids()
661 payload, in test_rfc8285_get_extension_ids()
683 let payload = Bytes::from_static(&[0x98u8, 0x36, 0xbe, 0x88, 0x9e]); in test_rfc8285_get_extension_ids_return_empty_when_extension_disabled() localVariable
696 payload, in test_rfc8285_get_extension_ids_return_empty_when_extension_disabled()
705 let payload = Bytes::from_static(&[0x98u8, 0x36, 0xbe, 0x88, 0x9e]); in test_rfc8285_del_extension_returns_error_when_extenstions_disabled() localVariable
718 payload, in test_rfc8285_del_extension_returns_error_when_extenstions_disabled()
730 let payload = Bytes::from_static(&[0x98u8, 0x36, 0xbe, 0x88, 0x9e]); in test_rfc8285_one_byte_set_extension_should_enable_extension_when_adding() localVariable
743 payload, in test_rfc8285_one_byte_set_extension_should_enable_extension_when_adding()
769 let payload = Bytes::from_static(&[0x98u8, 0x36, 0xbe, 0x88, 0x9e]); in test_rfc8285_set_extension_should_set_correct_extension_profile_for_16_byte_extension() localVariable
782 payload, in test_rfc8285_set_extension_should_set_correct_extension_profile_for_16_byte_extension()
801 let payload = Bytes::from_static(&[0x98u8, 0x36, 0xbe, 0x88, 0x9e]); in test_rfc8285_set_extension_should_update_existing_extension() localVariable
810 payload: Bytes::from_static(&[0xAA]), in test_rfc8285_set_extension_should_update_existing_extension()
819 payload, in test_rfc8285_set_extension_should_update_existing_extension()
842 let payload = Bytes::from_static(&[0x98u8, 0x36, 0xbe, 0x88, 0x9e]); in test_rfc8285_one_byte_set_extension_should_error_when_invalid_id_provided() localVariable
851 payload: Bytes::from_static(&[0xAA]), in test_rfc8285_one_byte_set_extension_should_error_when_invalid_id_provided()
860 payload, in test_rfc8285_one_byte_set_extension_should_error_when_invalid_id_provided()
893 let payload = reserved_id_pkt.slice(17..); in test_rfc8285_one_byte_extension_terminate_processing_when_reserved_id_encountered() localVariable
894 assert_eq!(p.payload, payload, "p.payload must be same as payload"); in test_rfc8285_one_byte_extension_terminate_processing_when_reserved_id_encountered()
900 let payload = Bytes::from_static(&[0x98u8, 0x36, 0xbe, 0x88, 0x9e]); in test_rfc8285_one_byte_set_extension_should_error_when_payload_too_large() localVariable
909 payload: Bytes::from_static(&[0xAAu8]), in test_rfc8285_one_byte_set_extension_should_error_when_payload_too_large()
918 payload, in test_rfc8285_one_byte_set_extension_should_error_when_payload_too_large()
937 let payload = Bytes::from_static(&[0x98u8, 0x36, 0xbe, 0x88, 0x9e]); in test_rfc8285_two_bytes_set_extension_should_enable_extension_when_adding() localVariable
951 payload, in test_rfc8285_two_bytes_set_extension_should_enable_extension_when_adding()
982 let payload = Bytes::from_static(&[0x98u8, 0x36, 0xbe, 0x88, 0x9e]); in test_rfc8285_two_byte_set_extension_should_update_existing_extension() localVariable
991 payload: Bytes::from_static(&[0xAA]), in test_rfc8285_two_byte_set_extension_should_update_existing_extension()
1000 payload, in test_rfc8285_two_byte_set_extension_should_update_existing_extension()
1023 let payload = Bytes::from_static(&[0x98u8, 0x36, 0xbe, 0x88, 0x9e]); in test_rfc8285_two_byte_set_extension_should_error_when_payload_too_large() localVariable
1032 payload: Bytes::from_static(&[0xAA]), in test_rfc8285_two_byte_set_extension_should_error_when_payload_too_large()
1041 payload, in test_rfc8285_two_byte_set_extension_should_error_when_payload_too_large()
1077 let payload = Bytes::from_static(&[0x98u8, 0x36, 0xbe, 0x88, 0x9e]); in test_rfc3550_set_extension_should_error_when_non_zero() localVariable
1086 payload: Bytes::from_static(&[0xAA]), in test_rfc3550_set_extension_should_error_when_non_zero()
1095 payload, in test_rfc3550_set_extension_should_error_when_non_zero()
1111 let payload = Bytes::from_static(&[0x98u8, 0x36, 0xbe, 0x88, 0x9e]); in test_rfc3550_set_extension_should_error_when_setting_non_zero_id() localVariable
1125 payload, in test_rfc3550_set_extension_should_error_when_setting_non_zero_id()
1219 let payload = raw_pkt.slice(12..); in test_round_trip() localVariable
1224 payload, p.payload, in test_round_trip()
1226 p.payload, payload in test_round_trip()
1236 payload, p.payload, in test_round_trip()
1238 payload, p.payload, in test_round_trip()