Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added HTTP parser example using DPDK #98

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Brijitha1609
Copy link

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.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant