libnl  3.6.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
14 extern "C" {
15 #endif
16 
17 extern void rtnl_ematch_nbyte_set_offset(struct rtnl_ematch *,
18  uint8_t, uint16_t);
19 extern uint16_t rtnl_ematch_nbyte_get_offset(struct rtnl_ematch *);
20 extern uint8_t rtnl_ematch_nbyte_get_layer(struct rtnl_ematch *);
21 extern void rtnl_ematch_nbyte_set_pattern(struct rtnl_ematch *,
22  uint8_t *, size_t);
23 extern uint8_t * rtnl_ematch_nbyte_get_pattern(struct rtnl_ematch *);
24 extern size_t rtnl_ematch_nbyte_get_len(struct rtnl_ematch *);
25 
26 #ifdef __cplusplus
27 }
28 #endif
29 
30 #endif