How to print skb data #1905
liuhangbin
started this conversation in
General
Replies: 1 comment 3 replies
-
The nice way would be #1272 as it handles the magic for you but this code should work too. On master this works, so at least the offset is calculated ok:
Note that its better to use the
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I read blog printing sk_buff data. I'm wondering if bpftrace could do that. So I tried with
As bpf do not support while loop with uncertain value, I just try to print the first 10 lines. But I only got values like
Is there anything I did wrong?
Thanks
Hangbin
Beta Was this translation helpful? Give feedback.
All reactions