Comments (12)
@yasuhito
有難う御座います。確かにそのほうがイイですね。
そのように致します。
from pio.
@shun159 ありがとうございます。鈴木さんは別件でとても忙しいのでこっちでやっちゃいましょう。simple_router の ICMP のほうは Pio::ICMP が入りしだい僕のほうでやっておきます (大変ではないですが) 。cc/ @kazuyas
from pio.
EchoRequest->EchoReplyだけですが、こんな感じです。
https://gist.github.com/shun159/7365775
いかがでしょうか?
from pio.
Ttl超過・あて先到達不能も追加しました。
from pio.
@shun159 trema の feature/pio_arp_simple_router ブランチに Pio::Icmp で書き直した simple_router をコミットしました。これで動作確認をおねがいします。もし動かなかったら PR よろしくです。
from pio.
@yasuhito
承知しました。
from pio.
動きませんでした。simple_router少し修正します。
ちなみにInterfaceでIPAddr.new
していますが、Pio::IPv4Address.new
のように変更されますでしょうか。
大体、原因はそのあたりな気がいたします。
from pio.
間違いでしたら、もうしわけありません。
from pio.
はい、simple_router で IPAddr 使ってる部分はもういらないので、ついでに消しちゃってください。
from pio.
承知しました。
from pio.
ちなみにですが。
パーサーとしての動作はOKです。
ARP Reply
0000 64 31 50 54 01 14 00 00 00 01 00 01 08 06 00 01
0010 08 00 06 04 00 02 00 00 00 01 00 01 0a 10 01 fe
0020 64 31 50 54 01 14 0a 10 01 01 00 00 00 00 00 00
0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ICMP Reply
0000 00 00 00 01 00 01 64 31 50 54 01 14 08 00 45 00
0010 00 24 00 00 00 00 80 01 23 bb 0a 10 01 fe 0a 10
0020 01 01 00 00 f1 b1 00 01 01 38 44 45 41 44 42 45
0030 45 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00
では、引き続き修正を続けます。
from pio.
PR出しました、ご確認お願い致します。
from pio.
Related Issues (20)
- Pio::OpenFlow.read cannot parse Barrier messages.
- Add FlowStats::Request and FlowStats::Reply
- Add Table Stats Request/Reply message
- Add Port Stats Request/Reply message
- Add Queue Stats Request/Reply message
- Add Vendor Stats Request/Reply message HOT 5
- Features::Reply#dpid (#datapath_id) doesn't return an Integer
- " error: undefined method `key?' for nil:NilClass " のエラーの原因について HOT 14
- GotoTable.new(v) (v > OFPP_MAX) must raise an error.
- ParserのIPv6対応 HOT 7
- flow_modのデフォルトのmatch HOT 1
- パケットからMatchを生成するメソッド HOT 6
- the message #1 have → has
- OpenFlow 1.0 protocol
- Remove action Format classes
- OpenFlow 1.3 protocol
- Pio::DHCPの修正
- MultiPartメッセージについて HOT 1
- ARPのhardware_typeが1で決め打ちされてしまっている
- The doucument link is dead now
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pio.