Modules | |
| Class Modules | |
| Class Object | |
Addition/Modification | |
| struct nl_msg * | rtnl_class_build_add_request (struct rtnl_class *class, int flags) |
| Build a netlink message to add a new class. | |
| int | rtnl_class_add (struct nl_handle *handle, struct rtnl_class *class, int flags) |
| Add a new class. | |
Cache Management | |
| struct nl_cache * | rtnl_class_alloc_cache (struct nl_handle *handle, int ifindex) |
| Build a class cache including all classes attached to the specified interface. | |
| struct nl_msg* rtnl_class_build_add_request | ( | struct rtnl_class * | class, | |
| int | flags | |||
| ) | [read] |
| class | class to add | |
| flags | additional netlink message flags |
Common message flags
Definition at line 128 of file class.c.
References NLM_F_CREATE.
Referenced by rtnl_class_add().
| int rtnl_class_add | ( | struct nl_handle * | handle, | |
| struct rtnl_class * | class, | |||
| int | flags | |||
| ) |
| handle | netlink handle | |
| class | class to delete | |
| flags | additional netlink message flags |
Common message flags
Definition at line 148 of file class.c.
References nl_send_auto_complete(), nl_wait_for_ack(), nlmsg_free(), and rtnl_class_build_add_request().
| struct nl_cache* rtnl_class_alloc_cache | ( | struct nl_handle * | handle, | |
| int | ifindex | |||
| ) | [read] |
| handle | netlink handle | |
| ifindex | interface index of the link the classes are attached to. |
Definition at line 184 of file class.c.
References nl_cache_alloc(), nl_cache_free(), and nl_cache_refill().
1.5.5