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
- The netlink message
Definition at line 461 of file rule.c.
Referenced by rtnl_rule_add().
return build_rule_msg(tmpl, RTM_NEWRULE, NLM_F_CREATE | flags,