libnl  3.2.24-rc1
text.h
1 /*
2  * netlink/route/cls/ematch/text.h Text Search
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_TEXT_H_
13 #define NETLINK_CLS_EMATCH_TEXT_H_
14 
15 #include <netlink/netlink.h>
16 #include <netlink/route/cls/ematch.h>
17 #include <linux/tc_ematch/tc_em_text.h>
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 extern void rtnl_ematch_text_set_from(struct rtnl_ematch *,
24  uint8_t, uint16_t);
25 extern uint16_t rtnl_ematch_text_get_from_offset(struct rtnl_ematch *);
26 extern uint8_t rtnl_ematch_text_get_from_layer(struct rtnl_ematch *);
27 extern void rtnl_ematch_text_set_to(struct rtnl_ematch *,
28  uint8_t, uint16_t);
29 extern uint16_t rtnl_ematch_text_get_to_offset(struct rtnl_ematch *);
30 extern uint8_t rtnl_ematch_text_get_to_layer(struct rtnl_ematch *);
31 extern void rtnl_ematch_text_set_pattern(struct rtnl_ematch *,
32  char *, size_t);
33 extern char * rtnl_ematch_text_get_pattern(struct rtnl_ematch *);
34 extern size_t rtnl_ematch_text_get_len(struct rtnl_ematch *);
35 extern void rtnl_ematch_text_set_algo(struct rtnl_ematch *, const char *);
36 extern char * rtnl_ematch_text_get_algo(struct rtnl_ematch *);
37 
38 #ifdef __cplusplus
39 }
40 #endif
41 
42 #endif