summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-01-12 14:35:47 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-01-12 14:35:47 -0800
commit99ea2c9a2bfc9f4af221ca735d26410dae3b2823 (patch)
tree92dcac75ffe62d321ab46d08470720a4e6b9e478
parent0f7c234084a7912ced791514192e7d57387f23a1 (diff)
downloadvyatta-cfg-99ea2c9a2bfc9f4af221ca735d26410dae3b2823.tar.gz
vyatta-cfg-99ea2c9a2bfc9f4af221ca735d26410dae3b2823.zip
Remove unused functions
htonl and if_nametoindex are not used.
-rwxr-xr-xscripts/vyatta-interfaces.pl16
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) = @_;