ipfrag.h

来自「一个很好用的linux 下的流量监控软件」· C头文件 代码 · 共 50 行

H
50
字号
/***ipfrag.h - IP fragmentation hander definitions***/struct fragdescent {    unsigned int min;    unsigned int max;    struct fragdescent *prev_entry;    struct fragdescent *next_entry;};struct fragent {    unsigned long s_addr;    unsigned int s_port;    unsigned long d_addr;    unsigned int d_port;    unsigned int id;    unsigned int protocol;    int firstin;    time_t starttime;    struct fragdescent *fragdesclist;    struct fragdescent *fragdesctail;    unsigned int bcount;    struct fragent *prev_entry;    struct fragent *next_entry;};struct fragfreelistent {    struct fragent *top;    struct fragfreelist *next_entry;};struct fragent *addnewdgram(struct iphdr *packet);struct fragdescent *addnewhole(struct fragent *frag);struct fragent *searchfrags(unsigned long saddr, unsigned long daddr,                            unsigned int protocol, unsigned int id);void deldgram(struct fragent *ftmp);void destroyholes(struct fragent *ftmp);void destroyfraglist(void);unsigned int processfragment(struct iphdr *packet, unsigned int *sport,                             unsigned int *dport, int *firstin);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?