Code Monkey home page Code Monkey logo

Comments (12)

shun159 avatar shun159 commented on August 9, 2024

@yasuhito
有難う御座います。確かにそのほうがイイですね。
そのように致します。

from pio.

yasuhito avatar yasuhito commented on August 9, 2024

@shun159 ありがとうございます。鈴木さんは別件でとても忙しいのでこっちでやっちゃいましょう。simple_router の ICMP のほうは Pio::ICMP が入りしだい僕のほうでやっておきます (大変ではないですが) 。cc/ @kazuyas

from pio.

shun159 avatar shun159 commented on August 9, 2024

EchoRequest->EchoReplyだけですが、こんな感じです。
https://gist.github.com/shun159/7365775

いかがでしょうか?

from pio.

shun159 avatar shun159 commented on August 9, 2024

Ttl超過・あて先到達不能も追加しました。

from pio.

yasuhito avatar yasuhito commented on August 9, 2024

@shun159 trema の feature/pio_arp_simple_router ブランチに Pio::Icmp で書き直した simple_router をコミットしました。これで動作確認をおねがいします。もし動かなかったら PR よろしくです。

from pio.

shun159 avatar shun159 commented on August 9, 2024

@yasuhito
承知しました。

from pio.

shun159 avatar shun159 commented on August 9, 2024

動きませんでした。simple_router少し修正します。

ちなみにInterfaceでIPAddr.newしていますが、Pio::IPv4Address.newのように変更されますでしょうか。
大体、原因はそのあたりな気がいたします。

from pio.

shun159 avatar shun159 commented on August 9, 2024

間違いでしたら、もうしわけありません。

from pio.

yasuhito avatar yasuhito commented on August 9, 2024

はい、simple_router で IPAddr 使ってる部分はもういらないので、ついでに消しちゃってください。

from pio.

shun159 avatar shun159 commented on August 9, 2024

承知しました。

from pio.

shun159 avatar shun159 commented on August 9, 2024

ちなみにですが。
パーサーとしての動作は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.

shun159 avatar shun159 commented on August 9, 2024

PR出しました、ご確認お願い致します。

from pio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.