recursive parsing fix without ctypes in recursed type

This commit is contained in:
2025-10-12 20:59:18 +05:30
parent 8774277000
commit 80396c78a6
3 changed files with 73 additions and 128 deletions

View File

@ -1,9 +1,11 @@
from pythonbpf import bpf, map, section, bpfglobal, compile, compile_to_ir
from pythonbpf.maps import HashMap
from pythonbpf.helper import XDP_PASS
from vmlinux import struct_ring_buffer_per_cpu # noqa: F401
from vmlinux import struct_xdp_buff # noqa: F401
from vmlinux import struct_xdp_md
from vmlinux import struct_ring_buffer_per_cpu # noqa: F401
# from vmlinux import struct_xdp_buff # noqa: F401
# from vmlinux import struct_xdp_md
from ctypes import c_int64
# Instructions to how to run this program
@ -44,4 +46,3 @@ def LICENSE() -> str:
compile_to_ir("xdp_pass.py", "xdp_pass.ll")
compile()