Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6374

How to access a kernel variable using BPF?

$
0
0

For example, to access the skb variable in function ip_rcv:

int ip_rcv(struct sk_buff *skb, struct net_device *dev,
           struct packet_type *pt, struct net_device *orig_dev)
{
...
}

I searched the Internet but cannot find any example.


Viewing all articles
Browse latest Browse all 6374

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>