Add a new class
- sk Netlink socket.
- class class to delete
- flags additional netlink message flags
Builds a netlink message by calling rtnl_qdisc_build_add_request()
, sends the request to the kernel and waits for the next ACK to be received and thus blocks until the request has been processed.
Common message flags
- NLM_F_REPLACE - replace possibly existing classes
- 0 on success or a negative error code
Definition at line 144 of file class.c.
References nl_send_auto_complete(), nlmsg_free(), and rtnl_class_build_add_request().