Ticket #26325: patch-ipv4pack-ipv4pack.pm.diff

File patch-ipv4pack-ipv4pack.pm.diff, 518 bytes (added by fclaire@…, 14 years ago)
  • ipv4pack/ipv4pack.pm

    old new  
    271271
    272272       # check for a valid range: no CLASS-D and upper (223-255), no 127/8
    273273       # and no private networks allowed (10/8)
    274        return ("", $O_PRIVATERANGE) if ($1 =~ /^10|127$/);
     274       return ("", $O_PRIVATERANGE) if ($1 eq "10" || $1 eq "127");
    275275       return ("", $O_RESERVEDCLASS) if ($1 > 223);
    276276
    277277       if ($3 eq '/') {  # range is in format quad/prefix