Skip to content

Commit

Permalink
kmod/kprobe: fix macro condition
Browse files Browse the repository at this point in the history
  • Loading branch information
hack3ric committed Dec 15, 2024
1 parent 6c757e5 commit 4928996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kmod/csum-hack-kprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ struct bpf_skb_change_proto_params {
static int bpf_skb_change_proto_entry_handler(struct kretprobe_instance* ri, struct pt_regs* regs) {
struct bpf_skb_change_proto_params* params = (typeof(params))ri->data;

#if defined(__LP64__) || !defined(__mips__)
#if defined(__LP64__) && !defined(__mips__)
params->skb = (void*)regs_get_kernel_argument(regs, 0);
params->proto = regs_get_kernel_argument(regs, 1);
params->flags = regs_get_kernel_argument(regs, 2);
Expand Down

0 comments on commit 4928996

Please sign in to comment.