add cgroup helper

This commit is contained in:
2025-11-28 14:47:01 +05:30
parent 5ba29db362
commit 536ea4855e
3 changed files with 34 additions and 0 deletions

View File

@ -57,6 +57,11 @@ def get_stack(buf, flags=0):
return ctypes.c_int64(0)
def get_current_cgroup_id():
"""Get the current cgroup ID"""
return ctypes.c_int64(0)
XDP_ABORTED = ctypes.c_int64(0)
XDP_DROP = ctypes.c_int64(1)
XDP_PASS = ctypes.c_int64(2)