From: Peter Valian (valianp@southwestern.edu)
Date: Mon Oct 23 2000 - 23:50:53 CDT
my bad...the parser bryan included in the email should work with all
versions of the leases file.
-p
On Mon, 23 Oct 2000, Bryan Logan wrote:
> Date: Mon, 23 Oct 2000 16:32:52 -0500 (CDT)
> From: Bryan Logan <blogan@cs.und.edu>
> To: valianp@southwestern.edu
> Subject: Suggestions for NetReg
>
> I worked with NetReg and I found a bug. With the line:
>
> ($TRASH, $TRASH, $MAC) = split / +|\;/;
>
> in sub get_host_info. $MAC doesn't have the correct value (it had
> "ETHERNET"). If I threw in another $TRASH, it'd work. However, here's a
> regex that will extract a MAC address regardless of what the leases file
> looks like.
>
> $line = ' hardware ethernet 00:01:02:38:01:0b;';
> $line =~ /([0-9,a-f,A-F][0-9,a-f,A-F]):
> ([0-9,a-f,A-F][0-9,a-f,A-F]):
> ([0-9,a-f,A-F][0-9,a-f,A-F]):
> ([0-9,a-f,A-F][0-9,a-f,A-F]):
> ([0-9,a-f,A-F][0-9,a-f,A-F]):
> ([0-9,a-f,A-F][0-9,a-f,A-F])/x;
> print uc("$1:$2:$3:$4:$5:$6"), "\n";
>
> Other than that, it's been working good. Another suggestion I have is to
> maybe dish out 10.x.x.x address if possible, since you wouldn't have to
> reserve a block of real IP's specifically for registering.
>
> --------
> Bryan Logan
> blogan@cs.und.edu
> http://www.cs.und.edu/~blogan/
>
>
**********************************************************************
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
**********************************************************************
This archive was generated by hypermail 2.1.4 : Thu Aug 12 2004 - 12:01:34 CDT