Skip to content

Fix issue #3326#3337

Open
Adv2924 wants to merge 1 commit into
nmap:masterfrom
Adv2924:fix-#3326
Open

Fix issue #3326#3337
Adv2924 wants to merge 1 commit into
nmap:masterfrom
Adv2924:fix-#3326

Conversation

@Adv2924
Copy link
Copy Markdown

@Adv2924 Adv2924 commented Mar 28, 2026

I read the source code and, from my understanding, the current output appears to be intentional. The ipv4 value being shown seems to refer to the next header, i.e., the protocol of the packet encapsulated within the outer packet, which in this case is IPv6.
Since the user has explicitly specified -6 in the command, it seems reasonable to assume that the outgoing packets are expected to be in IPv6 format rather than IPv4.
That said, I understand how this could lead to confusion. To improve clarity, I have added a fix in the else statement at line 3127 in libnetutil/netutil.cc, which checks whether hdr.version is set to 6 and updates the logging accordingly.

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