摘要: dpdk例子中提供了两种方法与linux kernel协议栈交互: TAP和KNI; 两种方法都是创建虚拟设备用于收发报文; TAP/TUN设备的创建 static int tap_create(char *name){ struct ifreq ifr; int fd, ret; fd = open("/dev/net/tun", O_RDWR); if (fd pkt... 阅读全文
posted @ 2014-04-22 14:56 chanwai1219 阅读(10918) 评论(1) 推荐(1) 编辑