search for: ipv6_recvpktinfo

Displaying 1 result from an estimated 1 matches for "ipv6_recvpktinfo".

2012 Jun 11
1
tftp-hpa bug on aliased interface and recent kernels.
...t(s, IPPROTO_IP, IP_RECVDSTADDR, &on, sizeof(on)); #endif #ifdef IP_PKTINFO - if (from->sa_family == AF_INET) + if (from->sa_family == AF_INET || from->sa_family == AF_UNSPEC) setsockopt(s, IPPROTO_IP, IP_PKTINFO, &on, sizeof(on)); #endif #ifdef HAVE_IPV6 #ifdef IPV6_RECVPKTINFO - if (from->sa_family == AF_INET6) + if (from->sa_family == AF_INET6 || from->sa_family == AF_UNSPEC) setsockopt(s, IPPROTO_IPV6, IPV6_RECVPKTINFO, &on, sizeof(on)); #endif #endif