Fix imports and type issues for bpf_probe_read

This commit is contained in:
Pragyansh Chaturvedi
2025-11-01 13:50:23 +05:30
parent 2257c175ed
commit ec2ea835e5
3 changed files with 30 additions and 17 deletions

View File

@ -32,6 +32,11 @@ def random():
return ctypes.c_int32(0)
def probe_read(dst, size, src):
"""Safely read data from kernel memory"""
return ctypes.c_int64(0)
XDP_ABORTED = ctypes.c_int64(0)
XDP_DROP = ctypes.c_int64(1)
XDP_PASS = ctypes.c_int64(2)