ExPcap.CLI

Prints the contents of a PCAP file to stdout.

The file may be specified with the —file or -f flag.

If no flags are passed (or —help or -h) then the help is printed.

Source

Summary

main(argv)

The entry point, a.k.a. the main function

parse_args(argv)

Parses the arguments which may be either: —help, -h :help —file, -f [file: name]

process(arg1)

Prints the contents of the PCAP file in a somewhat human readable form

run(argv)

Parses the arguments and then either prints the contents of the PCAP file or prints the help message

Functions

main(argv)

Specs:

  • main(list) :: nil

The entry point, a.k.a. the main function.

Source
parse_args(argv)

Specs:

  • parse_args(list) :: atom | [atom(String.t)]

Parses the arguments which may be either: —help, -h :help —file, -f [file: name]

Source
process(arg1)

Specs:

Prints the contents of the PCAP file in a somewhat human readable form.

Source
run(argv)

Specs:

  • run(list) :: nil

Parses the arguments and then either prints the contents of the PCAP file or prints the help message.

Source