-
Notifications
You must be signed in to change notification settings - Fork 907
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
A bug with ipv6 address format #1890
Labels
Comments
This issue is real and has been already reported in the past (#819) |
I think that we can leave this issue open: we should fix it, somehow.... |
Hi guys, I have a very easy patch for this, If you're still interested:
Bye. |
It seems reasonable. Are you going to push a PR?
…On Thu, Dec 19, 2024, 17:38 paolomonti ***@***.***> wrote:
Hi guys, I have a very easy patch for this, If you're still interested:
--- a/src/lib/ndpi_utils.c
+++ b/src/lib/ndpi_utils.c
@@ -918,6 +921,9 @@
void ndpi_patchIPv6Address(char *str) {
int i = 0, j = 0;
+ if(strstr(str, "::"))
+ return;
+
while(str[i] != '\0') {
if((str[i] == ':')
&& (str[i+1] == '0')
Bye.
—
Reply to this email directly, view it on GitHub
<#1890 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADBD4J4VAVIXSYUDN3R6JAT2GLZB5AVCNFSM6AAAAABT5MEV22VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJUHE4TIMRYHE>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
ok |
paolomonti
pushed a commit
to paolomonti/nDPI
that referenced
this issue
Dec 19, 2024
ipv6 addresses already containing "::" token shall not be searched for ":0:" nor patched
paolomonti
pushed a commit
to paolomonti/nDPI
that referenced
this issue
Dec 19, 2024
ipv6 addresses already containing "::" token shall not be searched for ":0:" nor patched
paolomonti
pushed a commit
to paolomonti/nDPI
that referenced
this issue
Dec 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Because ndpi_patchIPv6Address will replace all :0: to ::, the results may have ip like this 2600:1901::16a9:: . It's a wrong ipv6 format, it has multiple '::'
The text was updated successfully, but these errors were encountered: