• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • ipaudit
  • Patches

fix 30 Minute script on 64-bit systems

Brought to you by: goochjj, jh8, jrifkin
  • Summary
  • Files
  • Reviews
  • Support
  • Mailing Lists
  • Tickets ▾
    • Bugs
    • Feature Requests
    • Patches
    • Support Requests
  • Discussion
  • Code
  • ipaudit-binary
  • Blog
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#6 fix 30 Minute script on 64-bit systems

open
nobody
None
5
2010-01-07
2010-01-07
Alexandros Couloumbis
No

According to this thread: https://sourceforge.net/projects/ipaudit/forums/forum/59302/topic/1570947

In the ParseNetRange() function, the constant ~0 is used, but the value of this depends on the processor precision.

The solution is simple. In ParseNetRange(), replace the line

$mask = 0; ($mask = ~0 >> $2) unless($2 > 31);

with this

$mask = 2**(32-$2) - 1;

here is the relative patch

Discussion

  • Alexandros Couloumbis

    Alexandros Couloumbis - 2010-01-07
     
    64bit-Makereport30.patch
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    1320 Columbia Street Suite 310
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2026 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
MongoDB Logo MongoDB