What is the difference between the two macros, IPV6_HOPLIMIT and
IPV6_RECVHOPLIMIT?  Seems one of them is deprecated.  Basically, can
we do (or whatever):

--- a/ping/ping6.c
+++ b/ping/ping6.c
@@ -836,7 +836,7 @@ ping_recv (PING * p)
   for (cmsg = CMSG_FIRSTHDR (&msg); cmsg; cmsg = CMSG_NXTHDR (&msg, cmsg))
     {
       if (cmsg->cmsg_level == IPPROTO_IPV6
-         && cmsg->cmsg_type == IPV6_HOPLIMIT)
+         && cmsg->cmsg_type == IPV6_RECVHOPLIMIT)
        {
          hops = *(int *) CMSG_DATA (cmsg);
          break;


Reply via email to