Open samueljaydan opened 7 months ago
samueljaydan @.***> writes:
This piece of XDP code is not working (I mean map is not woking for read and write) when snprintf or bpf_snprintf exists.
bpf_snprintf is quite limited compared to the regular C stdlib version, and does not have the same API. Read the API documentation for the helper for details, but you can't just drop it in as a replacement.
At bpf side, is there any possibility to cast u64,u16,__u32 types to string(char array)
It's all C so you can cast all you want, but not sure what you're trying to achieve with that.
Thanks for the answer. I got it.
This piece of XDP code is not working (I mean map is not woking for read and write) when snprintf or bpf_snprintf exists. At bpf side, is there any possibility to cast u64,u16,__u32 types to string(char array)