Namespace clj-net-pcap.dsl.transformation

Transformation functions for the simple DSL for extracting data from packets that are represented as...

Other Namespaces

Show/Hide
clj-net-pcap.CljNetPcapJavaAdapter
Adapter class to enable usage of clj-net-pcap from Java.
clj-net-pcap.byte-array-extraction-dsl
A simple DSL for extracting data from packets that are represented as byte arrays.
clj-net-pcap.core
clj-net-pcap is a wrapper/adapter/facade (whatever) around jNetPcap that enables and ease...
clj-net-pcap.main
Main class and method for launching a simple clj-net-pcap based sniffer that prints some i...
clj-net-pcap.native
Functions etc. for extracting, loading etc. native libraries from the jar file.
clj-net-pcap.packet-gen
The packet-gen namespace contains functionality for generating and sending packets.
clj-net-pcap.packet-offsets
Common offsets of header fields etc.
clj-net-pcap.pcap
Functions for handling functionality related to org.jnetpcap.Pcap such as listing network ...
clj-net-pcap.pcap-data
Convenience functions for processing pcap data like packets and headers.
clj-net-pcap.self-adaptive-dsl-adjustment
A simple proof of concept for adjusting DSL statements with self-adaptivity.
clj-net-pcap.sniffer
Convenience functions for easing the implementation of a working sniffer.
Index Page
Alphabetic Var Index

Public Vars

Usage Documentation

Show/Hide
Transformation functions for the simple DSL for extracting data from packets that are represented as byte arrays.
Back to top

Details of Public Vars

Function: ethernet-address

Arglists:
=========

  (ethernet-address ba idx)

Docstring:
==========

  Get the formated ethernet address String starting at index idx in the byte-array ba.
Back to top View Source

Function: int16

Arglists:
=========

  (int16 ba idx)

Docstring:
==========

  Get the Int16 value of the two bytes starting at index idx in the byte-array ba.
Back to top View Source

Function: int16be

Arglists:
=========

  (int16be ba idx)

Docstring:
==========

  Get the big endian Int16 value of the two bytes starting at index idx in the byte-array ba.
Back to top View Source

Function: int32

Arglists:
=========

  (int32 ba idx)

Docstring:
==========

  Get the Int32 value of the four bytes starting at index idx in the byte-array ba.
Back to top View Source

Function: int32be

Arglists:
=========

  (int32be ba idx)

Docstring:
==========

  Get the big endian Int32 value of the four bytes starting at index idx in the byte-array ba.
Back to top View Source

Function: int4high

Arglists:
=========

  (int4high ba idx)

Docstring:
==========

  Get the higher 4 bits (nibble) of the byte at the given index idx in the provided byte-array ba.
Back to top View Source

Function: int4low

Arglists:
=========

  (int4low ba idx)

Docstring:
==========

  Get the lower 4 bits (nibble) of the byte at the given index idx in the provided byte-array ba.
Back to top View Source

Function: int8

Arglists:
=========

  (int8 ba idx)

Docstring:
==========

  Get the byte at the index idx in the byte-array ba.
Back to top View Source

Function: ipv4-address

Arglists:
=========

  (ipv4-address ba idx)

Docstring:
==========

  Get the formated IPv4 address String starting at index idx in the byte-array ba.
Back to top View Source

Function: timestamp

Arglists:
=========

  (timestamp ba idx)

Docstring:
==========

  Get the pcap timestamp value of the four bytes starting at index idx in the byte-array ba.
Back to top View Source

Function: timestamp-be

Arglists:
=========

  (timestamp-be ba idx)

Docstring:
==========

  Get the pcap big endian timestamp value of the four bytes starting at index idx in the byte-array ba.
Back to top View Source