X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=fuzz%2Fsrc%2Fmsg_targets%2Fmsg_reply_short_channel_ids_end.rs;fp=fuzz%2Fsrc%2Fmsg_targets%2Fmsg_reply_short_channel_ids_end.rs;h=fcd13154370b729b42966a917892847e8ff021e9;hb=10e818ac5329a3ff8229e7e76e6c0f7a356678ba;hp=0000000000000000000000000000000000000000;hpb=5ba4560be901078c0e757ab89112ac7b5e89e484;p=rust-lightning diff --git a/fuzz/src/msg_targets/msg_reply_short_channel_ids_end.rs b/fuzz/src/msg_targets/msg_reply_short_channel_ids_end.rs new file mode 100644 index 00000000..fcd13154 --- /dev/null +++ b/fuzz/src/msg_targets/msg_reply_short_channel_ids_end.rs @@ -0,0 +1,27 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + +// This file is auto-generated by gen_target.sh based on msg_target_template.txt +// To modify it, modify msg_target_template.txt and run gen_target.sh instead. + +use lightning::ln::msgs; + +use msg_targets::utils::VecWriter; +use utils::test_logger; + +#[inline] +pub fn msg_reply_short_channel_ids_end_test(data: &[u8], _out: Out) { + test_msg!(msgs::ReplyShortChannelIdsEnd, data); +} + +#[no_mangle] +pub extern "C" fn msg_reply_short_channel_ids_end_run(data: *const u8, datalen: usize) { + let data = unsafe { std::slice::from_raw_parts(data, datalen) }; + test_msg!(msgs::ReplyShortChannelIdsEnd, data); +}