> I have one small doubt about lexicographic ordering. Suppose we have one
> table whose index is IPADDRESS?

Compare the individual numerical octets in the obvious manner.

> For example the table has following entries:
> a) 10.0.0.1
> b) 10.0.0.2
> c) 10.0.0.123
> d)10.0.0.5

10.0.0.1  <  10.0.0.2  <  10.0.0.5  < 10.0.0.123

and extending this to further comparisons:

10.0.0.123  <  10.0.1.0  < 10.0.1.255 < 10.1.0.0 < 11.0.0.0

Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to