libtirpc 1.1.4
[git/cygwin-packages/libtirpc.git] / 0.2.4-cygwin-ipv6.patch
CommitLineData
c682357e
YS
1IPV6_PKTINFO is the old name from RFC 2292 (section 4.4), where it has a
2duel meaning. Its *other* meaning is retained in RFC 3542 (section 4);
3IPV6_RECVPKTINFO replaces this meaning there. Winsock2 (and hence Cygwin
4at the moment) only supports the RFC 2292 syntax.
5
6--- origsrc/libtirpc-0.2.4/src/svc_dg.c 2013-12-09 14:59:51.000000000 -0600
7+++ src/libtirpc-0.2.4/src/svc_dg.c 2014-06-09 17:08:43.131136100 -0500
8@@ -653,6 +653,9 @@ svc_dg_enable_pktinfo(int fd, const stru
9 (void) setsockopt(fd, SOL_IP, IP_PKTINFO, &val, sizeof(val));
10 break;
11 #ifdef INET6
12+#ifndef IPV6_RECVPKTINFO
13+#define IPV6_RECVPKTINFO IPV6_PKTINFO
14+#endif
15 case AF_INET6:
16 (void) setsockopt(fd, SOL_IPV6, IPV6_RECVPKTINFO, &val, sizeof(val));
17 break;
This page took 0.018501 seconds and 5 git commands to generate.