]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Introduce new scope related functions.
authorae <ae@FreeBSD.org>
Thu, 11 Sep 2014 12:33:37 +0000 (12:33 +0000)
committerae <ae@FreeBSD.org>
Thu, 11 Sep 2014 12:33:37 +0000 (12:33 +0000)
commit3c663988a4af61a45e6a2d3c80c46f6ae41497fc
tree2eafb08933b120c4d1b2e7b127644df801228bca
parent9e4c2e60325e025e2d03da9eeecd353a4dba10b7
Introduce new scope related functions.

* new macro to remove magic number - IPV6_ADDR_SCOPES_COUNT;
* sa6_checkzone() - this function checks sockaddr_in6 structure
  for correctness of sin6_scope_id. It also can fill correct
  value sometimes.
* in6_getscopezone() - this function returns scope zone id for
  specified interface and scope.
* in6_getlinkifnet() - this function returns struct ifnet for
  corresponding zone id of link-local scope.

Obtained from: Yandex LLC
Sponsored by: Yandex LLC
sys/netinet6/scope6.c
sys/netinet6/scope6_var.h