Trait pnet::packet::Packet
[−]
[src]
pub trait Packet { fn packet(&self) -> &[u8]; fn payload(&self) -> &[u8]; }
Represents a generic network packet
Required Methods
fn packet(&self) -> &[u8]
Retreive the underlying buffer for the packet
fn payload(&self) -> &[u8]
Retreive the payload for the packet
Implementors
impl<'a> Packet for MutableEthernetPacket<'a>
impl<'a> Packet for EthernetPacket<'a>
impl<'a> Packet for MutableGrePacket<'a>
impl<'a> Packet for GrePacket<'a>
impl<'a> Packet for MutableU16BEPacket<'a>
impl<'a> Packet for U16BEPacket<'a>
impl<'a> Packet for MutableU32BEPacket<'a>
impl<'a> Packet for U32BEPacket<'a>
impl<'a> Packet for MutableIpv4Packet<'a>
impl<'a> Packet for Ipv4Packet<'a>
impl<'a> Packet for MutableIpv4OptionPacket<'a>
impl<'a> Packet for Ipv4OptionPacket<'a>
impl<'a> Packet for MutableIpv6Packet<'a>
impl<'a> Packet for Ipv6Packet<'a>
impl<'a> Packet for MutableUdpPacket<'a>
impl<'a> Packet for UdpPacket<'a>
impl<'a> Packet for MutableTcpPacket<'a>
impl<'a> Packet for TcpPacket<'a>
impl<'a> Packet for MutableTcpOptionPacket<'a>
impl<'a> Packet for TcpOptionPacket<'a>
impl<'a> Packet for MutableArpPacket<'a>
impl<'a> Packet for ArpPacket<'a>
impl<'a> Packet for MutableEchoReplyPacket<'a>
impl<'a> Packet for EchoReplyPacket<'a>
impl<'a> Packet for MutableEchoRequestPacket<'a>
impl<'a> Packet for EchoRequestPacket<'a>
impl<'a> Packet for MutableDestinationUnreachablePacket<'a>
impl<'a> Packet for DestinationUnreachablePacket<'a>
impl<'a> Packet for MutableTimeExceededPacket<'a>
impl<'a> Packet for TimeExceededPacket<'a>
impl<'a> Packet for MutableIcmpPacket<'a>
impl<'a> Packet for IcmpPacket<'a>
impl<'a> Packet for MutableVlanPacket<'a>
impl<'a> Packet for VlanPacket<'a>