eBPF trace at net:net_dev_queue not providing correct IP address
I wrote a eBPF code to calculate the time difference between a packet at two tracepoints, net_dev_queue
and net_dev_xmit
. To generate a key, I need to extract the IP address from the data with struct trace_event_raw_net_dev_template
. When extract the IP address, it is always 0.0.0.0
. Following the code I am using. May I know what am I missing?
Thanks