diff options
author | John Southworth <john.southworth@vyatta.com> | 2012-05-10 18:21:26 -0700 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2012-05-10 18:21:26 -0700 |
commit | bf4eb6345025620395f3c953c1d171aab6987e18 (patch) | |
tree | 07984d4af65d74db02ed947385ed31a744cfffb1 | |
parent | ec497dc1a54c88784b380200508eba6a85f4cb97 (diff) | |
download | vyatta-cfg-bf4eb6345025620395f3c953c1d171aab6987e18.tar.gz vyatta-cfg-bf4eb6345025620395f3c953c1d171aab6987e18.zip |
Fix variable use in last commit
-rw-r--r-- | lib/Vyatta/ioctl.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Vyatta/ioctl.pm b/lib/Vyatta/ioctl.pm index af72d37..b237854 100644 --- a/lib/Vyatta/ioctl.pm +++ b/lib/Vyatta/ioctl.pm @@ -38,7 +38,7 @@ sub get_terminal_size { #Do SIOCGIFFLAGS ioctl in perl sub get_interface_flags { - my $self = shift; + my $name = shift; my $SIOCGIFFLAGS = &SIOCGIFFLAGS; die "SIOCGIFFLAGS not found" @@ -47,7 +47,7 @@ sub get_interface_flags { socket (my $sock, AF_INET, SOCK_DGRAM, 0) or die "open UDP socket failed: $!"; - my $ifreq = pack('a16', $self->{name}); + my $ifreq = pack('a16', $name); ioctl($sock, $SIOCGIFFLAGS, $ifreq) or return; #undef |