iovisor / iovisor/bcc

how to get remote address(ip and port) from socket fd in ebpf program?

Open
#4,035 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
10d 4h
Merged PRs (30d)
3

Description

I need to get remote address from the following function, how can I achieve that?
int syscall__probe_read(struct pt_regs *ctx, int fd, const void* buf, size_t count) {
...
}

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.