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

add ethereum protocol dissector. #2111

Merged
merged 1 commit into from
Oct 25, 2023
Merged

Conversation

mmaatuq
Copy link
Contributor

@mmaatuq mmaatuq commented Oct 23, 2023

as explained here for bitcoin https://www.ntop.org/guides/nDPI/protocols.html#ndpi-protocol-bitcoin the same is applicable for ethereum.
ethereum detection was removed from mining protocol and is now handled separately.

Please sign (check) the below before submitting the Pull Request:

Describe changes:

  • move ethereum detection from mining protocol to a standalone ethereum protocol dissector.
  • update ethereum_ip_addresses_download.sh to have NDPI_ETHEREUM_PRTOCOL instead of NDPI_MINING_PRTOCOL.
  • update test cases.

@mmaatuq mmaatuq marked this pull request as draft October 23, 2023 19:56
src/lib/protocols/ethereum.c Outdated Show resolved Hide resolved
tests/cfgs/default/result/ethereum.pcap.out Outdated Show resolved Hide resolved
src/lib/protocols/ethereum.c Show resolved Hide resolved
src/lib/protocols/ethereum.c Show resolved Hide resolved
@utoni
Copy link
Collaborator

utoni commented Oct 24, 2023

Please rebase to the dev branch and fix merge conflicts.

It is also mandatory to add a new entry to doc/protocols.rst.

@mmaatuq mmaatuq marked this pull request as ready for review October 25, 2023 07:42
Copy link
Collaborator

@IvanNardi IvanNardi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same small issues..

src/lib/protocols/ethereum.c Outdated Show resolved Hide resolved
src/lib/protocols/ethereum.c Outdated Show resolved Hide resolved
src/lib/protocols/ethereum.c Outdated Show resolved Hide resolved
src/lib/protocols/ethereum.c Outdated Show resolved Hide resolved
as explained here for bitcoin https://www.ntop.org/guides/nDPI/protocols.html#ndpi-protocol-bitcoin
the same is applicable for ethereum.
ethereum detection was removed from mining protocol and is now handled separately.

Signed-off-by: Mahmoud Maatuq <mahmoudmatook.mm@gmail.com>
@sonarcloud
Copy link

sonarcloud bot commented Oct 25, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Collaborator

@IvanNardi IvanNardi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine for me. What about you, @utoni ?

@utoni
Copy link
Collaborator

utoni commented Oct 25, 2023

Fine for me. What about you, @utoni ?

Same. Only a rebase to dev is missing. :)

Copy link
Collaborator

@utoni utoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @mmaatuq!

@IvanNardi IvanNardi merged commit 4a8e710 into ntop:dev Oct 25, 2023
33 checks passed
@IvanNardi
Copy link
Collaborator

@mmaatuq , thank you very much!

@mmaatuq mmaatuq deleted the add_ethereum_protocol branch November 11, 2023 12:54
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