API Reference¶
Plugin () |
|||
intake_pcap.source.PCAPSource (urlpath, …) |
|
||
intake_pcap.packet.IPPacket (data) |
|
||
intake_pcap.stream.LiveStream (interface[, …]) |
|
||
intake_pcap.stream.OfflineStream (path[, …]) |
|
||
intake_pcap.stream.PacketStream (reader, …) |
|
-
class
intake_pcap.
Plugin
[source]¶ Methods
open
(urlpath, **kwargs)Parameters: urlpath : str Absolute or relative path to source files that can contain shell-style wildcards. separate_base_kwargs
-
class
intake_pcap.source.
PCAPSource
(urlpath, pcap_kwargs, metadata)[source]¶ Attributes: - plot
Methods
close
()Close open resources corresponding to this data source. discover
()Open resource and populate the source attributes. read
()Load entire dataset into a container and return it read_chunked
()Return iterator over container fragments of data source read_partition
(i)Return a (offset_tuple, container) corresponding to i-th partition. to_dask
()Return a dask container for this data source
-
class
intake_pcap.packet.
IPPacket
(data)[source]¶ Attributes: - destination_ip_address
- destination_ip_port
- destination_mac_address
- ethernet_protocol
- ip_protocol
- source_ip_address
- source_ip_port
- source_mac_address
-
class
intake_pcap.stream.
LiveStream
(interface, protocol=None, payload=False, max_packet=65536, timeout=1000)[source]¶ Attributes: - dtype
Methods
set_filter
(protocol)Filters all IP traffic except packets matching given protocol. to_dataframe
-
class
intake_pcap.stream.
OfflineStream
(path, protocol=None, payload=False)[source]¶ Attributes: - dtype
Methods
set_filter
(protocol)Filters all IP traffic except packets matching given protocol. to_dataframe
-
class
intake_pcap.stream.
PacketStream
(reader, protocol, payload)[source]¶ Attributes: - dtype
Methods
set_filter
(protocol)Filters all IP traffic except packets matching given protocol. to_dataframe