Explorar o código

aya: programs: fix syscall name in errors

Alessandro Decina %!s(int64=3) %!d(string=hai) anos
pai
achega
665802594c
Modificáronse 3 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      aya/src/programs/sk_msg.rs
  2. 1 1
      aya/src/programs/sk_skb.rs
  3. 1 1
      aya/src/programs/sock_ops.rs

+ 1 - 1
aya/src/programs/sk_msg.rs

@@ -38,7 +38,7 @@ impl SkMsg {
 
         bpf_prog_attach(prog_fd, map_fd, BPF_SK_MSG_VERDICT).map_err(|(_, io_error)| {
             ProgramError::SyscallError {
-                call: "bpf_link_create".to_owned(),
+                call: "bpf_prog_attach".to_owned(),
                 io_error,
             }
         })?;

+ 1 - 1
aya/src/programs/sk_skb.rs

@@ -44,7 +44,7 @@ impl SkSkb {
         };
         bpf_prog_attach(prog_fd, map_fd, attach_type).map_err(|(_, io_error)| {
             ProgramError::SyscallError {
-                call: "bpf_link_create".to_owned(),
+                call: "bpf_prog_attach".to_owned(),
                 io_error,
             }
         })?;

+ 1 - 1
aya/src/programs/sock_ops.rs

@@ -31,7 +31,7 @@ impl SockOps {
 
         bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_SOCK_OPS).map_err(|(_, io_error)| {
             ProgramError::SyscallError {
-                call: "bpf_link_create".to_owned(),
+                call: "bpf_prog_attach".to_owned(),
                 io_error,
             }
         })?;