Skip to content

[#510]Fix incorrect MAC header size calculation in VLANEncap element.#511

Open
dganeshk wants to merge 1 commit intokohler:masterfrom
dganeshk:510-fix-vlanencap-nhoffset
Open

[#510]Fix incorrect MAC header size calculation in VLANEncap element.#511
dganeshk wants to merge 1 commit intokohler:masterfrom
dganeshk:510-fix-vlanencap-nhoffset

Conversation

@dganeshk
Copy link
Copy Markdown

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.

…ement.

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
Copy link
Copy Markdown
Author

@tbarbett could please review this commit. 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.

1 participant