diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-11-24 16:38:06 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-11-24 16:38:06 +0000 |
commit | 20181ec5dc73ddfb95c961eb794496fba6023a57 (patch) | |
tree | 65b8ca5208361be1addabff4be970be969d95dd5 /lib | |
parent | d8c6f2780ecc6ed3d89adc3790a2621e9fdd423a (diff) | |
download | drakx-net-20181ec5dc73ddfb95c961eb794496fba6023a57.tar drakx-net-20181ec5dc73ddfb95c961eb794496fba6023a57.tar.gz drakx-net-20181ec5dc73ddfb95c961eb794496fba6023a57.tar.bz2 drakx-net-20181ec5dc73ddfb95c961eb794496fba6023a57.tar.xz drakx-net-20181ec5dc73ddfb95c961eb794496fba6023a57.zip |
add support for ATM bridging (for pppoe over USB modems, #35797)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/network/connection/xdsl.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/network/connection/xdsl.pm b/lib/network/connection/xdsl.pm index f50a9a6..70b3288 100644 --- a/lib/network/connection/xdsl.pm +++ b/lib/network/connection/xdsl.pm @@ -35,6 +35,11 @@ sub uses_atm_arp { $self->{device}{xdsl_type} eq 'usb' && !$self->uses_ppp; } +sub uses_atm_bridging { + my ($self) = @_; + $self->{device}{xdsl_type} eq 'usb' && member($self->{protocol}, qw(pppoe)); +} + my %protocol_settings = ( pppoa => { plugin => sub { @@ -316,6 +321,12 @@ sub build_ifcfg_settings { MII_NOT_SUPPORTED => "yes", }, $settings); } + if ($self->uses_atm_bridging) { + put_in_hash({ + ATM_DEVICE => "nas0", + ATM_ADDR => join('.', @{$self->{access}{peer}}{qw(vpi vci)}), + }, $settings); + } $self->network::connection::build_ifcfg_settings($settings); } |