Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct bpf_l4_csum_replace() documentation for offset parameter #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gijs-blanken
Copy link

The bpf_l4_csum_replace() helper’s offset parameter points to the transport-layer checksum (e.g., TCP/UDP/ICMP), not the IP checksum. This change updates the misleading reference to “IP checksum” and aligns the documentation with the function’s actual behavior.

Copy link
Collaborator

@dylandreimerink dylandreimerink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This description is imported from libbpf automatically, hence the <!-- [HELPER_FUNC_DEF] --> marker. These changes will be reversed when make generate-docs is called.

Secondly, the original description isn't necessarily wrong. Since TCP, UDP, and ICMP do use the "IP checksum". So it does not seem to make to much sense.

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