Following patch allows use of :
my $sock = IO::Socket::INET->new(Proto => 'icmp');
To create an ICMP protocol socket, as use for traditional 'ping'.
On UNIX at least only super-user can do this.
p5p-msgid:
199707041240.NAA21484@pluto.tiuk.ti.com
my %socket_type = ( tcp => SOCK_STREAM,
udp => SOCK_DGRAM,
+ icmp => SOCK_RAW,
);
=head2 IO::Socket::INET
}
else {
return _error($fh,'Cannot determine remote port')
- unless($rport || $type == SOCK_DGRAM);
+ unless($rport || $type == SOCK_DGRAM || $type == SOCK_RAW);
if($type == SOCK_STREAM || defined $raddr) {
return _error($fh,'Bad peer address')