Open
Description
I have faced a similar issue in the past, attempting to match the payload in a DNS packet.
The problem there is that the qname (domain name) is of variable-length. To that end, I have used a BPF Map that matches the first 12 bytes of the name. I assume that the error that you see is related to the size of uint8_t hashkey[10];
I do not know exactly why but if you choose an array size that can be divided by 4, this may work e.g. uint8_t hashkey[12].
Have you tried different sizes of hashkey?
Metadata
Metadata
Assignees
Labels
No labels