-# $OpenBSD: Client.pm,v 1.15 2021/03/09 15:16:28 bluhm Exp $
+# $OpenBSD: Client.pm,v 1.16 2021/12/22 15:14:13 bluhm Exp $
-# Copyright (c) 2010-2020 Alexander Bluhm <bluhm@openbsd.org>
+# Copyright (c) 2010-2021 Alexander Bluhm <bluhm@openbsd.org>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
use Socket;
use Socket6;
use IO::Socket;
-use IO::Socket::INET6;
use IO::Socket::SSL;
use Sys::Syslog qw(:standard :extended :macros);
} else {
$SSL_ERROR = "";
my $iosocket = $self->{connectproto} eq "tls" ?
- "IO::Socket::SSL" : "IO::Socket::INET6";
+ "IO::Socket::SSL" : "IO::Socket::IP";
my $proto = $self->{connectproto};
$proto = "tcp" if $proto eq "tls";
$cs = $iosocket->new(
-# $OpenBSD: Makefile,v 1.33 2021/12/02 15:56:15 kn Exp $
+# $OpenBSD: Makefile,v 1.34 2021/12/22 15:14:13 bluhm Exp $
# The following ports must be installed for the regression tests:
-# p5-IO-Socket-INET6 object interface for AF_INET and AF_INET6 domain sockets
# p5-Socket6 Perl defines relating to AF_INET6 sockets
# p5-IO-Socket-SSL perl interface to SSL sockets
# p5-BSD-Resource BSD process resource limit and priority functions
# are missing print a warning and skip the tests, but do not fail.
PERL_REQUIRE != perl -Mstrict -Mwarnings -e ' \
- eval { require IO::Socket::INET6 } or print $@; \
eval { require Socket6 } or print $@; \
eval { require IO::Socket::SSL } or print $@; \
eval { require BSD::Resource } or print $@; \
.if ! empty (PERL_REQUIRE)
regress:
@echo "${PERL_REQUIRE}"
- @echo 'run "pkg_add p5-IO-Socket-INET6 p5-Socket6 p5-IO-Socket-SSL p5-BSD-Reource"'
+ @echo 'run "pkg_add p5-Socket6 p5-IO-Socket-SSL p5-BSD-Reource"'
@echo SKIPPED
.endif
-# $OpenBSD: Server.pm,v 1.13 2020/10/16 22:46:45 bluhm Exp $
+# $OpenBSD: Server.pm,v 1.14 2021/12/22 15:14:13 bluhm Exp $
-# Copyright (c) 2010-2020 Alexander Bluhm <bluhm@openbsd.org>
+# Copyright (c) 2010-2021 Alexander Bluhm <bluhm@openbsd.org>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
use Socket;
use Socket6;
use IO::Socket;
-use IO::Socket::INET6;
use IO::Socket::SSL;
sub new {
my $self = shift;
$SSL_ERROR = "";
my $iosocket = $self->{listenproto} eq "tls" ?
- "IO::Socket::SSL" : "IO::Socket::INET6";
+ "IO::Socket::SSL" : "IO::Socket::IP";
my $proto = $self->{listenproto};
$proto = "tcp" if $proto eq "tls";
my $ls = $iosocket->new(
use strict;
use warnings;
-use IO::Socket::INET6;
our %args = (
client => {
$s[0] = \*STDOUT;
# open additional connections until syslogd deferres
for (my $i = 1; $i <= 30; $i++) {
- $s[$i] = IO::Socket::INET6->new(
+ $s[$i] = IO::Socket::IP->new(
Domain => AF_INET,
Proto => "tcp",
PeerAddr => "127.0.0.1",
client => {
func => sub {
my $self = shift;
- IO::Socket::INET6->new(
+ IO::Socket::IP->new(
Domain => AF_INET,
Proto => "tcp",
PeerAddr => "127.0.0.1",
client => {
func => sub {
my $self = shift;
- IO::Socket::INET6->new(
+ IO::Socket::IP->new(
Domain => AF_INET,
Proto => "tcp",
PeerAddr => "127.0.0.1",
client => {
func => sub {
my $self = shift;
- IO::Socket::INET6->new(
+ IO::Socket::IP->new(
Domain => AF_INET,
Proto => "tcp",
PeerAddr => "127.0.0.1",
client => {
func => sub {
my $self = shift;
- IO::Socket::INET6->new(
+ IO::Socket::IP->new(
Domain => AF_INET,
Proto => "tcp",
PeerAddr => "127.0.0.1",
-# $OpenBSD: funcs.pl,v 1.38 2020/11/06 03:26:18 bluhm Exp $
+# $OpenBSD: funcs.pl,v 1.39 2021/12/22 15:14:13 bluhm Exp $
-# Copyright (c) 2010-2015 Alexander Bluhm <bluhm@openbsd.org>
+# Copyright (c) 2010-2021 Alexander Bluhm <bluhm@openbsd.org>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
use Sys::Syslog qw(:standard :extended :macros);
use Time::HiRes 'sleep';
use IO::Socket;
-use IO::Socket::INET6;
use IO::Socket::SSL;
my $firstlog = "syslogd regress test first message";
my @sockets = (1..$num);
foreach my $s (@sockets) {
- $s = IO::Socket::INET6->new(
+ $s = IO::Socket::IP->new(
Domain => $domain,
LocalAddr => $addr,
Proto => $proto,