libnl: /data/src/libnl3/include/netlink/route/action.h Source File

libnl 3.7.0

action.h
1 /* SPDX-License-Identifier: LGPL-2.1-only */
2 /*
3 * Copyright (c) 2013 Cong Wang <xiyou.wangcong@gmail.com>
4 */
5
6 #ifndef NETLINK_ACTION_H_
7 #define NETLINK_ACTION_H_
8
9 #include <netlink/netlink.h>
10 #include <netlink/cache.h>
11 #include <netlink/route/tc.h>
12 #include <netlink/utils.h>
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 extern struct rtnl_act *rtnl_act_alloc(void);
19 extern struct rtnl_act *rtnl_act_next(struct rtnl_act *);
20 extern void rtnl_act_get(struct rtnl_act *);
21 extern void rtnl_act_put(struct rtnl_act *);
22 extern int rtnl_act_build_add_request(struct rtnl_act *, int,
23 struct nl_msg **);
24 extern int rtnl_act_add(struct nl_sock *, struct rtnl_act *, int);
25 extern int rtnl_act_change(struct nl_sock *, struct rtnl_act *, int);
26
27 extern int rtnl_act_build_change_request(struct rtnl_act *, int,
28 struct nl_msg **);
29 extern int rtnl_act_build_delete_request(struct rtnl_act *, int,
30 struct nl_msg **);
31 extern int rtnl_act_delete(struct nl_sock *, struct rtnl_act *,
32 int);
33 extern int rtnl_act_append(struct rtnl_act **, struct rtnl_act *);
34 extern int rtnl_act_remove(struct rtnl_act **, struct rtnl_act *);
35 extern int rtnl_act_fill(struct nl_msg *, int, struct rtnl_act *);
36 extern void rtnl_act_put_all(struct rtnl_act **);
37 extern int rtnl_act_parse(struct rtnl_act **, struct nlattr *);
38 #ifdef __cplusplus
39 }
40 #endif
41
42 #endif
rtnl_act_change
int rtnl_act_change(struct nl_sock *, struct rtnl_act *, int)
Change an action.
Definition: act.c:298
rtnl_act_build_delete_request
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:323
rtnl_act_build_add_request
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:217
rtnl_act_delete
int rtnl_act_delete(struct nl_sock *, struct rtnl_act *, int)
Delete action.
Definition: act.c:360
rtnl_act_add
int rtnl_act_add(struct nl_sock *, struct rtnl_act *, int)
Add/Update action.
Definition: act.c:256
rtnl_act_build_change_request
int rtnl_act_build_change_request(struct rtnl_act *, int, struct nl_msg **)
Build a netlink message to change action attributes.
Definition: act.c:280