]> granicus.if.org Git - libtirpc/commitdiff
Use correct socket option for PKTINFO on UDPv6
authorMax Matveev <makc@gmx.co.uk>
Tue, 13 Nov 2012 16:20:02 +0000 (11:20 -0500)
committerSteve Dickson <steved@redhat.com>
Tue, 13 Nov 2012 17:54:36 +0000 (12:54 -0500)
IPV6_PKTINFO from RFC 2292 has been renamed to IPV6_RECVPKTINFO in RFC 3542.

Signed-off-by: Max Matveev <makc@gmx.co.uk>
Signed-off-by: Steve Dickson <steved@redhat.com>
src/svc_dg.c

index 081db614c4f0bcb657d42d095c861b78013bb2fe..a79a70d5cbc125c487148eaf06fb52329b74ec47 100644 (file)
@@ -655,7 +655,7 @@ svc_dg_enable_pktinfo(int fd, const struct __rpc_sockinfo *si)
                break;
 
        case AF_INET6:
-               (void) setsockopt(fd, SOL_IPV6, IPV6_PKTINFO, &val, sizeof(val));
+               (void) setsockopt(fd, SOL_IPV6, IPV6_RECVPKTINFO, &val, sizeof(val));
                break;
        }
 }