首页 > TAG信息列表 > mbuf

dpdk发送RST报文(一)—— 构建RST包

suricata中阻断报文函数“RejectSendLibnet11IPv4TCP”使用libnet11构造阻断报文。今天试一下自己手动构建RST报文,然后通过dpdk发送出去。 dpdk-response-reject.h #ifndef __DPDK_RESPONSE_REJECT_H__ #define __DPDK_RESPONSE_REJECT_H__ #include "rte_mbuf.h" enum Reject

linux网络编程-进程间通信——消息队列

1 #include<stdio.h> 2 #include<string.h> 3 #include<sys/types.h> 4 #include<sys/ipc.h> 5 #include<sys/msg.h> 6 int main() 7 { 8 int ret = -1; 9 key_t key; 10 char *msgpath = "./ipc/"; 11 int