Skip to content

Conversation

@dganeshk
Copy link
Contributor

Fix incorrect MAC header size calculation in VLANEncap element. Replace sizeof(vlan) with sizeof(click_ether_vlan) to use proper struct size instead of pointer size. This ensures correct network header offset anno in the packet for VLAN encapsulated packets.

Fix incorrect MAC header size calculation in VLANEncap element.
Replace sizeof(vlan) with sizeof(click_ether_vlan) to use proper
struct size instead of pointer size. This ensures correct network
header offset anno in the packet for VLAN encapsulated packets.
@dganeshk dganeshk temporarily deployed to GITLAB_PASSWORD August 20, 2025 13:37 — with GitHub Actions Inactive
@tbarbette tbarbette merged commit b81689f into tbarbette:main Aug 22, 2025
13 checks passed
@tbarbette
Copy link
Owner

Ah yes, a missing * so it would take the size of the pointer and not the struct. Thanks!

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