testsock.pl revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
#
# Copyright (C) 2000, 2001, 2004, 2007, 2010-2013, 2016 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# $Id: testsock.pl,v 1.20 2011/03/01 23:48:05 tbox Exp $
# Test whether the interfaces on 10.53.0.* are up.
require 5.001;
use Socket;
my $port = 0;
my $id = 0;
"i=i" => \$id);
my @ids;
if ($id != 0) {
} else {
}
or die "$0: socket: $!\n";
or die sprintf("$0: bind(%s, %d): $!\n",
close(SOCK);
}