secgateway/Platform/common/rpdb/dpi_trie_cache.h

29 lines
451 B
C
Raw Normal View History

2019-09-03 09:38:02 +00:00
#ifndef _DPI_TRIE_CACHE_H_
#define _DPI_TRIE_CACHE_H_
/*
* <EFBFBD><EFBFBD>Ԫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݽ
*/
struct dpi_cache_node {
struct list_head list;
union {
struct in6_addr ip6;
struct in_addr ip4;
}ip;
__u16 proto;
__u16 port;
__u32 appid;
2019-09-06 08:41:04 +00:00
bool ipv4;
2019-09-03 09:38:02 +00:00
uint64_t uptime;
};
/*
@des:<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ԫ<EFBFBD>hash<EFBFBD><EFBFBD>
@input: node<EFBFBD><EFBFBD>ֵ<EFBFBD><EFBFBD>Ԫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>appid
@outp: <EFBFBD>ɹ<EFBFBD><EFBFBD><EFBFBD>true<EFBFBD><EFBFBD>ʧ<EFBFBD>ܣ<EFBFBD>false
*/
bool dpi_cache_node_add(struct dpi_cache_node node);
2019-09-06 08:41:04 +00:00
#endif