fping ipv6 crashes with exit code 4

42 views
Skip to first unread message

agossi

unread,
Jul 11, 2019, 10:04:23 AM7/11/19
to fping-users
Hi all,

has someone faced fping6 (3.16) or fping (4.21) crashes when IPv6 shall be used?
IPv4 works well on version 3.16 and on 4.21 only if configured with disabled IPv6.

Are there special dependencies which will make the cross compiled IPv6 executable crash?
What libraries are least needed for correct execution?


Many thanks in advance

agossi

unread,
Jul 12, 2019, 4:56:04 AM7/12/19
to fping-users
Found the root cause, it is because of

 /* confirm that ICMP is available on this machine */
    if ((proto = getprotobyname("ipv6-icmp")) == NULL)
        crash_and_burn("icmp: unknown protocol");

 if "ipv6-icmp" is not in the /etc/protocols it will segfault.
Reply all
Reply to author
Forward
0 new messages