Commit 6e2eaf86 authored by Jean-Tiare Le Bigot's avatar Jean-Tiare Le Bigot

solisten: fix address endianness

Signed-off-by: default avatarJean-Tiare Le Bigot <jt@yadutaf.fr>
parent ed5c3817
......@@ -108,7 +108,6 @@ int kprobe__inet_listen(struct pt_regs *ctx, struct socket *sock, int backlog)
// Get IP
if (family == AF_INET) {
evt.laddr[0] = inet->inet_rcv_saddr;
evt.laddr[0] = be32_to_cpu(evt.laddr[0]);
} else if (family == AF_INET6) {
bpf_probe_read(evt.laddr, sizeof(evt.laddr),
sk->__sk_common.skc_v6_rcv_saddr.in6_u.u6_addr32);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment