libnl 3.7.0
matchall.h
1/* SPDX-License-Identifier: LGPL-2.1-only */
2/*
3 * Copyright (c) 2017 Volodymyr Bendiuga <volodymyr.bendiuga@gmail.com>
4 */
5
6#ifndef NETLINK_MATCHALL_H_
7#define NETLINK_MATCHALL_H_
8
9#include <netlink/netlink.h>
10#include <netlink/cache.h>
11#include <netlink/route/classifier.h>
12#include <netlink/route/action.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18extern int rtnl_mall_set_classid(struct rtnl_cls *, uint32_t);
19extern int rtnl_mall_get_classid(struct rtnl_cls *, uint32_t *);
20extern int rtnl_mall_set_flags(struct rtnl_cls *, uint32_t);
21extern int rtnl_mall_get_flags(struct rtnl_cls *, uint32_t *);
22extern int rtnl_mall_append_action(struct rtnl_cls *, struct rtnl_act *);
23extern struct rtnl_act *rtnl_mall_get_first_action(struct rtnl_cls *);
24extern int rtnl_mall_del_action(struct rtnl_cls *, struct rtnl_act *);
25
26#ifdef __cplusplus
27}
28#endif
29
30#endif