FAST UA API
生活随笔
收集整理的這篇文章主要介紹了
FAST UA API
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
參考:
- FAST_UA 編程手冊
FAST DATA STRUCTURE
fast_packet
fast_metadata
fast_rule
fast_flow
FAST UA API
1.fast_ua_init()
int fast_ua_init(int fast_type);function:
Register;
platform allocate MID
return: user MID
2.fast_ua_destroy()
void fast_ua_destroy(int mid);function:
recover MID
free resources
return: NONE
3.fast_ua_send()
int fast_ua_send(struct fast_packet *pkt, int pkt_len);struct fast_packet *pkt - 報文指針
int pkt_len - 報文長度
function:
- FAST UA send messages
return: NONE
4.fast_ua_recv()
void fast_ua_recv(fast_ua_recv_callback callback);- fast_ua_recv_callback callback - 用于處理接收數據報文的回調函數
function:
- FAST receive messages
return: NONE
5.fast_add_rule()
int fast_add_rule(struct fast_rule *rule);- struct fast_rule *rule - FAST 流表信息數據結構
function:
- add flow table rules
return:
if success return index;
else return 0
6.fast_del_rule()
int fast_del_rule(int index);- index - 索引
function:
- delete flow table rules
return:
if success return 1;
else return 0
7.fast_print_pkt()
void print_pkt(struct fast_packet *pkt, int pkt_len);function:
- print packet information(data structure)
return: NONE
8.fast_print_rule()
void print_hw_rule() ;function:
- print hardware rules
return: NONE
2017.5.2
轉載于:https://www.cnblogs.com/qq952693358/p/6797970.html
總結
以上是生活随笔為你收集整理的FAST UA API的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 《如何阅读一本书》之 阅读的层次
- 下一篇: C++ UTF8和UTF16互转代码