Namespace clj-net-pcap.packet-gen

The packet-gen namespace contains functionality for generating and sending packets.

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.dsl.transformation
Transformation functions for the simple DSL for extracting data from packets that are represented as...
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-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
The packet-gen namespace contains functionality for generating and sending packets.
Back to top

Details of Public Vars

Var: def-hdr-len-eth

  No docs attached.
Back to top View Source

Var: def-hdr-len-icmp

  No docs attached.
Back to top View Source

Var: def-hdr-len-ip4

  No docs attached.
Back to top View Source

Var: def-hdr-len-udp

  No docs attached.
Back to top View Source

Function: generate-packet-data

Arglists:
=========

  (generate-packet-data pkt-desc-map)

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

  Generate a byte-array representation of the packet according to the given packet description map.
Back to top View Source

Function: get-data-length

Arglists:
=========

  (get-data-length data)

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

  Calculate the length of the provided data.
   If counted? is true for data, the count is returned.
   If data is a String, the String length is returned.
   For unknown types, 0 is returned.
Back to top View Source

Function: get-data-val

Arglists:
=========

  (get-data-val data)

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

  Get the byte-array representation of the supplied data.
   If counted? is true for data, all elements will be coerced to byte.
   If data is a String, the byte-array representation of the String is returned.
   Otherwise, a zero length byte-array is returned.
Back to top View Source

Var: ip-type-icmp

  No docs attached.
Back to top View Source

Var: ip-type-udp

  No docs attached.
Back to top View Source