/[pxelator]/lib/PXElator/t/dhcpd.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /lib/PXElator/t/dhcpd.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 244 - (show annotations)
Mon Aug 17 13:27:18 2009 UTC (14 years, 8 months ago) by dpavlin
File MIME type: application/x-troff
File size: 327 byte(s)
check if client allready have ip address and if it does
don't respond to it unless it's in our ip range, but
record information for later review

1 #!/usr/bin/perl
2
3 use warnings;
4 use strict;
5 use autodie;
6
7 use Test::More tests => 6;
8
9 use_ok 'dhcpd';
10
11 ok( ! $dhcpd::transaction, 'transaction' );
12
13 ok( dhcpd::in_our_range($_), "in_our_range $_" ) foreach ( qw/0.0.0.0 172.16.10.1/ );
14 ok( ! dhcpd::in_our_range($_), "! in_our_range $_" ) foreach ( qw/10.60.0.42 161.53.120.3/ );

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26