Lines Matching refs:tmpl
846 * @arg tmpl template with requested changes
854 * and \a tmpl must contain the attributes to be changed set via
862 struct rtnl_link *tmpl, int flags,
871 if (tmpl->ce_mask & LINK_ATTR_FLAGS) {
872 ifi.ifi_flags = old->l_flags & ~tmpl->l_flag_mask;
873 ifi.ifi_flags |= tmpl->l_flags;
883 if (tmpl->ce_mask & LINK_ATTR_ADDR)
884 NLA_PUT_ADDR(msg, IFLA_ADDRESS, tmpl->l_addr);
886 if (tmpl->ce_mask & LINK_ATTR_BRD)
887 NLA_PUT_ADDR(msg, IFLA_BROADCAST, tmpl->l_bcast);
889 if (tmpl->ce_mask & LINK_ATTR_MTU)
890 NLA_PUT_U32(msg, IFLA_MTU, tmpl->l_mtu);
892 if (tmpl->ce_mask & LINK_ATTR_TXQLEN)
893 NLA_PUT_U32(msg, IFLA_TXQLEN, tmpl->l_txqlen);
895 if (tmpl->ce_mask & LINK_ATTR_WEIGHT)
896 NLA_PUT_U32(msg, IFLA_WEIGHT, tmpl->l_weight);
898 if (tmpl->ce_mask & LINK_ATTR_IFNAME)
899 NLA_PUT_STRING(msg, IFLA_IFNAME, tmpl->l_name);
901 if (tmpl->ce_mask & LINK_ATTR_OPERSTATE)
902 NLA_PUT_U8(msg, IFLA_OPERSTATE, tmpl->l_operstate);
904 if (tmpl->ce_mask & LINK_ATTR_LINKMODE)
905 NLA_PUT_U8(msg, IFLA_LINKMODE, tmpl->l_linkmode);
907 if ((tmpl->ce_mask & LINK_ATTR_LINKINFO) && tmpl->l_info_ops &&
908 tmpl->l_info_ops->io_put_attrs) {
914 NLA_PUT_STRING(msg, IFLA_INFO_KIND, tmpl->l_info_ops->io_name);
916 if (tmpl->l_info_ops->io_put_attrs(msg, tmpl) < 0)
934 * @arg tmpl template with requested changes
946 struct rtnl_link *tmpl, int flags)
951 if ((err = rtnl_link_build_change_request(old, tmpl, flags, &msg)) < 0)