Added HTTP parser example using DPDK #98
Open
+288
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What was changed?
Created a new example demonstrating how to use the DPDK packet processing API to parse HTTP messages.
Implemented basic HTTP parsing functionality, including identifying request types, headers, and payload.
Added necessary files and configurations to integrate this example into the DPDK project.
Why was it changed?
The goal of this change was to provide an example that shows how to use DPDK for parsing HTTP messages. The current DPDK examples mainly focus on packet forwarding and network performance, but there was no existing example for parsing application layer protocols like HTTP.
This addition helps users understand how to process higher-level protocols (such as HTTP) using DPDK, which can be useful in scenarios like high-performance packet analysis or network monitoring tools.
How was it changed?
Used DPDK's packet processing API to extract packets and parse them.
The implementation focuses on detecting the HTTP method (e.g., GET, POST), extracting the headers, and printing the payload of the HTTP request.
Developed a simple main.c program that captures packets on the en0 network interface using libpcap and applies basic HTTP parsing logic.
Added a Makefile and meson.build for building and running the example, consistent with DPDK's build system and conventions.