Skip to content

Fix raw L3 AF_PACKET sends on PPP interfaces - #5300

Open
pawangopallavudya-commits wants to merge 3 commits into
secdev:masterfrom
pawangopallavudya-commits:codex-fix-af-packet-protocol
Open

pawangopallavudya-commits wants to merge 3 commits into
secdev:masterfrom
pawangopallavudya-commits:codex-fix-af-packet-protocol

Conversation

@pawangopallavudya-commits

Copy link
Copy Markdown

Set the L3 ethertype explicitly for raw AF_PACKET sends when the socket uses ETH_P_ALL, so PPP and similar interfaces can identify the packet protocol. This fixes #4964 and reworks the still-open #5015 approach using Scapy's existing L3 type mapping.

This PR was prepared with help from AI (OpenAI Codex).

@codecov

codecov Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 3.70370% with 26 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.27%. Comparing base (3813c08) to head (48ed090).

Files with missing lines Patch % Lines
scapy/arch/linux/__init__.py 3.70% 26 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5300      +/-   ##
==========================================
- Coverage   80.60%   79.27%   -1.34%     
==========================================
  Files         375      375              
  Lines       98849    98838      -11     
==========================================
- Hits        79678    78349    -1329     
- Misses      19171    20489    +1318     
Files with missing lines Coverage Δ
scapy/arch/linux/__init__.py 36.20% <3.70%> (-46.50%) ⬇️

... and 51 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

send() and sendp() not working on PPPoE interface

1 participant