Changeset 35173


Ignore:
Timestamp:
2013-01-15T14:08:14+01:00 (5 years ago)
Author:
cyrus
Message:

6rd: add support for native IPv6 prefix handling

Location:
trunk/package/network/ipv6/6rd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/network/ipv6/6rd/Makefile

    r32432 r35173  
    99 
    1010PKG_NAME:=6rd 
    11 PKG_VERSION:=2 
     11PKG_VERSION:=3 
    1212PKG_RELEASE:=1 
    1313 
  • trunk/package/network/ipv6/6rd/files/6rd.sh

    r33123 r35173  
    4343        local ip6addr="${ip6subnet%%::*}::1" 
    4444 
     45        # Determine the IPv6 prefix 
     46        local ip6lanprefix="$ip6subnet/$(($ip6prefixlen + 32 - $ip4prefixlen))" 
     47 
    4548        proto_init_update "$link" 1 
    4649        proto_add_ipv6_address "$ip6addr" "$ip6prefixlen" 
     50        proto_add_ipv6_prefix "$ip6lanprefix" 
    4751        proto_add_ipv6_route "::" 0 "::$peeraddr" 
    4852 
Note: See TracChangeset for help on using the changeset viewer.