• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * netlink/route/cls/ematch/nbyte.h	N-Byte Comparison
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) 2010 Thomas Graf <tgraf@suug.ch>
10  */
11 
12 #ifndef NETLINK_CLS_EMATCH_NBYTE_H_
13 #define NETLINK_CLS_EMATCH_NBYTE_H_
14 
15 #include <netlink/netlink.h>
16 #include <netlink/route/cls/ematch.h>
17 #include <linux/tc_ematch/tc_em_nbyte.h>
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 extern void		rtnl_ematch_nbyte_set_offset(struct rtnl_ematch *,
24 						     uint8_t, uint16_t);
25 extern uint16_t		rtnl_ematch_nbyte_get_offset(struct rtnl_ematch *);
26 extern uint8_t		rtnl_ematch_nbyte_get_layer(struct rtnl_ematch *);
27 extern void		rtnl_ematch_nbyte_set_pattern(struct rtnl_ematch *,
28 						      uint8_t *, size_t);
29 extern uint8_t *	rtnl_ematch_nbyte_get_pattern(struct rtnl_ematch *);
30 extern size_t		rtnl_ematch_nbyte_get_len(struct rtnl_ematch *);
31 
32 #ifdef __cplusplus
33 }
34 #endif
35 
36 #endif
37