Changeset 36654


Ignore:
Timestamp:
2013-05-17T16:44:07+02:00 (5 years ago)
Author:
cyrus
Message:

6relayd: Add stateful DHCPv6-support (IA_NA)

  • Add management_level option (0: set O-flag, >=1: set M-flag)
  • Add support for static DHCPv6-leases
  • Various fixes for DHCPv6-PD
Location:
trunk/package/network/ipv6/6relayd
Files:
1 added
2 edited

Legend:

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

    r36634 r36654  
    99 
    1010PKG_NAME:=6relayd 
    11 PKG_VERSION:=2013-05-13 
     11PKG_VERSION:=2013-05-17 
    1212PKG_RELEASE=$(PKG_SOURCE_VERSION) 
    1313 
     
    1616PKG_SOURCE_URL:=git://github.com/sbyx/6relayd.git 
    1717PKG_SOURCE_PROTO:=git 
    18 PKG_SOURCE_VERSION:=29454ff5fb3763fb61a672860de9dde62799f25b 
     18PKG_SOURCE_VERSION:=24aada7911a50c5fdb3517679095e54a581950aa 
    1919 
    2020PKG_MAINTAINER:=Steven Barth <steven@midlink.org> 
     
    4646        $(INSTALL_DIR) $(1)/usr/sbin/ 
    4747        $(INSTALL_BIN) $(PKG_BUILD_DIR)/6relayd $(1)/usr/sbin/ 
     48        $(INSTALL_BIN) ./files/6relayd-update $(1)/usr/sbin/ 
    4849        $(INSTALL_DIR) $(1)/etc/hotplug.d/iface 
    4950        $(INSTALL_DATA) ./files/6relayd.hotplug $(1)/etc/hotplug.d/iface/30-6relay 
  • trunk/package/network/ipv6/6relayd/files/6relayd.init

    r36381 r36654  
    22# Copyright (c) 2011-2012 OpenWrt.org 
    33START=80 
     4args="" 
     5 
     6add_static_lease() { 
     7        local cfg="$1" 
     8 
     9        local duid id 
     10        config_get duid "$cfg" duid 
     11        config_get id "$cfg" id 
     12 
     13        [ -n "$duid" -a -n "$id" ] && append args "-a$duid:$id" 
     14 
     15} 
    416 
    517start_6relayd() { 
    618        local cfg="$1" 
    719        local mode="$2" 
    8         local args="" 
     20        args="-l/tmp/hosts/6relayd,/usr/sbin/6relayd-update" 
    921 
    1022        SERVICE_DAEMONIZE=1 
     
    8092        [ "$compat_ula" -eq 1 ] && append args "-c" 
    8193 
     94        local management_level 
     95        config_get management_level "$cfg" management_level 
     96        [ -n "$management_level" ] && append args "-m$management_level" 
     97 
     98        config_foreach add_static_lease lease 
     99 
    82100        [ "$ndp" = "relay" ] && append args "-N -s" 
    83101        [ "$rd" = "relay" ] && append args "-Rrelay" 
Note: See TracChangeset for help on using the changeset viewer.