Giter VIP home page Giter VIP logo

Comments (17)

mehrdadrad avatar mehrdadrad commented on May 23, 2024

good catch 👍 I just committed a fix pls try again and let me know. Thanks!

from mylg.

jungle-boogie avatar jungle-boogie commented on May 23, 2024

much better but what's up with this?
192.168.0.100 is alive (1481429370444.3538 ms)

Is that a sum of scanning the full /24 range?

from mylg.

mehrdadrad avatar mehrdadrad commented on May 23, 2024

did you try w/ the last commit? I did another commit today

from mylg.

jungle-boogie avatar jungle-boogie commented on May 23, 2024

Yes, this is with the latest update.

from mylg.

mehrdadrad avatar mehrdadrad commented on May 23, 2024

when you get a chance try again w/ latest code. I checked w/ diff scenarios and it passed!

from mylg.

jungle-boogie avatar jungle-boogie commented on May 23, 2024

This still repeats results in the scan.

192.168.0.1 is alive (2.6196 ms)
192.168.0.2 is alive (81.7707 ms)
192.168.0.3 is alive (0.3931 ms)
192.168.0.4 is alive (5.8295 ms)
192.168.0.5 is alive (4.5503 ms)
192.168.0.6 is alive (0.3875 ms)
192.168.0.8 is alive (8.6852 ms)
192.168.0.11 is alive (1.9782 ms)
192.168.0.12 is alive (10.4139 ms)
192.168.0.13 is alive (0.2777 ms)
192.168.0.15 is alive (0.0939 ms)
192.168.0.17 is alive (0.2249 ms)
192.168.0.20 is alive (0.2361 ms)
192.168.0.22 is alive (0.4109 ms)
192.168.0.26 is alive (0.4188 ms)
192.168.0.100 is alive (0.4068 ms)
192.168.0.137 is alive (0.6168 ms)
192.168.0.140 is alive (0.4065 ms)
192.168.0.15 is alive (0.0908 ms)

Notice this has 192.168.0.15 twice. This has the latest code from github.

from mylg.

mehrdadrad avatar mehrdadrad commented on May 23, 2024

I couldn't duplicate this issue. I remember you had same issue w/ scan

from mylg.

jungle-boogie avatar jungle-boogie commented on May 23, 2024

I couldn't duplicate this issue. I remember you had same issue w/ scan

yes, that's right and you fixed it with the code.

from mylg.

mehrdadrad avatar mehrdadrad commented on May 23, 2024

Correct, I added unique function to stop showing duplicate!

from mylg.

mehrdadrad avatar mehrdadrad commented on May 23, 2024

@gummiboll when you get a chance can you test it pls

from mylg.

gummiboll avatar gummiboll commented on May 23, 2024

I can duplicate this with a fresh build of mylg:

untzuntz:mylg emil$ sudo ./bin/mylg ping 10.0.1.0/24|grep alive
10.0.1.1 is alive (2.395 ms)
10.0.1.1 is alive (1.144 ms)
10.0.1.2 is alive (2.594 ms)
10.0.1.8 is alive (0.134 ms)
10.0.1.10 is alive (3.357 ms)
10.0.1.8 is alive (0.102 ms)

.1 is my gw and .8 is the laptop I'm pinging from if that helps

from mylg.

mehrdadrad avatar mehrdadrad commented on May 23, 2024

@gummiboll Thanks! that's help

from mylg.

mehrdadrad avatar mehrdadrad commented on May 23, 2024

@gummiboll I think the 10.0.1.1 shouldn't be showed up per last change but still no idea why 10.0.1.8 duplicated.

from mylg.

mehrdadrad avatar mehrdadrad commented on May 23, 2024

I think I found the issue for the 10.0.1.8 issue. the root cause is broadcast ip address. it should be skipped through the ping loop :-)

from mylg.

mehrdadrad avatar mehrdadrad commented on May 23, 2024

@jungle-boogie @gummiboll it fixed pls try again when you get a chance

from mylg.

gummiboll avatar gummiboll commented on May 23, 2024

You did it @mehrdadrad, good job!

untzuntz:mylg emil$ sudo ./mylg ping 10.0.1.0/24|grep alive
10.0.1.1 is alive (16.469 ms)
10.0.1.2 is alive (2.823 ms)
10.0.1.8 is alive (0.168 ms)
10.0.1.10 is alive (3.602 ms)

from mylg.

mehrdadrad avatar mehrdadrad commented on May 23, 2024

@gummiboll Thanks Emil!

from mylg.

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.