diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-08-18 18:12:08 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-08-18 18:12:08 +0000 |
commit | e08093a42beca3e38859cfeea926207cdf9f478f (patch) | |
tree | 061e6f0b3772b3e01107098d0536f000f303901d /perl-install/network | |
parent | a3143e18f55267d29c45d3c594f7fe7ce168d4d4 (diff) | |
download | drakx-backup-do-not-use-e08093a42beca3e38859cfeea926207cdf9f478f.tar drakx-backup-do-not-use-e08093a42beca3e38859cfeea926207cdf9f478f.tar.gz drakx-backup-do-not-use-e08093a42beca3e38859cfeea926207cdf9f478f.tar.bz2 drakx-backup-do-not-use-e08093a42beca3e38859cfeea926207cdf9f478f.tar.xz drakx-backup-do-not-use-e08093a42beca3e38859cfeea926207cdf9f478f.zip |
add get_protocol
Diffstat (limited to 'perl-install/network')
-rw-r--r-- | perl-install/network/ifw.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/network/ifw.pm b/perl-install/network/ifw.pm index 99ca87944..5be73cc59 100644 --- a/perl-install/network/ifw.pm +++ b/perl-install/network/ifw.pm @@ -83,6 +83,11 @@ sub get_service { getservbyport($port, undef) || $port; } +sub get_protocol { + my ($protocol) = @_; + getprotobynumber($protocol) || $protocol; +} + sub get_ip_address { my ($addr) = @_; inet_ntoa(pack('L', $addr)); |