Lines Matching refs:tmpl
558 static int build_addr_msg(struct rtnl_addr *tmpl, int cmd, int flags,
563 .ifa_family = tmpl->a_family,
564 .ifa_index = tmpl->a_ifindex,
565 .ifa_prefixlen = tmpl->a_prefixlen,
568 if (tmpl->ce_mask & ADDR_ATTR_SCOPE)
569 am.ifa_scope = tmpl->a_scope;
572 if (tmpl->a_family == AF_INET &&
573 tmpl->ce_mask & ADDR_ATTR_LOCAL &&
574 *((char *) nl_addr_get_binary_addr(tmpl->a_local)) == 127)
587 if (tmpl->ce_mask & ADDR_ATTR_LOCAL)
588 NLA_PUT_ADDR(msg, IFA_LOCAL, tmpl->a_local);
590 if (tmpl->ce_mask & ADDR_ATTR_PEER)
591 NLA_PUT_ADDR(msg, IFA_ADDRESS, tmpl->a_peer);
592 else if (tmpl->ce_mask & ADDR_ATTR_LOCAL)
593 NLA_PUT_ADDR(msg, IFA_ADDRESS, tmpl->a_local);
595 if (tmpl->ce_mask & ADDR_ATTR_LABEL)
596 NLA_PUT_STRING(msg, IFA_LABEL, tmpl->a_label);
598 if (tmpl->ce_mask & ADDR_ATTR_BROADCAST)
599 NLA_PUT_ADDR(msg, IFA_BROADCAST, tmpl->a_bcast);
601 if (tmpl->ce_mask & ADDR_ATTR_CACHEINFO) {
603 .ifa_valid = tmpl->a_cacheinfo.aci_valid,
604 .ifa_prefered = tmpl->a_cacheinfo.aci_prefered,