Changeset 27163


Ignore:
Timestamp:
2011-06-12T21:27:21+02:00 (5 years ago)
Author:
jow
Message:

[package] 6to4: advertise effective tunnel mtu in RAs

Location:
trunk/package/6to4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/6to4/Makefile

    r27160 r27163  
    11# 
    2 # Copyright (C) 2010 OpenWrt.org 
     2# Copyright (C) 2010-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    99 
    1010PKG_NAME:=6to4 
    11 PKG_VERSION:=4 
     11PKG_VERSION:=5 
    1212PKG_RELEASE:=1 
    1313 
  • trunk/package/6to4/files/6to4.sh

    r27160 r27163  
    3131        local cfgid="$1" 
    3232        local lanif="${2:-lan}" 
     33        local ifmtu="${3:-1280}" 
    3334        local ifsection="" 
    3435 
     
    5657        uci_set_state radvd "$ifsection" AdvSendAdvert     1 
    5758        uci_set_state radvd "$ifsection" MaxRtrAdvInterval 30 
     59        uci_set_state radvd "$ifsection" AdvLinkMTU        "$ifmtu" 
    5860} 
    5961 
     
    204206                                        ip -6 addr add $subnet6 dev $adv_ifname 
    205207 
    206                                         set_6to4_radvd_interface "$sid" "$adv_interface" 
     208                                        set_6to4_radvd_interface "$sid" "$adv_interface" "$mtu" 
    207209                                        set_6to4_radvd_prefix    "$sid" "$adv_interface" \ 
    208210                                                "$wancfg" "$(printf "0:0:0:%x::/64" $adv_subnet)" 
     
    253255                } 
    254256 
    255                 [ "$defaultroute" = "1" ] && { 
    256                         ip -6 route del ::/0 via ::192.88.99.1 dev $link metric 1 
    257                 } 
     257                [ "$defaultroute" = "1" ] && \ 
     258                        ip -6 route del ::/0 via ::192.88.99.1 dev $link 
    258259 
    259260                ip addr del $local6 dev $link 
Note: See TracChangeset for help on using the changeset viewer.