Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Sat Apr 20, 2024 12:02 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
PostPosted: Thu Aug 24, 2006 10:12 pm 
Offline
Newbie

Joined: Tue Jul 11, 2006 6:24 pm
Posts: 16
I use the 10.0.0.0/23 netblock here for our computers, and it shows up as 010.000.000.001 everywhere in OA. This looks really confusing, is it possible to change this?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Aug 24, 2006 10:29 pm 
Offline
Moderator

Joined: Sun Aug 06, 2006 1:13 am
Posts: 362
Location: Germany
If we would do this, we get problems with sorting. 10.0.100.1 would show before 10.0.2.1.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Aug 24, 2006 10:39 pm 
Offline
Moderator
User avatar

Joined: Tue Jan 25, 2005 3:09 am
Posts: 2140
Location: Scotland
[quote="matze"]If we would do this, we get problems with sorting. 10.0.100.1 would show before 10.0.2.1.


It would be a problem but we could select on the padded IP, and display it as an unpadded one.

When sorting user input, however we would need to pad the user input, sort, and then display the unpadded version of the sorted field. Its "do-able" but might be a problem to code the view, what do you think matze?

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Aug 24, 2006 11:35 pm 
Offline
Moderator

Joined: Sun Aug 06, 2006 1:13 am
Posts: 362
Location: Germany
Actually, we had a special-field-converting at display. If we do the changes, we had to add some code to reconvert. This is not easy handable.

I like the long-display. I work with many subnets with different lenght, so I need this for a better overviewin listings.


192.168.1.1
10.157.167.458

OR

192.168.001.001
010.157.167.458


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Sep 18, 2006 11:40 pm 
Offline
Newbie

Joined: Sun Sep 17, 2006 4:43 am
Posts: 15
Hi,

in C/C++ and some other languages you need to convert ips to long to work with them. PHP too has such a function : ip2long and long2ip

http://de.php.net/manual/en/function.ip2long.php

the long representation of an ip is very easy to sort and i dont think it would be so hard to implement. Just convert before storing the ip in the database and convert back to display/export.

mfg
Dennis


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group