summaryrefslogtreecommitdiffstats
path: root/lib/network/connection
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-11-26 16:41:06 +0000
committerOlivier Blin <oblin@mandriva.com>2008-11-26 16:41:06 +0000
commite842d16d12b88c70b1576604db912f2a7c3089ce (patch)
tree482ac19a3be62d1e1f5b68f58b7cd9f4ad1aab07 /lib/network/connection
parent6b4ccc946fe842e70fbaba399215d66e203d7a5d (diff)
downloaddrakx-net-e842d16d12b88c70b1576604db912f2a7c3089ce.tar
drakx-net-e842d16d12b88c70b1576604db912f2a7c3089ce.tar.gz
drakx-net-e842d16d12b88c70b1576604db912f2a7c3089ce.tar.bz2
drakx-net-e842d16d12b88c70b1576604db912f2a7c3089ce.tar.xz
drakx-net-e842d16d12b88c70b1576604db912f2a7c3089ce.zip
use atm bridging interface if needed in pppoe command line
Diffstat (limited to 'lib/network/connection')
-rw-r--r--lib/network/connection/xdsl.pm11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/network/connection/xdsl.pm b/lib/network/connection/xdsl.pm
index 56cd294..7d97f56 100644
--- a/lib/network/connection/xdsl.pm
+++ b/lib/network/connection/xdsl.pm
@@ -42,6 +42,13 @@ sub uses_atm_bridging {
}
sub get_atm_bridging_interface { "nas0" }
+sub get_pppoe_interface {
+ my ($self) = @_;
+ $self->uses_atm_bridging
+ ? $self->get_atm_bridging_interface
+ : $self->network::connection::ethernet::get_interface;
+}
+
my %protocol_settings = (
pppoa => {
plugin => sub {
@@ -52,8 +59,8 @@ my %protocol_settings = (
pppoe => {
pty => sub {
my ($self) = @_;
- my $eth_interface = $self->network::connection::ethernet::get_interface;
- qq("pppoe -m 1412 -I $eth_interface");
+ my $pppoe_interface = $self->get_pppoe_interface;
+ qq("pppoe -m 1412 -I $pppoe_interface");
},
options => [
qw(default-asyncmap noaccomp nobsdcomp novjccomp nodeflate),