Lines Matching defs:scope
33 * selection; consider scope,
1013 * Each device address list is sorted in order of scope -
1145 ifa->scope = cfg->scope;
1443 cfg.scope = ipv6_addr_scope(cfg.pfx);
1501 int scope;
1576 /* Rule 2: Prefer appropriate scope
1581 * ---+--+-+---> scope
1583 * | d is scope of the destination.
1585 * | \ <- smaller scope is better if
1586 * B-15 | \ if scope is enough for destination.
1587 * | ret = B - scope (-1 <= scope >= d <= 15).
1590 * -C / if scope is not enough for destination.
1591 * /| ret = scope - C (-1 <= d < scope <= 15).
1598 if (ret >= dst->scope)
1729 * scope, because ifa entries
1730 * are sorted by their scope
1789 dst.scope = __ipv6_addr_src_scope(dst_type);
1817 dst.scope <= IPV6_ADDR_SCOPE_LINKLOCAL ||
1878 if (ifp->scope > IFA_LINK)
1880 if (ifp->scope == IFA_LINK &&
1967 !(ifp->scope&(IFA_LINK|IFA_HOST) || strict))) {
2060 !(ifp->scope&(IFA_LINK|IFA_HOST) || strict)) {
2146 .scope = ifp->scope,
2371 if (ifp->scope > IFA_LINK)
2373 if (ifp->scope == IFA_LINK && !(ifp->flags&IFA_F_TENTATIVE)) {
2633 .scope = addr_type & IPV6_ADDR_SCOPE_MASK,
2992 cfg->scope = ipv6_addr_scope(cfg->pfx);
3141 int plen, int scope, u8 proto)
3150 .scope = scope,
3171 int scope, plen, offset = 0;
3183 scope = IPV6_ADDR_COMPATv4;
3191 scope = IFA_LINK;
3196 add_addr(idev, &addr, plen, scope, IFAPROT_UNSPEC);
3206 int flag = scope;
3255 .scope = IFA_LINK,
4242 if (ifpiter->scope > IFA_LINK)
4244 if (ifp != ifpiter && ifpiter->scope == IFA_LINK &&
4273 send_mld = ifp->scope == IFA_LINK && ipv6_lonely_lladdr(ifp);
4436 ifp->scope,
5004 u8 scope, int ifindex)
5012 ifm->ifa_scope = scope;
5079 put_ifaddrmsg(nlh, ifa->prefix_len, ifa->flags, rt_scope(ifa->scope),
5144 u8 scope = RT_SCOPE_UNIVERSE;
5148 scope = RT_SCOPE_SITE;
5161 put_ifaddrmsg(nlh, 128, IFA_F_PERMANENT, scope, ifindex);
5179 u8 scope = RT_SCOPE_UNIVERSE;
5182 scope = RT_SCOPE_SITE;
5195 put_ifaddrmsg(nlh, 128, IFA_F_PERMANENT, scope, ifindex);