Docs.rs
  • ya-relay-stack-0.4.1
    • ya-relay-stack 0.4.1
    • Docs.rs crate page
    • LGPL-3.0
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • nieznanysprawiciel
    • wkargul
    • github:golemfactory:core-dev
    • Dependencies
      • derive_more ^0.99 normal
      • futures ^0.3 normal
      • lazy_static ^1 normal
      • log ^0.4 normal
      • managed ^0.8 normal
      • num-derive ^0.3 normal
      • num-traits ^0.2 normal
      • rand ^0.8 normal
      • thiserror ^1.0 normal
      • tokio ^1 normal
      • tokio-stream ^0.1 normal
      • ya-relay-util ^0.1 normal
      • ya-smoltcp ^0.1 normal
      • anyhow ^1.0 dev
      • hex ^0.4 dev
      • sha3 ^0.8 dev
      • tokio ^1 dev
    • Versions
    • 16.86% of the crate is documented
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

logo

Module packet

  • Structs
  • Enums
  • Constants
  • Traits
  • Functions
?
Change settings

Module ya_relay_stack::packet

source ·

Structs

ArpField
ArpPacket
ArpPacketMut
EtherField
IcmpV6Field
IcmpV6Packet
IpV4Field
IpV4Packet
IpV6Field
IpV6Packet
NdpNeighborAdvertisementField
NdpNeighborSolicitationField
NdpRouterAdvertisementField
TcpField
TcpPacket
UdpField
UdpPacket

Enums

EtherFrame
EtherType
IcmpV6Message
IpPacket
IpV6NextHeader

Constants

ETHERNET_HDR_SIZE
IP4_HDR_SIZE
IP6_HDR_SIZE
TCP_HDR_SIZE
UDP_HDR_SIZE

Traits

PeekPacket

Functions

ip_hton
Convert IpAddress to boxed bytes
ip_ntoh
Convert a byte slice to IpAddress
read_bit_field
Read a bit field spanning over a single byte
write_bit_field
Write a bit field spanning over a single byte
write_field