Skip to content

Checksum helpers doesn't work as expected #1402

@ali-heidari

Description

@ali-heidari

Hi everyone,

I am developing XDP program to manage network packets. By applying DNAT/FullNAT/Protocol changes need to re calculate ip & protocol checksum. Using bpf_l3_csum_replace & bpf_l4_csum_replace gives incorrect checksum, also struggling with mismatched types as functions accept SKB parameters!

Can I know how exactly should use these replace helpers using XDPContext?

I recalculated checksum from scratch by csum differences! Can I pull request my own helper? Where is the best place to commit my helper? Here Bindings?

Metadata

Metadata

Assignees

No one assigned

    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