RE: NetReg: Different subnet masks

New Message Reply Date view Thread view Subject view Author view Attachment view

From: Steve Hideg (hideg@saintmarys.edu)
Date: Fri Jul 26 2002 - 11:06:56 CDT


At 9:50 AM -0500 7/26/02, Allie M Tate wrote:
>Actually, the uniqueHostname subroutine looks for a unique name using the
>last registered host. It pushes any names starting with the host name in
>question then goes through this array looking for a unique number. It may
>or may not be the highest number. My registrations are all jumbled as
>well. I personally don't have a problem with this. If you are set on
>having the numbers in consecutive order at all times you will have to order
>the array after it is created. This should find any holes in the numbering
>and fill in. But this wouldn't help if you deleted more than one and only
>registered one back - you are left with an empty space. Am I making any
>sense?? If you REALLY REALLY wanted the numbers in order then I guess you
>could rename the host entries in order at any given time. This is all up
>to you. Whatever you can code you can do. I'm just brain-storming.
>

If you're referring to the uniqueHostname subroutine I wrote and sent
to the list in May of last year, it is supposed to use the
lowest-numbered extension it identifies as unique. It starts a
counter at 1 and appends the counter value to the hostname and checks
against all existing hostnames to see if it's unique. If not, it
increments then checks again.

If this code isn't behaving correctly, please let me know and I'll
investigate it.

++Steve

-- 

____________________________________________________________________ Steve Hideg Integrated Technologies Programmer Saint Mary's College, Notre Dame IN <hideg@saintmarys.edu> ____________________________________________________________________ "It is inappropriate to require that a time represented as seconds since the Epoch precisely represent the number of seconds between the referenced time and the Epoch" --IEEE Std 1003.1b-1993 (POSIX) Section B.2.2.2 ********************************************************************** To unsubscribe from this list, send an e-mail message to majordomo@southwestern.edu containing a single line with the words: unsubscribe netreg Send requests for assistance to: owner-netreg@southwestern.edu **********************************************************************


New Message Reply Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.4 : Thu Aug 12 2004 - 12:01:37 CDT