diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-01-12 14:35:47 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-01-12 14:35:47 -0800 |
commit | 99ea2c9a2bfc9f4af221ca735d26410dae3b2823 (patch) | |
tree | 92dcac75ffe62d321ab46d08470720a4e6b9e478 | |
parent | 0f7c234084a7912ced791514192e7d57387f23a1 (diff) | |
download | vyatta-cfg-99ea2c9a2bfc9f4af221ca735d26410dae3b2823.tar.gz vyatta-cfg-99ea2c9a2bfc9f4af221ca735d26410dae3b2823.zip |
Remove unused functions
htonl and if_nametoindex are not used.
-rwxr-xr-x | scripts/vyatta-interfaces.pl | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl index 31b7d8d..a39cde4 100755 --- a/scripts/vyatta-interfaces.pl +++ b/scripts/vyatta-interfaces.pl @@ -295,22 +295,6 @@ sub update_eth_addrs { exit 1; } -sub if_nametoindex { - my ($intf) = @_; - - open my $sysfs, "<", "/sys/class/net/$intf/ifindex" - || die "Unknown interface $intf"; - my $ifindex = <$sysfs>; - close($sysfs) or die "read sysfs error\n"; - chomp $ifindex; - - return $ifindex; -} - -sub htonl { - return unpack('L',pack('N',shift)); -} - sub delete_eth_addrs { my ($addr, $intf) = @_; |