Skip to content

Commit 9eb62ad

Browse files
committed
[add] ディレクトリを分けた
1 parent 5c1f83a commit 9eb62ad

24 files changed

+31
-29
lines changed

README.md

+3-29
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,4 @@
1-
# let-us-make-packets
2-
パケットを作るぞい( ^ω^)
1+
# パケットを作ろう!
2+
## 作って学ぶパケット入門
33

4-
## client
5-
6-
### ビルド
7-
`./client/bin``./server/bin` を作成し、
8-
9-
`./client` または `./server` に移動してから
10-
> make
11-
12-
でビルドされます。
13-
14-
####
15-
```sh
16-
$ cd let-us-make-packets/client/
17-
$ make
18-
```
19-
20-
### 実行
21-
実行ファイルは`./client/bin` または `./server/bin`にあります。
22-
23-
```sh
24-
# ./実行ファイル ネットワークインターフェース名
25-
```
26-
27-
####
28-
```sh
29-
$ sudo /実行ファイル enp0s25
30-
```
4+
サンプル用のコードは`/code`内にあります。

code/README.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# 実行の仕方
2+
3+
## 環境
4+
Linux
5+
6+
## 準備
7+
```sh
8+
mkdir client/bin
9+
mkdir server/bin
10+
```
11+
12+
## ビルド
13+
```sh
14+
cd client && make
15+
cd ../server && make
16+
```
17+
18+
## 実行
19+
`client/bin/`
20+
`server/bin/`
21+
22+
にそれぞれ実行ファイルができていると思います。

code/build.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
mkdir client/bin
2+
mkdir server/bin
3+
cd client && make
4+
cd ../server && make
5+
6+
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

lib/analyze.c code/lib/analyze.c

File renamed without changes.

lib/analyze.h code/lib/analyze.h

File renamed without changes.

lib/base.h code/lib/base.h

File renamed without changes.

lib/checksum.c code/lib/checksum.c

File renamed without changes.

lib/checksum.h code/lib/checksum.h

File renamed without changes.

lib/generate.c code/lib/generate.c

File renamed without changes.

lib/generate.h code/lib/generate.h

File renamed without changes.

lib/netutils.c code/lib/netutils.c

File renamed without changes.

lib/netutils.h code/lib/netutils.h

File renamed without changes.

lib/print.c code/lib/print.c

File renamed without changes.

lib/print.h code/lib/print.h

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)