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

int rtnl_cls_build_add_request ( struct rtnl_cls *  cls,
int  flags,
struct nl_msg **  result 
)

Build a netlink message to add a new classifier

  • cls classifier to add
  • flags additional netlink message flags
  • result Pointer to store resulting message.
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:
0 on success or a negative error code.

Definition at line 142 of file cls.c.

Referenced by rtnl_cls_add().

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


Generated by  Doxygen 1.6.0   Back to index