libnl 3.7.0
nbyte.h
1/* SPDX-License-Identifier: LGPL-2.1-only */
2/*
3 * Copyright (c) 2010 Thomas Graf <tgraf@suug.ch>
4 */
5
6#ifndef NETLINK_CLS_EMATCH_NBYTE_H_
7#define NETLINK_CLS_EMATCH_NBYTE_H_
8
9#include <netlink/netlink.h>
10#include <netlink/route/cls/ematch.h>
11#include <linux/tc_ematch/tc_em_nbyte.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17extern void rtnl_ematch_nbyte_set_offset(struct rtnl_ematch *,
18 uint8_t, uint16_t);
19extern uint16_t rtnl_ematch_nbyte_get_offset(struct rtnl_ematch *);
20extern uint8_t rtnl_ematch_nbyte_get_layer(struct rtnl_ematch *);
21extern void rtnl_ematch_nbyte_set_pattern(struct rtnl_ematch *,
22 uint8_t *, size_t);
23extern uint8_t * rtnl_ematch_nbyte_get_pattern(struct rtnl_ematch *);
24extern size_t rtnl_ematch_nbyte_get_len(struct rtnl_ematch *);
25
26#ifdef __cplusplus
27}
28#endif
29
30#endif