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

struct nl_msg* rtnl_cls_build_add_request ( struct rtnl_cls *  cls,
int  flags 
) [read]

Build a netlink message to add a new classifier

  • cls classifier to add
  • flags additional netlink message flags
Builds a new netlink message requesting an addition of a classifier 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. classifier must contain the attributes of the new classifier set via rtnl_cls_set_* functions. opts may point to the clsasifier specific options.

Returns:
New netlink message

Definition at line 291 of file classifier.c.

Referenced by rtnl_cls_add().

{
      return cls_build(cls, RTM_NEWTFILTER, NLM_F_CREATE | flags);
}


Generated by  Doxygen 1.6.0   Back to index