xdp-project / xdp-tutorial

XDP tutorial
2.33k stars 562 forks source link

can anyone help? will buy u a coffee for this help #336

Open kolinfluence opened 1 year ago

kolinfluence commented 1 year ago

how do u printout the ipv6hdr? i'm trying to do crc32(ipv6hdr)%cpunum

can anyone help? i can buy u a coffee for this

bpf_printk("source ip address is %u = %u\n", ipv6hdr->saddr, hashnum);