-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aa5e3a7
commit b290798
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Source Code - Handle Packets from a Network Interface | ||
===================================================== | ||
|
||
This is the default handler for processing network packets received from the network interface with ``eth0`` or ``eth1``. In production, this is the starting point for making live predictions with the AntiNex REST API. | ||
|
||
Here is the workflow for processing a network packet from a monitored interface: | ||
|
||
#. Get Available Layers in the Packet | ||
#. Convert the Packet to a JSON dictionary | ||
#. Publish the Message using Kombu with environment values setting the routing decision for the message in the aggregation message broker: ``FORWARD_EXCHANGE``, ``FORWARD_ROUTING_KEY``, ``FORWARD_QUEUE``. | ||
|
||
.. automodule:: network_pipeline.handle_packets | ||
:members: handle_packets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Source Code - Process Consumed Messages from the Queue | ||
====================================================== | ||
|
||
This is the default handler for processing messages consumed from the aggregration message broker. At the conceptual level, all network interface capture tools forward JSON dictionaries to this class. | ||
|
||
.. automodule:: network_pipeline.record_packets_to_csv | ||
:members: RecordPacketsToCSV |