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

DEV9: Support NdisMediumIP/DLT_RAW adapters with pcap #11997

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

TheLastRar
Copy link
Contributor

@TheLastRar TheLastRar commented Nov 11, 2024

Description of Changes

Support adapters with a capture data type of DLT_RAW.
Handle point-point links with the internal DHCP.

Rationale behind Changes

Some VPN software, like Cloudflare's WARP, uses NdisMediumIP adapters (which npcap maps to DLT_RAW) which, as its name might suggest, handles IP packets directly, instead of Ethernet frames.

These VPN adapters may also present a point-point link (having a netmask of 255.255.255.255)
PS2's networking doesn't expect such networks, instead requiring a gateway IP present within the same network.
As a workaround, we set the gateway to the PS2's IP, fudging this requirement.

Suggested Testing Steps

Test pcap on VPN adapters, such as Cloudflare's WARP or ProtonVPN.
ProtonVPN might not use the point-point netmask, so is worthwhile testing both

@github-actions github-actions bot added the DEV9 label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant