Skip to content

Commit 5b36726

Browse files
committed
Make bpf_skb_store_bytes work
1 parent 3e6cea2 commit 5b36726

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pythonbpf/helper/bpf_helper_handler.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,12 @@ def bpf_get_current_uid_gid_emitter(
569569

570570
@HelperHandlerRegistry.register(
571571
"skb_store_bytes",
572-
param_types=[ir.IntType(32), ir.PointerType(), ir.IntType(32), ir.IntType(64)],
572+
param_types=[
573+
ir.IntType(32),
574+
ir.PointerType(ir.IntType(8)),
575+
ir.IntType(32),
576+
ir.IntType(64),
577+
],
573578
return_type=ir.IntType(64),
574579
)
575580
def bpf_skb_store_bytes_emitter(
@@ -608,7 +613,6 @@ def bpf_skb_store_bytes_emitter(
608613
builder,
609614
local_sym_tab,
610615
map_sym_tab,
611-
args_signature[1],
612616
struct_sym_tab,
613617
)
614618
from_ptr = get_or_create_ptr_from_arg(
@@ -628,7 +632,6 @@ def bpf_skb_store_bytes_emitter(
628632
builder,
629633
local_sym_tab,
630634
map_sym_tab,
631-
args_signature[3],
632635
struct_sym_tab,
633636
)
634637
if len(call.args) == 4:

0 commit comments

Comments
 (0)