{"id":17300800,"url":"https://github.com/wangbojing/ntytcp","last_synced_at":"2025-04-12T19:43:08.114Z","repository":{"id":50572093,"uuid":"125730162","full_name":"wangbojing/NtyTcp","owner":"wangbojing","description":"单线程用户态TCP/IP协议栈，epoll实现，包含服务器案例，并发测试案例","archived":false,"fork":false,"pushed_at":"2023-06-20T07:48:30.000Z","size":708,"stargazers_count":701,"open_issues_count":8,"forks_count":302,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-04-03T22:09:25.467Z","etag":null,"topics":["dpdk","epoll","ip-hex","netmap","pf-ring","tcpip","userspace"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wangbojing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-18T13:56:11.000Z","updated_at":"2025-03-27T07:31:48.000Z","dependencies_parsed_at":"2024-10-15T11:30:24.216Z","dependency_job_id":"8f0c957d-376a-457e-9572-0db63703e0d5","html_url":"https://github.com/wangbojing/NtyTcp","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangbojing%2FNtyTcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangbojing%2FNtyTcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangbojing%2FNtyTcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangbojing%2FNtyTcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangbojing","download_url":"https://codeload.github.com/wangbojing/NtyTcp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625477,"owners_count":21135512,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dpdk","epoll","ip-hex","netmap","pf-ring","tcpip","userspace"],"created_at":"2024-10-15T11:30:17.567Z","updated_at":"2025-04-12T19:43:08.109Z","avatar_url":"https://github.com/wangbojing.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n![image](https://www.0voice.com/uiwebsite/linux/arch.png)\n\n## netmap install\n```\n$ git clone https://github.com/wangbojing/netmap.git\n\n$ ./configure\n\n$ make \n\n$ sudo make install\n```\n## netmap install complete.\n\n#### Troubleshooting\n\n### 1. problem : configure --\u003e /bin/sh^M. \n\n\tyou should run . \n```\n$ dos2unix configure\n\n$ dos2unix ./LINUX/configure\n```\n### 2. problem : cannot stat 'bridge': No such or directory\n\n```\n$ make clean\n\n$ cd build-apps/bridge\n\n$ gcc -O2 -pipe -Werror -Wall -Wunused-function -I ../../sys -I ../../apps/include -Wextra    ../../apps/bridge/bridge.c  -lpthread -lrt    -o bridge\n\n$ sudo make \u0026\u0026 make install\n```\n\n## NtyTcp\nnetmap, dpdk, pf_ring, Tcp Stack for Userspace \n\ncompile:\n```\n$ sudo apt-get install libhugetlbfs-dev\n\n$ make\n```\n\nupdate NtyTcp/include/nty_config.h \n```\n\n#define NTY_SELF_IP\t\t\"192.168.0.106\" \t//your ip\n\n#define NTY_SELF_IP_HEX\t0x6A00A8C0 \t\t\t//your ip hex.\n\n#define NTY_SELF_MAC\t\"00:0c:29:58:6f:f4\" //your mac\n```\n\nblock server run:\n```\n$ ./bin/nty_example_block_server\n```\nepoll server run:\n```\n$ ./bin/nty_example_epoll_rb_server\n```\n\n## Reference\n* [Level-IP](https://github.com/saminiir/level-ip) and [saminiir blog](http://www.saminiir.com/)\n* [Linux kernel TCP/IP stack](https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/net/ipv4)\n\nif you discover bug to sending email to wangbojing@0voice.com. \n\nalso, want to be an NtyTcper, so you can sent email to wangbojing@0voice.com .\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangbojing%2Fntytcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangbojing%2Fntytcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangbojing%2Fntytcp/lists"}