Re: [LEDE-DEV] [PATCH] odhcpd: change ignore interface tag from ignore to ignore6

2018-04-13 Thread Stijn Tintel
On 12-04-18 16:12, Antonio Silverio wrote:
> There are network setup where it would be required to turn off dhcpv4
> and have dhcpv6 (and all the address autoconfiguration) enabled
> An example is a full static ipv4 dual stack network, also an ipv4
> relayed bridge with ipv6 relay. Having the tag "ignore" used by both
> dnsmasq and odhcpd as interface ignore tag prevents the configuration
> of such networks
>
NAK. See https://git.openwrt.org/08a93676.

Stijn

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


[LEDE-DEV] [PATCH] odhcpd: change ignore interface tag from ignore to ignore6

2018-04-12 Thread Antonio Silverio
There are network setup where it would be required to turn off dhcpv4
and have dhcpv6 (and all the address autoconfiguration) enabled
An example is a full static ipv4 dual stack network, also an ipv4
relayed bridge with ipv6 relay. Having the tag "ignore" used by both
dnsmasq and odhcpd as interface ignore tag prevents the configuration
of such networks

Signed-off-by: Antonio Silverio 
---
 README   | 2 +-
 src/config.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/README b/README
index ff12e86..eb6054d 100644
--- a/README
+++ b/README
@@ -70,7 +70,7 @@ OptionTypeDefault 
Description
 interface  string logical OpenWrt interface
 ifname string   physical network interface
 networkid  string  same as ifname  compat. alias for ifname
-ignore bool0   ignore this interface
+ignore6bool0   ignore this interface
 master bool0   is a master interface
for relaying
 
diff --git a/src/config.c b/src/config.c
index ef51112..11b1964 100644
--- a/src/config.c
+++ b/src/config.c
@@ -53,7 +53,7 @@ static const struct blobmsg_policy 
iface_attrs[IFACE_ATTR_MAX] = {
[IFACE_ATTR_IFNAME] = { .name = "ifname", .type = BLOBMSG_TYPE_STRING },
[IFACE_ATTR_NETWORKID] = { .name = "networkid", .type = 
BLOBMSG_TYPE_STRING },
[IFACE_ATTR_DYNAMICDHCP] = { .name = "dynamicdhcp", .type = 
BLOBMSG_TYPE_BOOL },
-   [IFACE_ATTR_IGNORE] = { .name = "ignore", .type = BLOBMSG_TYPE_BOOL },
+   [IFACE_ATTR_IGNORE] = { .name = "ignore6", .type = BLOBMSG_TYPE_BOOL },
[IFACE_ATTR_LEASETIME] = { .name = "leasetime", .type = 
BLOBMSG_TYPE_STRING },
[IFACE_ATTR_START] = { .name = "start", .type = BLOBMSG_TYPE_INT32 },
[IFACE_ATTR_LIMIT] = { .name = "limit", .type = BLOBMSG_TYPE_INT32 },
-- 
2.7.4


___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev