File tree Expand file tree Collapse file tree 1 file changed +17
-14
lines changed Expand file tree Collapse file tree 1 file changed +17
-14
lines changed Original file line number Diff line number Diff line change 4
4
5
5
具体详情还可以移步 http://www.ntytcp.com
6
6
7
- # netmap install
8
-
7
+ ## netmap install
8
+ ```
9
9
$ git clone https://github.com/wangbojing/netmap.git
10
10
11
11
$ ./configure
12
12
13
13
$ make
14
14
15
15
$ sudo make install
16
+ ```
17
+ ## netmap install complete.
16
18
17
- # netmap install complete.
19
+ #### Troubleshooting
18
20
19
- 1 . problem : configure --> /bin/sh^M.
21
+ # 1. problem : configure --> /bin/sh^M.
20
22
21
23
you should run .
22
-
24
+ ```
23
25
$ dos2unix configure
24
26
25
27
$ dos2unix ./LINUX/configure
26
-
27
- 2 . problem : cannot stat 'bridge': No such or directory
28
-
28
+ ```
29
+ # 2. problem : cannot stat 'bridge': No such or directory
30
+ ```
29
31
$ make clean
30
32
31
33
$ cd build-apps/bridge
32
34
33
35
$ gcc -O2 -pipe -Werror -Wall -Wunused-function -I ../../sys -I ../../apps/include -Wextra ../../apps/bridge/bridge.c -lpthread -lrt -o bridge
34
36
35
37
$ sudo make && make install
36
-
38
+ ```
37
39
38
40
# NtyTcp
39
41
netmap, dpdp, pf_ring, Tcp Stack for Userspace
40
42
41
43
compile:
42
-
44
+ ```
43
45
$ sudo apt-get install libhugetlbfs-dev
44
46
45
47
$ make
48
+ ```
46
49
47
50
update NtyTcp/include/nty_config.h
48
51
@@ -53,13 +56,13 @@ update NtyTcp/include/nty_config.h
53
56
#define NTY_SELF_MAC "00:0c:29:58:6f: f4 " //your mac
54
57
55
58
block server run:
56
-
59
+ ```
57
60
$ ./bin/nty_example_block_server
58
-
61
+ ```
59
62
epoll server run:
60
-
63
+ ```
61
64
$ ./bin/nty_example_epoll_rb_server
62
-
65
+ ```
63
66
64
67
65
68
You can’t perform that action at this time.
0 commit comments