aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-12-05 12:17:09 +0000
committerSteven Barth <steven@midlink.org>2013-12-05 12:17:09 +0000
commitd2e17d996f19df2b1ef1e4d0290236c17ec3970f (patch)
treed5b047a608725a5b58b9c3104f048e796aea76f2
parenteef37ce291c8a70887ea85f3045a85294b354d9d (diff)
downloadmaster-187ad058-d2e17d996f19df2b1ef1e4d0290236c17ec3970f.tar.gz
master-187ad058-d2e17d996f19df2b1ef1e4d0290236c17ec3970f.tar.bz2
master-187ad058-d2e17d996f19df2b1ef1e4d0290236c17ec3970f.zip
odhcpd/6c: Add config menu for prefix class ext.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38996 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/network/ipv6/odhcp6c/Makefile11
-rw-r--r--package/network/services/odhcpd/Makefile11
2 files changed, 22 insertions, 0 deletions
diff --git a/package/network/ipv6/odhcp6c/Makefile b/package/network/ipv6/odhcp6c/Makefile
index 845dc579e9..bd794dc864 100644
--- a/package/network/ipv6/odhcp6c/Makefile
+++ b/package/network/ipv6/odhcp6c/Makefile
@@ -21,6 +21,10 @@ PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
+ifneq ($(CONFIG_PACKAGE_odhcp6c_ext_prefix_class),0)
+ CMAKE_OPTIONS += -DEXT_PREFIX_CLASS=$(CONFIG_PACKAGE_odhcp6c_ext_prefix_class)
+endif
+
define Package/odhcp6c
SECTION:=net
CATEGORY:=Network
@@ -28,6 +32,13 @@ define Package/odhcp6c
DEPENDS:=+kmod-ipv6
endef
+define Package/odhcp6c/config
+ config PACKAGE_odhcp6c_ext_prefix_class
+ int "Prefix Class Extension ID (0 = disabled)"
+ depends on PACKAGE_odhcp6c
+ default 0
+endef
+
define Package/odhcp6c/install
$(INSTALL_DIR) $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/odhcp6c $(1)/usr/sbin/
diff --git a/package/network/services/odhcpd/Makefile b/package/network/services/odhcpd/Makefile
index e660600fee..c4f76cbd62 100644
--- a/package/network/services/odhcpd/Makefile
+++ b/package/network/services/odhcpd/Makefile
@@ -22,6 +22,10 @@ PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
+ifneq ($(CONFIG_PACKAGE_odhcpd_ext_prefix_class),0)
+ CMAKE_OPTIONS += -DEXT_PREFIX_CLASS=$(CONFIG_PACKAGE_odhcpd_ext_prefix_class)
+endif
+
define Package/odhcpd
SECTION:=net
CATEGORY:=Network
@@ -29,6 +33,13 @@ define Package/odhcpd
DEPENDS:=+libubox +libuci +libubus
endef
+define Package/odhcpd/config
+ config PACKAGE_odhcpd_ext_prefix_class
+ int "Prefix Class Extension ID (0 = disabled)"
+ depends on PACKAGE_odhcpd
+ default 0
+endef
+
define Package/odhcpd/description
odhcpd is a daemon for serving and relaying IP management protocols to
configure clients and downstream routers. It tries to follow the RFC 6204