summaryrefslogtreecommitdiffstats
path: root/lib/network/connection
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-11-24 16:16:47 +0000
committerOlivier Blin <oblin@mandriva.com>2008-11-24 16:16:47 +0000
commit4b8f97020f99eb3b92bb8c9571ca6032949b84e8 (patch)
tree8f09018cbc967286317d3b857e29cb0c739dc0f0 /lib/network/connection
parent9b3d6e63c0f6a11dda068fdbc8063a787e04d18c (diff)
downloaddrakx-net-4b8f97020f99eb3b92bb8c9571ca6032949b84e8.tar
drakx-net-4b8f97020f99eb3b92bb8c9571ca6032949b84e8.tar.gz
drakx-net-4b8f97020f99eb3b92bb8c9571ca6032949b84e8.tar.bz2
drakx-net-4b8f97020f99eb3b92bb8c9571ca6032949b84e8.tar.xz
drakx-net-4b8f97020f99eb3b92bb8c9571ca6032949b84e8.zip
extract uses_atmarp
Diffstat (limited to 'lib/network/connection')
-rw-r--r--lib/network/connection/xdsl.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/network/connection/xdsl.pm b/lib/network/connection/xdsl.pm
index cf7e74e..1f3da6f 100644
--- a/lib/network/connection/xdsl.pm
+++ b/lib/network/connection/xdsl.pm
@@ -30,6 +30,11 @@ sub uses_ppp {
!member($self->{protocol}, @non_ppp_protocols);
}
+sub uses_atmarp {
+ my ($self) = @_;
+ $self->{device}{xdsl_type} eq 'usb' && !$self->uses_ppp;
+}
+
my %protocol_settings = (
pppoa => {
plugin => sub {
@@ -303,7 +308,7 @@ sub build_ifcfg_settings {
my $settings = {
if_($self->uses_ppp, TYPE => 'ADSL'),
};
- if ($self->{device}{xdsl_type} eq 'usb' && !$self->uses_ppp) {
+ if ($self->uses_atmarp) {
#- use ATMARP with the atm0 interface
put_in_hash({
DEVICE => "atm0",