Possible culprit might be the pr_icmph function in ping.c, lines 1250 -
1259:

                {
                        struct sockaddr_in sin = {
                                .sin_family = AF_INET,
                                .sin_addr =  {
                                        icp ? icp->un.gateway : info
                                }
                        };

                        printf(_("(New nexthop: %s)\n"), pr_addr(&sin, sizeof 
sin));
                }

Are you sure the variables used for .sin_addr input are guaranteed to be
in network byte order?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1892108

Title:
  ping prints ip address octets backwards on host redirect

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/iputils/+bug/1892108/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to