Rustでネットワークのパケットキャプチャ・解析・制御等を実装するための勉強用レポジトリです。
- パケットキャプチャ
- フロー解析 / 特徴抽出(保存)
- 特定のアクセス制御
ビルド
cargo build --release実行
./target/release/network-examples --address 127.0.0.1:3333 --protocol tcp --role serverソースコードのクローン
# クローン
git clone https://github.com/telumo/network-examples.git
# 移動
cd network-examples
# ブランチの作成
git branch <name>
# ex) git branch hasegawa
# チェックアウト
git checkout <name>
# ex) git chechout hasegawaビルド | 実行
# ビルド
cargo build
# 実行
cargo run
コミット & プッシュ
# コミット
git add .
git commit -m "<メッセージ>"
# 最新版の取得
git checkout master
git pull
git checkout <name>
# マージ
git merge master
# プッシュ
git push
# 初回時のみ
git push --set-upstream origin <name>
プルリクエスト & マージ
- githubのプルリクエスト機能で master <= ブランチ にプルリクエストを送る。
- マージする
# インストール
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# アクティベート
source ~/.cargo/env
# update
rustup update
# ビルド
cargo build
# 実行
cargo run数字をて足す
numbers.txtファイルから数字を取得する numbers.txt
1
2-
全ての数字の和を求める
-
numbers.txtに追記する
1
2
3