]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add additional checks for IPV6_PKTINFO handling (RFC 3542):
authorAndrey V. Elsukov <ae@FreeBSD.org>
Wed, 10 Sep 2014 14:32:07 +0000 (14:32 +0000)
committerAndrey V. Elsukov <ae@FreeBSD.org>
Wed, 10 Sep 2014 14:32:07 +0000 (14:32 +0000)
commit9196891fc9aaabdf1a1ac31569d7b096918d5710
treea6479f9c217d1061c2d797d26b0c013c62e4536e
parent2c5b89e54b6292475d7c97f7977fd83f969df73b
Add additional checks for IPV6_PKTINFO handling (RFC 3542):

* Return ENETDOWN when interface specified by ipi6_ifindex is not
  enabled for IPv6 use.
* Return EADDRNOTAVAIL when ipi6_ifindex specifies an interface, but the
  address ipi6_addr is not available for use on that interface.
* Return EINVAL when ipi6_addr is multicast address.

Obtained from: Yandex LLC
Sponsored by: Yandex LLC
sys/netinet6/ip6_output.c