diff --git a/tools/solisten.py b/tools/solisten.py index b322af9e388c..31f463726dc7 100755 --- a/tools/solisten.py +++ b/tools/solisten.py @@ -46,10 +46,12 @@ # BPF Program bpf_text = """ -#include -#include #include #include +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wenum-conversion" +#include +#pragma clang diagnostic pop // Common structure for UDP/TCP IPv4/IPv6 struct listen_evt_t { @@ -106,7 +108,6 @@ // 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);