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

struct nl_msg* rtnl_rule_build_add_request ( struct rtnl_rule *  tmpl,
int  flags 
) [read]

Build netlink request message to add a new rule

  • tmpl template with data of new rule
  • flags additional netlink message flags
Builds a new netlink message requesting a addition of a new rule. 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 address set via rtnl_rule_set_* functions.

Returns:
The netlink message

Definition at line 484 of file rule.c.

Referenced by rtnl_rule_add().

{
      return build_rule_msg(tmpl, RTM_NEWRULE, NLM_F_CREATE | flags);
}


Generated by  Doxygen 1.6.0   Back to index