diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-06-26 15:40:03 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-06-26 15:40:03 +0000 |
commit | 089a80ae5549a4e2cdc9a09d1da3f6ad507521d8 (patch) | |
tree | 7a045df3ba639c4eeeb1ee889fb4359a455eb7f8 /package/linux-atm/files | |
parent | f2dde4f5ba51fed03823311f4638b5fc49bb2704 (diff) | |
download | mtk-20170518-089a80ae5549a4e2cdc9a09d1da3f6ad507521d8.zip mtk-20170518-089a80ae5549a4e2cdc9a09d1da3f6ad507521d8.tar.gz mtk-20170518-089a80ae5549a4e2cdc9a09d1da3f6ad507521d8.tar.bz2 |
linux-atm: remove defunct ipoa protocol support
SVN-Revision: 32504
Diffstat (limited to 'package/linux-atm/files')
-rw-r--r-- | package/linux-atm/files/ipoa.sh | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/package/linux-atm/files/ipoa.sh b/package/linux-atm/files/ipoa.sh deleted file mode 100644 index 5d6da1e..0000000 --- a/package/linux-atm/files/ipoa.sh +++ /dev/null @@ -1,34 +0,0 @@ -scan_ipoa() { - config_get ifname "$1" ifname - ipoadev="${ipoadev:-0}" - config_get unit "$1" unit - [ -z "$unit" ] && { - config_set "$1" ifname "atm$ipoadev" - config_set "$1" unit "$ipoadev" - ipoadev="$(($ipoadev + 1))" - } -} - -setup_interface_ipoa() { - local iface="$1" - local config="$2" - - config_get device "$config" device - config_get vpi "$config" vpi - vpi=${vpi:-8} - config_get vci "$config" vci - vci=${vci:-36} - - config_get encaps "$config" encaps - case "$encaps" in - 1|vc) ENCAPS="vc-encaps" ;; - *) ENCAPS="llc-encaps" ;; - esac - - config_get mtu "$cfg" mtu - mtu=${mtu:-1500} - atmarp -c $device - ifconfig $device $ip netmask $mask mtu $mtu up - atmarp -s $gw $vpi.$vci null - route add default gw $gw -} |