TZH-nh/moonwire/packet does not have a README file
pub(all) suberror PacketError {
EmptyPacket
UnknownMessageType(Byte)
InvalidPacketLength(msg_type~ : Byte, expected~ : Int, actual~ : Int)
NonZeroReservedBytes
InvalidFieldLength(field~ : String, expected~ : Int, actual~ : Int)
InvalidInnerIpPacket(String)
InvalidIpAddress(String)
} derive(Eq, Debug)fn HandshakeInitiation::encode_prefix_for_mac1(sender_index : UInt, unencrypted_ephemeral : BytesView, encrypted_static : BytesView, encrypted_timestamp : BytesView) -> Bytesfn HandshakeResponse::encode_prefix_for_mac1(sender_index : UInt, receiver_index : UInt, unencrypted_ephemeral : BytesView, encrypted_nothing : BytesView) -> Bytespub(all) enum WirePacket {
Initiation(HandshakeInitiation)
Response(HandshakeResponse)
Cookie(CookieReply)
Transport(TransportData)
} derive(Eq, Debug)fn build_ipv4_icmp_echo(src_v4 : UInt, dst_v4 : UInt, identifier : Int, sequence : Int, payload : BytesView, is_reply? : Bool) -> Bytesfn describe_inner_ip(decrypted : BytesView) -> Stringfn internet_checksum(data : BytesView) -> Intfn pad_inner_packet(plaintext : BytesView) -> BytesInstall
Download zipUserspace Sans-IO WireGuard protocol engine, configuration auditor, and PCAP packet decryptor in pure MoonBit.