00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef NETLINK_CLS_EMATCH_NBYTE_H_
00013 #define NETLINK_CLS_EMATCH_NBYTE_H_
00014
00015 #include <netlink/netlink.h>
00016 #include <netlink/route/cls/ematch.h>
00017 #include <linux/tc_ematch/tc_em_nbyte.h>
00018
00019 #ifdef __cplusplus
00020 extern "C" {
00021 #endif
00022
00023 extern void rtnl_ematch_nbyte_set_offset(struct rtnl_ematch *,
00024 uint8_t, uint16_t);
00025 extern uint16_t rtnl_ematch_nbyte_get_offset(struct rtnl_ematch *);
00026 extern uint8_t rtnl_ematch_nbyte_get_layer(struct rtnl_ematch *);
00027 extern void rtnl_ematch_nbyte_set_pattern(struct rtnl_ematch *,
00028 uint8_t *, size_t);
00029 extern uint8_t * rtnl_ematch_nbyte_get_pattern(struct rtnl_ematch *);
00030 extern size_t rtnl_ematch_nbyte_get_len(struct rtnl_ematch *);
00031
00032 #ifdef __cplusplus
00033 }
00034 #endif
00035
00036 #endif