Merge pull request #28 from pythonbpf/vmlinux-working

Add compilation mechanism from vmlinux
Still  does not compile to IR. only does semantic analysis.
Another PR will be opened soon for IR generation.
This commit is contained in:
varunrmallya
2025-10-13 19:08:41 +05:30
committed by GitHub
23 changed files with 847 additions and 248520 deletions

View File

@ -15,5 +15,8 @@ def deref(ptr):
return result if result is not None else 0
XDP_ABORTED = ctypes.c_int64(0)
XDP_DROP = ctypes.c_int64(1)
XDP_PASS = ctypes.c_int64(2)
XDP_TX = ctypes.c_int64(3)
XDP_REDIRECT = ctypes.c_int64(4)