Lines Matching refs:tmpl
498 static int build_neigh_msg(struct rtnl_neigh *tmpl, int cmd, int flags, in build_neigh_msg() argument
503 .ndm_ifindex = tmpl->n_ifindex, in build_neigh_msg()
507 if (!(tmpl->ce_mask & NEIGH_ATTR_DST)) in build_neigh_msg()
510 nhdr.ndm_family = nl_addr_get_family(tmpl->n_dst); in build_neigh_msg()
512 if (tmpl->ce_mask & NEIGH_ATTR_STATE) in build_neigh_msg()
513 nhdr.ndm_state = tmpl->n_state; in build_neigh_msg()
522 NLA_PUT_ADDR(msg, NDA_DST, tmpl->n_dst); in build_neigh_msg()
524 if (tmpl->ce_mask & NEIGH_ATTR_LLADDR) in build_neigh_msg()
525 NLA_PUT_ADDR(msg, NDA_LLADDR, tmpl->n_lladdr); in build_neigh_msg()
555 int rtnl_neigh_build_add_request(struct rtnl_neigh *tmpl, int flags, in rtnl_neigh_build_add_request() argument
558 return build_neigh_msg(tmpl, RTM_NEWNEIGH, flags, result); in rtnl_neigh_build_add_request()
579 int rtnl_neigh_add(struct nl_sock *sk, struct rtnl_neigh *tmpl, int flags) in rtnl_neigh_add() argument
584 if ((err = rtnl_neigh_build_add_request(tmpl, flags, &msg)) < 0) in rtnl_neigh_add()