摘要:
重点:这篇为转载,作者在这块分析的很好,虽然现在libnids已经更新到了1.24,但函数的大体流程还是未变,正文 1 void process_tcp(u_char * data, int skblen)//传入数据与其长度 2 { 3 struct ip *this_iphdr = (struct ip *)data;//ip与tcp结构体见后面说明 4 struct tcphdr *this_tcphdr = (struct tcphdr *)(data + 4 * this_iphdr->ip_hl); 5 //计算ip部分偏移指到TCP头部 6 int datalen... 阅读全文
posted @ 2014-04-02 14:46
飞花XX
阅读(3118)
评论(0)
推荐(0)

浙公网安备 33010602011771号