Commits

Anonymous committed 8cbabed

Use correct socket option for PKTINFO on UDPv6

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>

  • Participants
  • Parent commits 1039472

Comments (0)

Files changed (1)

File src/svc_dg.c

 		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;
 	}
 }