summaryrefslogtreecommitdiff
path: root/tests/DHCPv6/030-request-noclientid.pl
diff options
context:
space:
mode:
authorTomek Mrugalski <tomek@isc.org>2022-01-19 20:14:16 +0100
committerTomek Mrugalski <tomek@isc.org>2022-01-20 12:04:28 +0100
commitf6b8f48d1665c4487dedbcfa4dca435a0d67ddeb (patch)
tree19926f31f56890bc8c7f5d3bc5b2e2c16b96794e /tests/DHCPv6/030-request-noclientid.pl
parent429a56d73c0f9f2edf400fd6313850a3ce4fd809 (diff)
downloadisc-dhcp-f6b8f48d1665c4487dedbcfa4dca435a0d67ddeb.tar.gz
[#189] Whitespace fixes in opened files
Diffstat (limited to 'tests/DHCPv6/030-request-noclientid.pl')
-rw-r--r--tests/DHCPv6/030-request-noclientid.pl21
1 files changed, 10 insertions, 11 deletions
diff --git a/tests/DHCPv6/030-request-noclientid.pl b/tests/DHCPv6/030-request-noclientid.pl
index 75066d5d..23d72761 100644
--- a/tests/DHCPv6/030-request-noclientid.pl
+++ b/tests/DHCPv6/030-request-noclientid.pl
@@ -91,7 +91,7 @@ my @docsis_oro = ( $DOCSIS_OPT_TFTP_SERVERS );
$vsio .= pack("nnC*", $DOCSIS_OPT_ORO, 0+@docsis_oro, @docsis_oro);
# TLV5 data: CMTS DOCSIS version number 3.0 (required by DOCSIS)
-my $tlv5_data = "\x01\x02\x03\x0";
+my $tlv5_data = "\x01\x02\x03\x0";
$vsio .= pack("nn", $DOCSIS_OPT_TLV5, length($tlv5_data)) . $tlv5_data;
# DOCSIS Device (required by DOCSIS)
@@ -126,10 +126,10 @@ do {
socket(SOCK, PF_INET6, SOCK_DGRAM, getprotobyname('udp')) || die;
my $addr = inet_pton(AF_INET6, $All_DHCP_Servers);
my $packet = $msg->packet();
- my $send_ret = send(SOCK, $packet, 0,
+ my $send_ret = send(SOCK, $packet, 0,
pack_sockaddr_in6($server_port, $addr));
if (not defined($send_ret)) {
- printf STDERR
+ printf STDERR
"Error \%d sending DHCPv6 Solicit message;\n\%s\n",
0+$ERRNO, $ERRNO;
exit(1);
@@ -150,7 +150,7 @@ do {
}
my $rt_end_time = time() + $RT;
- if (defined($mrd_end_time) && ($mrd_end_time > $rt_end_time)) {
+ if (defined($mrd_end_time) && ($mrd_end_time > $rt_end_time)) {
$rt_end_time = $mrd_end_time;
}
@@ -167,11 +167,11 @@ do {
if (@ready) {
my $reply;
my $recv_ret;
-
+
$recv_ret = recv(SOCK, $reply, 1500, 0);
if (not defined $recv_ret) {
- printf STDERR
- "Error \%d receiving DHCPv6 " .
+ printf STDERR
+ "Error \%d receiving DHCPv6 " .
"message;\n\%s\n",
0+$ERRNO, $ERRNO;
exit(1);
@@ -185,16 +185,16 @@ do {
}
}
-} until ($reply_msg ||
+} until ($reply_msg ||
(($MRC != 0) && ($count > $MRC)) ||
(defined($mrd_end_time) && ($mrd_end_time > time())));
unless ($reply_msg) {
if (($MRC != 0) && ($count >= $MRC)) {
- print STDERR
+ print STDERR
"No reply after maximum retransmission count.\n";
} else {
- print STDERR
+ print STDERR
"No reply after maximum retransmission duration.\n";
}
}
@@ -209,4 +209,3 @@ if ($reply_msg && ($reply_msg->{msg_type} == $MSG_REPLY)) {
#print Dumper($msg->packet()), "\n";
#
#print "packet length: ", length($msg->packet()), "\n";
-