Skip to content
/ pcapex Public

Library for encoding/decoding pcap files in pure Elixir

License

Notifications You must be signed in to change notification settings

miros/pcapex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pcapex

Build status

Simple library in pure Elixir for encoding and decoding pcap file data

Usage

Add pcapex to your list of dependencies in mix.exs:

def deps do
  [{:pcapex, "~> 0.0.6"}]
end
alias Pcapex.Dump
alias Pcapex.Packet

packet = Packet.from_hex(packet_data, timestamp_usec: DateTime.utc_now() |> DateTime.to_unix(:microsecond))
binary_dump_data = Dump.new([packet]) |> Dump.to_binary()

%Dump{} = Dump.from_binary(binary_dump_data) 

About

Library for encoding/decoding pcap files in pure Elixir

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages