[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-inetutils] ping6: difference between IPV6_HOPLIMIT IPV6_RECHOPLIMIT
From: |
Alfred M. Szmidt |
Subject: |
[bug-inetutils] ping6: difference between IPV6_HOPLIMIT IPV6_RECHOPLIMIT |
Date: |
Sat, 15 Oct 2011 08:56:51 -0400 |
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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-inetutils] ping6: difference between IPV6_HOPLIMIT IPV6_RECHOPLIMIT,
Alfred M. Szmidt <=