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

Create ICMP_TCP_UDP.py #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

7uyash
Copy link

@7uyash 7uyash commented Oct 4, 2023

there's the example of library to analyze network packets and identify protocols.
Here, icmp_parser, tcp_parser, and udp_parser act like our "structs" to hold protocol-specific data.

NOTE : run this script with admin or root user only, this will capture 10 packets and try to identify their protocols.

@gdsc-mmcoe
Copy link
Collaborator

there's the example of library to analyze network packets and identify protocols. Here, icmp_parser, tcp_parser, and udp_parser act like our "structs" to hold protocol-specific data.

NOTE : run this script with admin or root user only, this will capture 10 packets and try to identify their protocols.

Can you please send your pull request in the format provided in the main repository description. (README.md)

@Pradyumna173
Copy link
Collaborator

there's the example of library to analyze network packets and identify protocols. Here, icmp_parser, tcp_parser, and udp_parser act like our "structs" to hold protocol-specific data.

NOTE : run this script with admin or root user only, this will capture 10 packets and try to identify their protocols.

Parsing the received packet and bit-fielding it into a struct(contiguous memory allocation) is the crux of the problem statement. Bit fielding(Parsing data into contiguous memory locations using bitwise operators and pointers) is a concept from the C language. The solution you have provided may accomplish identification of the protocol, but does not field it into the protocol specific contiguous memory allocation that will essentially create separate RX_Buffers for different protocols

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.

3 participants