Logo Search packages:      
Sourcecode: libnl version File versions  Download package

struct nl_msg* rtnl_neigh_build_add_request ( struct rtnl_neigh *  tmpl,
int  flags 
) [read]

Build netlink request message to add a new neighbour

  • tmpl template with data of new neighbour
  • flags additional netlink message flags
Builds a new netlink message requesting a addition of a new neighbour. The netlink message header isn't fully equipped with all relevant fields and must thus be sent out via nl_send_auto_complete() or supplemented as needed. tmpl must contain the attributes of the new neighbour set via rtnl_neigh_set_* functions.

The following attributes must be set in the template:

Returns:
The netlink message

Definition at line 557 of file neigh.c.

Referenced by rtnl_neigh_add().

{
      return build_neigh_msg(tmpl, RTM_NEWNEIGH, NLM_F_CREATE | flags);
}


Generated by  Doxygen 1.6.0   Back to index