Convenience functions for processing pcap data like packets and headers.
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 |
Convenience functions for processing pcap data like packets and headers.
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.
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.
Arglists: ========= (guess-subnet ipv4-addr) Docstring: ========== Try to guess the subnet address based on private network classes as defined in RFC 1918.
Arglists: ========= (guess-subnet-mask ipv4-addr) Docstring: ========== Try to guess the subnet mask based on private network classes as defined in RFC 1918.
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.
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.
Arglists: ========= (prettify-addr-array a) Docstring: ========== Convenience function to print addresses as strings.
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.
Arglists: ========= (src-dst-to-map protocol) Docstring: ========== Write source and destination addresses into a map.