format chore

This commit is contained in:
2025-11-27 12:42:10 +05:30
parent 1593b7bcfe
commit 189526d5ca
3 changed files with 16 additions and 9 deletions

View File

@ -6,6 +6,7 @@ from vmlinux import (
from pythonbpf import bpf, section, bpfglobal, compile, compile_to_ir, struct
from ctypes import c_int64, c_ubyte, c_ushort, c_uint32
@bpf
@struct
class iphdr:
@ -19,6 +20,7 @@ class iphdr:
saddr: c_uint32
daddr: c_uint32
@bpf
@section("xdp")
def ip_detector(ctx: struct_xdp_md) -> c_int64: