Namespace clj-net-pcap.pcap-data

Convenience functions for processing pcap data like packets and headers.

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-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.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
Convenience functions for processing pcap data like packets and headers.
Back to top

Details of Public Vars

Dynamic Var: *tcp-flags-as-set*

  No docs attached.
Back to top View Source

Function: extract-http-fields-to-map

Arglists:
=========

  (extract-http-fields-to-map http fields)

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

  Extract the given fields from an org.jnetpcap.protocol.tcpip.Http instance and store each into a map.
   fields is a vector that specifies which fields shall be extracted.
Back to top View Source

Macro: extract-subnet-information-to-map

Arglists:
=========

  (extract-subnet-information-to-map protocol)

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

  Try to get information about source and destination subnets like network addresses or subnet masks.
   This is just a wild guess based on the private network ranges as defined in RFC 1918.
Back to top View Source

Function: guess-subnet

Arglists:
=========

  (guess-subnet ipv4-addr)

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

  Try to guess the subnet address based on private network classes as defined in RFC 1918.
Back to top View Source

Function: guess-subnet-mask

Arglists:
=========

  (guess-subnet-mask ipv4-addr)

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

  Try to guess the subnet mask based on private network classes as defined in RFC 1918.
Back to top View Source

Function: guess-subnet-mask-bits

Arglists:
=========

  (guess-subnet-mask-bits ipv4-addr)

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

  Try to guess the number of bits in the subnet mask based on private network classes as defined in RFC 1918.
Back to top View Source

Function: network-class

Arglists:
=========

  (network-class ipv4-addr)

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

  Determine the network class based on the private network classes as defined in RFC 1918. This assume no CIDR is used.
Back to top View Source

Var: parse-protocol-headers-to-nested-maps

  No docs attached.
Back to top View Source

Var: pcap-packet-to-bean

  No docs attached.
Back to top View Source

Var: pcap-packet-to-map

  No docs attached.
Back to top View Source

Var: pcap-packet-to-nested-maps

  No docs attached.
Back to top View Source

Function: prettify-addr-array

Arglists:
=========

  (prettify-addr-array a)

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

  Convenience function to print addresses as strings.
Back to top View Source

Macro: process-protocol-headers-to-nested-maps

Arglists:
=========

  (process-protocol-headers-to-nested-maps packet & headers)

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

  Macro for processing protocol header information into a representation of nested maps.
   packet is a org.jnetpcap.packet.PcapPacket instance.
   headers contains the description about which information shall be retrieved for each protocol.

   For an example usage see parse-protocol-headers-to-nested-maps.
Back to top View Source

Macro: src-dst-to-map

Arglists:
=========

  (src-dst-to-map protocol)

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

  Write source and destination addresses into a map.
Back to top View Source