Skip to content

Always map NPF_SetPacketFilter() errors by setting the C bit. - #656

Merged
dmiller-nmap merged 1 commit into
nmap:masterfrom
guyharris:fix-hw-filter-return
Jan 31, 2023
Merged

Always map NPF_SetPacketFilter() errors by setting the C bit.#656
dmiller-nmap merged 1 commit into
nmap:masterfrom
guyharris:fix-hw-filter-return

Conversation

@guyharris

Copy link
Copy Markdown
Contributor

This might fix issue #628. See the long comment added by this commit for details. (That mapping might just be working around another problem which, if it could be fixed, would mean we would no longer need to set the C bit.)

@guyharris
guyharris force-pushed the fix-hw-filter-return branch from 3826f7f to db6576e Compare January 10, 2023 06:12
@guyharris

Copy link
Copy Markdown
Contributor Author

I haven't compiled this, as I don't have a development environment, but most of the change is adding a big explanatory comment; the other changes are adding a new label and changing a goto to go to the new label.

(@bonsaiviking: see also my emails of 2022-11-05 and 2022-11-06, subject "Handling of NT status values for OID get/set changes for OID_GEN_CURRENT_PACKET_FILTER between 1.60 and 1.71".)

This might fix issue nmap#628.  See the long comment added by this commit
for details.  (That mapping might just be working around another problem
which, if it could be fixed, would mean we would no longer need to set
the C bit.)
@guyharris
guyharris force-pushed the fix-hw-filter-return branch from db6576e to 0a87924 Compare January 10, 2023 08:32
@dmiller-nmap
dmiller-nmap merged commit 1c29c34 into nmap:master Jan 31, 2023
@guyharris
guyharris deleted the fix-hw-filter-return branch February 3, 2023 07:30
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.

2 participants