8000 software checksum calculation fails when using vlan tags without offloading · Issue #9 · libmoon/libmoon · GitHub
[go: up one dir, main page]

Skip to content

software checksum calculation fails when using vlan tags without offloading #9

Open

Description

@emmericp

The code assumes a hardcoded offset of 50/60 (IPv4/6) for the payload data which is wrong if there is a vlan tag that is not offloaded.

This is relevant for encapsulated packets.

Maybe we need a generic way to determine offsets within stacks?

Activity

  1. emmericp commented on Oct 13, 2016

    @emmericp
    MemberAuthor

    Related: calling tcp:calculateChecksum() on encapsulated inner packets is slightly inconvenient because it requires a pointer to the right offset in the outer packet.

  2. emmericp commented on Oct 21, 2016

    @emmericp
    MemberAuthor

    is this fixed in the refactored stack?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0