Topics

Headers Parsing with fields of variable length

mdimolianis@...
 

Hi all,
I am trying to create a header for the DNS protocol and parse DNS queries however I cannot parse headers with variable size e.g. the domain name (due to looping constraints of XDP). Is there a method I could handle cases like that?
Thank you in advance!

Raymond
 

On 2019-06-10 12:35 p.m., mdimolianis@... wrote:
I am trying to create a header for the DNS protocol and parse DNS queries however I cannot parse headers with variable size e.g. the domain name (due to looping constraints of XDP). Is there a method I could handle cases like that?
Wouldn't you punt that to a userland xdp listener for action?  Dns packets are complicated.