libnl  3.2.28
action.h
1 /*
2  * netlink/route/action.h Actions
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation version 2.1
7  * of the License.
8  *
9  * Copyright (c) 2013 Cong Wang <xiyou.wangcong@gmail.com>
10  */
11 
12 #ifndef NETLINK_ACTION_H_
13 #define NETLINK_ACTION_H_
14 
15 #include <netlink/netlink.h>
16 #include <netlink/cache.h>
17 #include <netlink/route/tc.h>
18 #include <netlink/utils.h>
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 extern struct rtnl_act *rtnl_act_alloc(void);
25 extern void rtnl_act_get(struct rtnl_act *);
26 extern void rtnl_act_put(struct rtnl_act *);
27 extern int rtnl_act_build_add_request(struct rtnl_act *, int,
28  struct nl_msg **);
29 extern int rtnl_act_add(struct nl_sock *, struct rtnl_act *, int);
30 extern int rtnl_act_change(struct nl_sock *, struct rtnl_act *, int);
31 
32 extern int rtnl_act_build_change_request(struct rtnl_act *, int,
33  struct nl_msg **);
34 extern int rtnl_act_build_delete_request(struct rtnl_act *, int,
35  struct nl_msg **);
36 extern int rtnl_act_delete(struct nl_sock *, struct rtnl_act *,
37  int);
38 extern int rtnl_act_append(struct rtnl_act **, struct rtnl_act *);
39 extern int rtnl_act_remove(struct rtnl_act **, struct rtnl_act *);
40 extern int rtnl_act_fill(struct nl_msg *, int, struct rtnl_act *);
41 extern void rtnl_act_put_all(struct rtnl_act **);
42 extern int rtnl_act_parse(struct rtnl_act **, struct nlattr *);
43 #ifdef __cplusplus
44 }
45 #endif
46 
47 #endif
int rtnl_act_build_add_request(struct rtnl_act *, int, struct nl_msg **)
Build a netlink message requesting the addition of an action.
Definition: act.c:213
int rtnl_act_build_change_request(struct rtnl_act *, int, struct nl_msg **)
Build a netlink message to change action attributes.
Definition: act.c:276
int rtnl_act_build_delete_request(struct rtnl_act *, int, struct nl_msg **)
Build netlink message requesting the deletion of an action.
Definition: act.c:319
int rtnl_act_change(struct nl_sock *, struct rtnl_act *, int)
Change an action.
Definition: act.c:294
int rtnl_act_add(struct nl_sock *, struct rtnl_act *, int)
Add/Update action.
Definition: act.c:252
int rtnl_act_delete(struct nl_sock *, struct rtnl_act *, int)
Delete action.
Definition: act.c:356