Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fix #6

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

bug fix #6

wants to merge 1 commit into from

Conversation

yamatchan
Copy link

bug occurs when source and destination are same

送信元と宛先が同一のパケットを送信した時に,プログラムが停止するバグを修正.
最短経路長が0のときのみ,特別な処理をするように変更.

bug occurs when source and destination are same
@yamatchan
Copy link
Author

追記です.
一応,以下のコマンドで正しく実行できることが確認できています.

$ bin/trema run lib/routing_switch.rb -c trema.conf
$ bin/trema send_packet -s host1 -d host1
$ bin/trema send_packet -s host1 -d host2
$ bin/trema send_packet -s host2 -d host1
$ bin/trema send_packet -s host2 -d host2

テスト内容
・初期状態で自分自身にパケットを送信する … accept
・異なるホスト間でパケットを送信する … accept
・異なるホスト間の最短経路を見つけた後に,自分自身にパケットを送信する … accept

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant