ExPcap.PacketData (expcap v0.1.2) View Source

This module represents the body of a packet.

Link to this section Summary

Functions

Reads the packet body from the file.

This function reads the body of a packet.

This function reads the body of a packet reversing the bytes along the way.

Link to this section Types

Specs

t() :: %ExPcap.PacketData{data: binary(), data_len: non_neg_integer()}

Link to this section Functions

Link to this function

from_file(f, global_header, packet_header)

View Source

Specs

Reads the packet body from the file.

Link to this function

read_forward(data, packet_header)

View Source

Specs

read_forward(binary(), ExPcap.PacketHeader.t()) :: t()

This function reads the body of a packet.

Link to this function

read_reversed(data, packet_header)

View Source

Specs

read_reversed(binary(), ExPcap.PacketHeader.t()) :: t()

This function reads the body of a packet reversing the bytes along the way.