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

struct nl_msg* rtnl_class_build_add_request ( struct rtnl_class *  class,
int  flags 
) [read]

Build a netlink message to add a new class

  • class class to add
  • flags additional netlink message flags
Builds a new netlink message requesting an addition of a class. The netlink message header isn't fully equipped with all relevant fields and must be sent out via nl_send_auto_complete() or supplemented as needed.

Common message flags

  • NLM_F_REPLACE - replace possibly existing classes

Returns:
New netlink message

Definition at line 274 of file class.c.

Referenced by rtnl_class_add().

{
      return class_build(class, RTM_NEWTCLASS, NLM_F_CREATE | flags);
}


Generated by  Doxygen 1.6.0   Back to index