Skip to contentSkip to conversation

TCP Payload

DISCUSSION Cameron Boness 2 participants 2 messages Jul 10, 2020

lore
Share & tools
lore
#0 lore raw

Hi,

I want to be able to read the data being sent in TCP payloads using XDP (in c), but so far all I can read is a number of headers (eth->iph->tcp->dns). Is it possible to get the TCP payload (i.e. client sent data) from xdp_md at all? Been looking online for hours, doesn't seem like anyone who's done XDP that's posted about it has ever parsed such data, hoping it's possible :(

Thanks

#1 lore raw
Quoted 8 lines · Cameron Boness

Hi,

I want to be able to read the data being sent in TCP payloads using XDP (in c), but so far all I can read is a number of headers (eth->iph->tcp->dns). Is it possible to get the TCP payload (i.e. client sent data) from xdp_md at all? Been looking online for hours, doesn't seem like anyone who's done XDP that's posted about it has ever parsed such data, hoping it's possible :(

Could you please be a bit more specific about your problem? What, exactly, have you tried, and what is the reason why it doesn't work? Posting code samples and error messages may be helpful...

-Toke