Changeset 385
- Timestamp:
- Apr 24, 2019, 4:26:08 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ddt/ddt
r368 r385 1 1 #!/usr/bin/perl 2 2 # 3 # Copyright (C) 2006-201 8, LEGI UMR 5519 / CNRS UGA G-INP, Grenoble, France3 # Copyright (C) 2006-2019, LEGI UMR 5519 / CNRS UGA G-INP, Grenoble, France 4 4 # License GNU GPL version 2 or later and Perl equivalent 5 5 # … … 21 21 use strict; 22 22 #use warnings; 23 use version; our $VERSION = version->declare('0.12. 0');23 use version; our $VERSION = version->declare('0.12.1'); 24 24 25 25 use Getopt::Long qw(GetOptions); … … 361 361 my $mac_address = shift; 362 362 363 # D07E-28D1-7AB8 or d07e28-d17ab8 363 # D07E-28D1-7AB8 or d07e28-d17ab8 or D07E.28D1.7AB8 364 364 if ($mac_address =~ m{^ (?: [0-9A-Fa-f]{4} -){2} [0-9A-Fa-f]{4} $}xms 365 365 or $mac_address =~ m{^ [0-9A-Fa-f]{6} - [0-9A-Fa-f]{6} $}xms) { 366 366 $mac_address =~ s/-//g; 367 return join q{:}, unpack('(A2)*', uc($mac_address)); 368 } 369 370 if ($mac_address =~ m{^ (?: [0-9A-Fa-f]{4} \.){2} [0-9A-Fa-f]{4} $}xms) { 371 $mac_address =~ s/\.//g; 367 372 return join q{:}, unpack('(A2)*', uc($mac_address)); 368 373 } … … 3309 3314 print <<'END'; 3310 3315 ddt - management of computer names and IP addresses 3311 Copyright (C) 2006-201 8, LEGI UMR 5519 / CNRS UGA G-INP, Grenoble, France3316 Copyright (C) 2006-2019, LEGI UMR 5519 / CNRS UGA G-INP, Grenoble, France 3312 3317 Main author Gabriel Moreau <Gabriel.Moreau(A)univ-grenoble-alpes.fr> 3313 3318 License GNU GPL version 2 or later and Perl equivalent … … 3656 3661 License GNU GPL version 2 or later and Perl equivalent 3657 3662 3658 Copyright (C) 2006-201 8, LEGI UMR 5519 / CNRS UGA G-INP, Grenoble, France3663 Copyright (C) 2006-2019, LEGI UMR 5519 / CNRS UGA G-INP, Grenoble, France
Note: See TracChangeset
for help on using the changeset viewer.