Skip to content

Commit

Permalink
Rename sockfd to fd
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-szweda committed Feb 7, 2024
1 parent 5c787a4 commit 2cd7c60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libebpfdiscoveryskel/src/SyscallProbes.h
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ __attribute__((always_inline)) inline static int handleSysRecvmsgExit(struct pt_
*/

SEC("kprobe/" SYS_PREFIX "sys_accept")
int BPF_KPROBE_SYSCALL(kprobeSysAccept, int sockfd, struct sockaddr* addr, socklen_t* addrlen) {
int BPF_KPROBE_SYSCALL(kprobeSysAccept, int fd, struct sockaddr* addr, socklen_t* addrlen) {
return handleSysAcceptEntry(ctx, addr, addrlen);
}

Expand All @@ -322,7 +322,7 @@ int BPF_KRETPROBE(kretprobeSysAccept, int fd) {
}

SEC("kprobe/" SYS_PREFIX "sys_accept4")
int BPF_KPROBE_SYSCALL(kprobeSysAccept4, int sockfd, struct sockaddr* addr, socklen_t* addrlen, int flags) {
int BPF_KPROBE_SYSCALL(kprobeSysAccept4, int fd, struct sockaddr* addr, socklen_t* addrlen, int flags) {
return handleSysAcceptEntry(ctx, addr, addrlen);
}

Expand Down

0 comments on commit 2cd7c60

Please sign in to comment.