-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ipreassembler-push
- Loading branch information
Showing
59 changed files
with
1,084 additions
and
424 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 |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
.idea | ||
.*.cmd | ||
.dotest | ||
.vimhistory | ||
Makefile | ||
autom4te* | ||
bin | ||
|
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
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,27 @@ | ||
/** | ||
* ARPHandler | ||
* | ||
* Handle all ARP subsystem and passes only IP packets on output 1. | ||
* Similarly, IP packets should be passed in input 1 and ARPHandler will | ||
* take care of the Ethernet encapsulation | ||
* | ||
* input[0] should receive packets from the device, and output[0] connected | ||
* directly to the same device. | ||
* | ||
* Eg. : | ||
* FromDPDKDevice(0) -> ARPHandler(10.0.0.2, 5B:EC:DE:27:A8:B2); | ||
* arp[0] -> ToDPDKDevice(0); | ||
* arp[1] -> Print("IP PACKET") -> SetIPAddress(10.0.0.1) -> arp[1]; | ||
*/ | ||
elementclass ARPHandler { $ip, $mac | | ||
input[0] -> c :: Classifier(12/0806 20/0001, // ARP request | ||
12/0806 20/0002, // ARP response | ||
12/0800); // IP packets | ||
c[1] -> [1]arpQ :: ARPQuerier($ip, $mac) -> output[1]; | ||
c[0] -> [0]arpR :: ARPResponder($ip $mac); | ||
|
||
arpQ->output[0]; | ||
c[2]->output[1]; | ||
|
||
input[1] -> [0]arpQ; | ||
} |
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
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
Oops, something went wrong.