-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-implement data/network/transport layer parser
The old parser was hard to extend because it was just implemented inside the main pcap loop and mixed pkt2flow state checks with the actual packet format checks. It also lagged some validity checks. The new implementation should prepare pkt2flow for the next steps in IPv6 support.
- Loading branch information
Showing
2 changed files
with
114 additions
and
61 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
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 |
---|---|---|
|
@@ -37,8 +37,6 @@ | |
#define __SOURCE_VERSION__ "1.2" | ||
#define __AUTHOR__ "X. Chen ([email protected])" | ||
#define __GLOBAL_NAME__ "pkt2flow" | ||
#define EH_SIZE 14 | ||
#define EH_IP 0x0800 | ||
#define FLOW_TIMEOUT 1800 // seconds | ||
#define HASH_MULTIPLIER 37 | ||
#define HASH_TBL_SIZE 48611 | ||
|