summaryrefslogtreecommitdiffstats
path: root/lib/network/connection/xdsl.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/network/connection/xdsl.pm')
-rw-r--r--lib/network/connection/xdsl.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/network/connection/xdsl.pm b/lib/network/connection/xdsl.pm
index 7c88dff..458619c 100644
--- a/lib/network/connection/xdsl.pm
+++ b/lib/network/connection/xdsl.pm
@@ -34,11 +34,13 @@ sub uses_atm_arp {
my ($self) = @_;
$self->{device}{xdsl_type} eq 'usb' && !$self->uses_ppp;
}
+sub get_atm_arp_interface { "atm0" }
sub uses_atm_bridging {
my ($self) = @_;
$self->{device}{xdsl_type} eq 'usb' && member($self->{protocol}, qw(pppoe));
}
+sub get_atm_bridging_interface { "nas0" }
my %protocol_settings = (
pppoa => {
@@ -316,14 +318,14 @@ sub build_ifcfg_settings {
if ($self->uses_atm_arp) {
#- use ATMARP with the atm0 interface
put_in_hash({
- DEVICE => "atm0",
+ DEVICE => $self->get_atm_arp_interface,
ATM_ADDR => join('.', @{$self->{access}{peer}}{qw(vpi vci)}),
MII_NOT_SUPPORTED => "yes",
}, $settings);
}
if ($self->uses_atm_bridging) {
put_in_hash({
- ATM_DEVICE => "nas0",
+ ATM_DEVICE => $self->get_atm_bridging_interface,
ATM_ADDR => join('.', @{$self->{access}{peer}}{qw(vpi vci)}),
}, $settings);
}