单线程用户态TCP/IP协议栈,epoll实现,包含服务器案例,并发测试案例
$ git clone https://github.com/wangbojing/netmap.git
$ ./configure
$ make
$ sudo make install你应该运行 .
$ dos2unix configure
$ dos2unix ./LINUX/configure$ make clean
$ cd build-apps/bridge
$ gcc -O2 -pipe -Werror -Wall -Wunused-function -I ../../sys -I ../../apps/include -Wextra ../../apps/bridge/bridge.c -lpthread -lrt -o bridge
$ sudo make && make installnetmap、dpdk、pf_ring、用户空间的 TCP 堆栈 编译:
$ sudo apt-get install libhugetlbfs-dev
$ make更新 NtyTcp/include/nty_config.h
#define NTY_SELF_IP "192.168.0.106" //your ip
#define NTY_SELF_IP_HEX 0x6A00A8C0 //your ip hex.
#define NTY_SELF_MAC "00:0c:29:58:6f:f4" //your mac块服务器运行:
$ ./bin/nty_example_block_serverepoll 服务器运行:
$ ./bin/nty_example_epoll_rb_server暂无开放 Issues,或尚未同步最近议题。