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

int rtnl_rule_build_delete_request ( struct rtnl_rule *  rule,
int  flags,
struct nl_msg **  result 
)

Build a netlink request message to delete a rule

  • rule rule to delete
  • flags additional netlink message flags
Builds a new netlink message requesting a deletion of a 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. rule must point to an existing address.

Returns:
The netlink message

Definition at line 516 of file rule.c.

Referenced by rtnl_rule_delete().

{
      return build_rule_msg(rule, RTM_DELRULE, flags, result);
}


Generated by  Doxygen 1.6.0   Back to index