Menu

#189 only one Host in Visual subnet display

version 0.8
open
nobody
None
2
2016-02-22
2016-02-19
Anonymous
No

Hallo,

when I create a subnet 192.168.1.0 / 24 then I see only one host in Visual subnet display. For other networks eg. 10.0.1.0/24 I see all Hosts.

1 Attachments

Discussion

  • Miha Petkovsek

    Miha Petkovsek - 2016-02-20

    Does this also happen in demo page ?

     
  • Anonymous

    Anonymous - 2016-02-20

    in demo page is also ok. I used an raspbetrry PI. With version 1.1.010 and a change in /var/www/html/phpipam/site/ipaddr/ipAddressPrintVisual.php (Added this line:$max = gmp_strval(gmp_and("0xffffffff", (int) $max));) it works

     
  • Orkhan

    Orkhan - 2016-02-20

    Hi everyone,

    I wrote about this bug in https://sourceforge.net/p/phpipam/support-requests/187/
    First I though that it is database problem. However, then I realized that it happens only with "high" subnet prefixes. I solved this problem by deleting (int) from app/subnets/subnet-visual.php on line 9,10:

    -- $start_visual = gmp_strval(gmp_and("0xffffffff", (int) $Subnets->transform_to_decimal($subnet_detailed['network'])));
    -- $stop_visual = gmp_strval(gmp_and("0xffffffff", (int) $Subnets->transform_to_decimal($subnet_detailed['broadcast'])));
    ++ $start_visual = gmp_strval(gmp_and("0xffffffff", $Subnets->transform_to_decimal($subnet_detailed['network'])));
    ++ $stop_visual = gmp_strval(gmp_and("0xffffffff", $Subnets->transform_to_decimal($subnet_detailed['broadcast'])));

    P.S. I wrote about this solution in previous support request, but it is still awaiting moderation.

     

    Last edit: Orkhan 2016-02-20
    • Anonymous

      Anonymous - 2016-02-22
      Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.