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

extend packet #374

Open
Nian0124 opened this issue Oct 19, 2023 · 5 comments
Open

extend packet #374

Nian0124 opened this issue Oct 19, 2023 · 5 comments

Comments

@Nian0124
Copy link

hi,everone ! I would like to ask if there is a way to use XDP to extend the packet, such as adding a new field, and ensure that the end data is not lost.

@Nian0124
Copy link
Author

oh, I got it !

@ahihi8z8z
Copy link

oh, I got it !

How you did that? I have a similar problem in #376

@sachintiptur
Copy link
Contributor

You can use helper calls like bpf_xdp_adjust_head

@Nian0124
Copy link
Author

oh, I got it !

How you did that? I have a similar problem in #376

sorry that I don't check my email timely ; I just use the helpers "bpf_xdp_adjust_tail" This function adjusts the position of the packet tail; also "bpf_xdp_adjust_head" adjust the position of the packet header; This is used by a blogger when adding a timestamp to the tail, but I can't find that post.

@Nian0124
Copy link
Author

oh, I got it !

How you did that? I have a similar problem in #376

sorry that I don't check my email timely ; I just use the helpers "bpf_xdp_adjust_tail" This function adjusts the position of the packet tail; also "bpf_xdp_adjust_head" adjust the position of the packet header; This is used by a blogger when adding a timestamp to the tail, but I can't find that post.

ooohhh , just the xdp-tutorial/experiment01-traigrow ; hhhhh

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

No branches or pull requests

3 participants