[OpenWrt-Devel] [PATCH] lantiq: remove deprecated jffs2_nand configuration

2014-06-23 Thread Ben Mulvihill
As far as I am aware, amongst the lantiq boards, jffs2_nand was
only used on the BTHOMEHUBV2B. Ubi-related modifications to the
device tree for that board mean that the resulting jffs2 images
no longer work, and are no longer required anyway. So I suggest
removing the related configuration, which this patch does.

If anyone else is using jffs2_nand on a lantiq target please speak
up!

Incidentally, for a jffs2 rootfs partition concatenated to the
kernel image to be recognised and mounted correctly on nand
this patch or something equivalent is required:
http://patchwork.openwrt.org/patch/5110/
It is marked as accepted in patchwork but doesn't seem to have
been committed. As far as I am concerned it too is deprecated.


Signed-off-by: Ben Mulvihill ben.mulvih...@gmail.com
---

 target/linux/lantiq/image/Makefile |8 
 target/linux/lantiq/xway/target.mk |2 +-
 2 files changed, 1 insertion(+), 9 deletions(-)

diff -uprN a/target/linux/lantiq/image/Makefile 
b/target/linux/lantiq/image/Makefile
--- a/target/linux/lantiq/image/Makefile2014-06-23 08:51:18.489653317 
+0200
+++ b/target/linux/lantiq/image/Makefile2014-06-23 08:55:48.071929917 
+0200
@@ -12,7 +12,6 @@ include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/image.mk
 
 JFFS2_BLOCKSIZE = 64k 128k 256k
-NAND_BLOCKSIZE = 512:16k
 
 LOADER_MAKE := $(NO_TRACE_MAKE) -C lzma-loader KDIR=$(KDIR)
 
@@ -171,13 +170,6 @@ define Image/Build/jffs2-256k
cat $(KDIR)/uImage-$(2)-$(1) $(KDIR)/root.$(1)  
$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image
 endef
 
-define Image/Build/jffs2-nand-512-16k
-   dd if=$(KDIR)/uImage-$(2) of=$(KDIR)/uImage-$(2)-$(1) bs=16k conv=sync
-   $(CP) $(KDIR)/uImage-$(2)-$(1) $(BIN_DIR)/uImage-$(2)-$(1)
-   $(CP) $(KDIR)/root.$(1) $(BIN_DIR)/root-$(2)-$(1)
-   cat $(KDIR)/uImage-$(2)-$(1) $(KDIR)/root.$(1)  
$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image
-endef
-
 define Image/Build/ubifs
 
 ifneq ($($(PROFILE)_UBIFS_OPTS),)
diff -uprN a/target/linux/lantiq/xway/target.mk 
b/target/linux/lantiq/xway/target.mk
--- a/target/linux/lantiq/xway/target.mk2014-06-23 08:51:18.249647729 
+0200
+++ b/target/linux/lantiq/xway/target.mk2014-06-23 08:55:25.663408205 
+0200
@@ -1,7 +1,7 @@
 ARCH:=mips
 SUBTARGET:=xway
 BOARDNAME:=XWAY
-FEATURES:=squashfs atm mips16 jffs2_nand nand ubifs
+FEATURES:=squashfs atm mips16 nand ubifs
 CPU_TYPE:=34kc
 CPU_SUBTYPE:=dsp
 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Telephone support (FXO/FXS) via SLIC on AR9331 ?

2014-06-23 Thread valent.turko...@gmail.com
I have looked mailing list archive, on OpenWrt forums and on wiki for
information how to get support for SLIC (FXO/FXS) PCM telecom
interface that AR9331 has but is not supported currently in OpenWrt.

I have found this wiki page that has some info about SLIC, but I can't
find who the author is:
http://wiki.openwrt.org/toh/evaluation.boards/pb44?s[]=slic

Having telephone support via AR9331 would make a really big difference
for all of us who work on community mesh networks like:
http://freifunk.net/
https://wlan-si.net/en/
http://www.otvorenamreza.org/
http://villagetelco.org/ and many others...

Thank you in advance.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 1/3] [packages] tayga: fix broken ICMP checksum on big-endian machines

2014-06-23 Thread Ondřej Caletka
This patches fixes wrong ICMP checksum of translated packets on
big-endian machines #16715
The patch is authored by upstream author
Nathan Lutchansky lutch...@litech.org
Source of the patch: http://forum.mikrotik.com/viewtopic.php?f=15t=82329

Signed-off-by: Ondrej Caletka ond...@caletka.cz
---
 .../patches/002-bigendian_wrong_checksum.patch | 53 ++
 1 file changed, 53 insertions(+)
 create mode 100644 ipv6/tayga/patches/002-bigendian_wrong_checksum.patch

diff --git a/ipv6/tayga/patches/002-bigendian_wrong_checksum.patch 
b/ipv6/tayga/patches/002-bigendian_wrong_checksum.patch
new file mode 100644
index 000..d8deac3
--- /dev/null
+++ b/ipv6/tayga/patches/002-bigendian_wrong_checksum.patch
@@ -0,0 +1,53 @@
+--- a/nat64.c
 b/nat64.c
+@@ -19,6 +19,11 @@
+ 
+ extern struct config *gcfg;
+ 
++static uint16_t checksum_extend_byte(uint8_t b)
++{
++  return htons(b  8);
++}
++
+ static uint16_t ip_checksum(void *d, int c)
+ {
+   uint32_t sum = 0x;
+@@ -30,7 +35,7 @@ static uint16_t ip_checksum(void *d, int
+   }
+ 
+   if (c)
+-  sum += htons(*((uint8_t *)p)  8);
++  sum += checksum_extend_byte(*((uint8_t *)p));
+ 
+   while (sum  0x)
+   sum = (sum  0x) + (sum  16);
+@@ -180,10 +185,12 @@ static int xlate_payload_4to6(struct pkt
+   cksum = ones_add(p-icmp-cksum, cksum);
+   if (p-icmp-type == 8) {
+   p-icmp-type = 128;
+-  p-icmp-cksum = ones_add(cksum, ~(128 - 8));
++  p-icmp-cksum = ones_add(cksum,
++  ~checksum_extend_byte(128 - 8));
+   } else {
+   p-icmp-type = 129;
+-  p-icmp-cksum = ones_add(cksum, ~(129 - 0));
++  p-icmp-cksum = ones_add(cksum,
++  ~checksum_extend_byte(129 - 0));
+   }
+   return 0;
+   case 17:
+@@ -668,10 +675,12 @@ static int xlate_payload_6to4(struct pkt
+   cksum = ones_add(p-icmp-cksum, cksum);
+   if (p-icmp-type == 128) {
+   p-icmp-type = 8;
+-  p-icmp-cksum = ones_add(cksum, 128 - 8);
++  p-icmp-cksum = ones_add(cksum,
++  checksum_extend_byte(128 - 8));
+   } else {
+   p-icmp-type = 0;
+-  p-icmp-cksum = ones_add(cksum, 129 - 0);
++  p-icmp-cksum = ones_add(cksum,
++  checksum_extend_byte(129 - 0));
+   }
+   return 0;
+   case 17:
-- 
1.8.5.5
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 3/3] [packages] aiccu: integrate with netifd

2014-06-23 Thread Ondřej Caletka
This patch integrates AICCU with netifd. Care was taken not to restart
aiccu without a reason as it triggers alert on SixXS infrastructure.
Example usage:

config interface 'wan6'
option 'proto''aiccu'
option 'username' 'HANDLE-SIXXS/TID'
option 'password' 'Password'
option 'ip6prefix' '2001:db8:aabb::/48' #Delegated subnet
option 'ip6addr' '2001:db8::aaa::2/64' #Optional
option 'verbose' 'true'

Tested with current trunk on TL-WR703N.

Signed-off-by: Ondrej Caletka ond...@caletka.cz
---
 ipv6/aiccu/Makefile   |   5 ++-
 ipv6/aiccu/files/aiccu.sh | 105 ++
 2 files changed, 108 insertions(+), 2 deletions(-)
 create mode 100755 ipv6/aiccu/files/aiccu.sh

diff --git a/ipv6/aiccu/Makefile b/ipv6/aiccu/Makefile
index 0590ad0..121d284 100644
--- a/ipv6/aiccu/Makefile
+++ b/ipv6/aiccu/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=aiccu
 PKG_VERSION:=20070115
-PKG_RELEASE:=10
+PKG_RELEASE:=11
 
 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.sixxs.net/archive/sixxs/aiccu/unix
@@ -44,8 +44,9 @@ define Package/aiccu/conffiles
 endef
 
 define Package/aiccu/install
-   $(INSTALL_DIR) $(1)/usr/sbin
+   $(INSTALL_DIR) $(1)/usr/sbin $(1)/lib/netifd/proto
$(INSTALL_BIN) $(PKG_BUILD_DIR)/unix-console/$(PKG_NAME) $(1)/usr/sbin/
+   $(INSTALL_BIN) ./files/aiccu.sh $(1)/lib/netifd/proto/aiccu.sh
 endef
 
 $(eval $(call BuildPackage,aiccu))
diff --git a/ipv6/aiccu/files/aiccu.sh b/ipv6/aiccu/files/aiccu.sh
new file mode 100755
index 000..76f84b2
--- /dev/null
+++ b/ipv6/aiccu/files/aiccu.sh
@@ -0,0 +1,105 @@
+#!/bin/sh
+# aiccu.sh - AICCU proto
+# Copyright (c) 2014 OpenWrt.org
+
+[ -n $INCLUDE_ONLY ] || {
+. /lib/functions.sh
+. /lib/functions/network.sh
+. ../netifd-proto.sh
+init_proto $@
+}
+
+proto_aiccu_setup() {
+local cfg=$1
+local iface=$2
+local link=aiccu-$cfg
+
+local username password protocol server ip6prefix tunnelid requiretls 
defaultroute nat heartbeat verbose sourcerouting ip6addr
+json_get_vars username password protocol server ip6prefix tunnelid 
requiretls defaultroute nat heartbeat verbose sourcerouting ip6addr
+
+[ -z $username -o -z $password ]  {
+proto_notify_error $cfg MISSING_USERNAME_OR_PASSWORD
+proto_block_restart $cfg
+return
+}
+
+( proto_add_host_dependency $cfg 0.0.0.0 )
+
+   CFGFILE=/var/etc/${link}.conf
+PIDFILE=/var/run/${link}.pid
+mkdir -p /var/run /var/etc
+
+echo username $username  $CFGFILE
+echo password $password  $CFGFILE
+echo ipv6_interface $link$CFGFILE
+[ -n $server ]  echo server $server  $CFGFILE
+[ -n $protocol ]  echo protocol $protocol  $CFGFILE
+[ -n $tunnel_id ]  echo tunnel_id $tunnel_id $CFGFILE
+[ -n $requiretls ]  echo requiretls $requiretls   
$CFGFILE
+[ $nat == 1 ]  echo behindnat true  $CFGFILE
+[ $heartbeat  == 1 ]  echo makebeats true  $CFGFILE
+[ $verbose == 1 ]  echo verbose true  $CFGFILE
+echo defaultroute false  $CFGFILE
+   echo daemonize true  $CFGFILE
+echo pidfile $PIDFILE$CFGFILE
+
+aiccu start $CFGFILE 
+
+[ $? -ne 0 ]  {
+proto_notify_error $cfg AICCU_FAILED_SEE_LOG
+proto_block_restart $cfg
+return
+}
+
+proto_init_update $link 1
+
+   local source=
+   [ $sourcerouting != 0 ]  source=::/128
+[ $defaultroute != 0 ]  proto_add_ipv6_route :: 0
$source
+
+   [ -n $ip6addr ]  {
+   local local6=${ip6addr%%/*}
+   local mask6=${ip6addr##*/}
+   [[ $local6 = $mask6 ]]  mask6=
+   proto_add_ipv6_address $local6 $mask6
+   [ $defaultroute != 0 -a $sourcerouting != 0 ]  
proto_add_ipv6_route :: 0$local6/$mask6
+   }
+
+   [ -n $ip6prefix ]  {
+   proto_add_ipv6_prefix $ip6prefix
+   [ $defaultroute != 0 -a $sourcerouting != 0 ]  
proto_add_ipv6_route :: 0$ip6prefix
+   }
+
+proto_send_update $cfg
+
+}
+
+proto_aiccu_teardown() {
+local cfg=$1
+local link=aiccu-$cfg
+CFGFILE=/var/etc/${link}.conf
+
+aiccu stop $CFGFILE
+}
+
+proto_aiccu_init_config() {
+no_device=1 
+available=1
+proto_config_add_string username
+proto_config_add_string password
+proto_config_add_string protocol
+proto_config_add_string server
+proto_config_add_string ip6addr:ip6addr
+proto_config_add_string ip6prefix:ip6addr
+proto_config_add_string tunnelid
+proto_config_add_boolean requiretls
+proto_config_add_boolean defaultroute
+proto_config_add_boolean sourcerouting
+

[OpenWrt-Devel] [PATCH 2/3] [packages] tayga: Add Netifd support

2014-06-23 Thread Ondřej Caletka
This patch integrates tayga with netifd. Parametres are nearly same as
with the older scripts. Support for static mapping of IPv4=IPv6 addresses
is missing. Example configuration:

config interface 'nat64'
option proto 'tayga'
option prefix 64:ff9b::/96
option dynamic_pool 10.128.0.0/24
option ipv4_addr 10.128.0.1 #address of the TAYGA itself
option ipv6_addr 2001:470:5990::64
option ipaddr  192.168.1.1 #optional address of TUN interface
option ip6addr 2001:db8::1

Signed-off-by: Ondrej Caletka ond...@caletka.cz
---
 ipv6/tayga/Makefile |  8 ++--
 ipv6/tayga/files/tayga-proto.sh | 92 +
 2 files changed, 96 insertions(+), 4 deletions(-)
 create mode 100755 ipv6/tayga/files/tayga-proto.sh

diff --git a/ipv6/tayga/Makefile b/ipv6/tayga/Makefile
index 211f84d..ba137fa 100644
--- a/ipv6/tayga/Makefile
+++ b/ipv6/tayga/Makefile
@@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=tayga
 PKG_VERSION:=0.9.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=tayga-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://www.litech.org/tayga/
@@ -30,11 +30,11 @@ define Package/tayga/description
   kernel, which is the same driver used by OpenVPN and QEMU/KVM.
 endef
 
-# TODO: port scripts to netifd
-ifdef CONFIG_PACAKGE_netifd
+ifdef CONFIG_PACKAGE_netifd
   define Package/tayga/install
-   $(INSTALL_DIR) $(1)/usr/sbin
+   $(INSTALL_DIR) $(1)/usr/sbin $(1)/lib/netifd/proto
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tayga $(1)/usr/sbin/
+   $(INSTALL_BIN) ./files/tayga-proto.sh $(1)/lib/netifd/proto/tayga.sh
   endef
 else
   define Package/tayga/install
diff --git a/ipv6/tayga/files/tayga-proto.sh b/ipv6/tayga/files/tayga-proto.sh
new file mode 100755
index 000..fb65718
--- /dev/null
+++ b/ipv6/tayga/files/tayga-proto.sh
@@ -0,0 +1,92 @@
+#!/bin/sh
+# tayga.sh - TAYGA proto
+# Copyright (c) 2014 OpenWrt.org
+
+[ -n $INCLUDE_ONLY ] || {
+. /lib/functions.sh
+. /lib/functions/network.sh
+. ../netifd-proto.sh
+init_proto $@
+}
+
+proto_tayga_setup() {
+local cfg=$1
+local iface=$2
+local link=tayga-$cfg
+
+local ipv4_addr ipv6_addr prefix dynamic_pool ipaddr ip6addr
+   json_get_vars ipv4_addr ipv6_addr prefix dynamic_pool ipaddr ip6addr
+   [ -z $ipv4_addr -o -z $prefix ]  {
+proto_notify_error $cfg REQUIRED_PARAMETERS_MISSING
+proto_block_restart $cfg
+return
+}
+
+   local tmpconf=/var/etc/tayga-$cfg.conf
+   mkdir -p /var/etc
+   mkdir -p /var/run/tayga/$cfg
+
+   echo tun-device $link $tmpconf
+   echo ipv4-addr $ipv4_addr $tmpconf
+   [ -n $ipv6_addr ] 
+   echo ipv6-addr $ipv6_addr $tmpconf
+   [ -n $prefix ] 
+   echo prefix $prefix $tmpconf
+   [ -n $dynamic_pool ] 
+   echo dynamic-pool $dynamic_pool $tmpconf
+   echo data-dir /var/run/tayga/$cfg $tmpconf
+   #TODO: Support static mapping of IPv4 - IPv6
+
+   # here we create TUN device and check configuration
+   tayga -c $tmpconf --mktun
+[ $? -ne 0 ]  {
+proto_notify_error $cfg TAYGA_FAILED
+proto_block_restart $cfg
+return
+}
+
+proto_init_update $link 1
+
+   [ -n $ipaddr ]   proto_add_ipv4_address $ipaddr 255.255.255.255
+   [ -n $ip6addr ]  proto_add_ipv6_address $ip6addr 128
+   [ -n $ipv6_addr ]  proto_add_ipv6_route $ipv6_addr 128
+   [ -n $dynamic_pool ]  {
+   local pool=${dynamic_pool%%/*}
+   local mask=${dynamic_pool##*/}
+   proto_add_ipv4_route $pool $mask
+   }
+   [ -n $prefix ]  {
+   local prefix6=${prefix%%/*}
+   local mask6=${prefix##*/}
+   proto_add_ipv6_route $prefix6 $mask6
+   }
+
+proto_send_update $cfg
+
+   proto_run_command $cfg tayga -n -c $tmpconf \
+   -p /var/run/$link.pid
+
+}
+
+proto_tayga_teardown() {
+   local cfg=$1
+   local tmpconf=/var/etc/tayga-$cfg.conf
+   proto_kill_command $cfg
+   sleep 1
+   tayga -c $tmpconf --rmtun
+}
+
+proto_tayga_init_config() {
+no_device=1 
+available=1
+proto_config_add_string ipv4_addr
+proto_config_add_string ipv6_addr
+proto_config_add_string prefix
+proto_config_add_string dynamic_pool
+proto_config_add_string ipaddr
+proto_config_add_string ip6addr:ip6addr
+}
+
+[ -n $INCLUDE_ONLY ] || {
+add_protocol tayga
+}
-- 
1.8.5.5
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/3] [packages] tayga: fix broken ICMP checksum on big-endian machines

2014-06-23 Thread Steven Barth

Hi Ondrej,

thanks for your efforts. However we are not accepting patches for the 
old packages feed any more. However feel free to import, update and 
maintain the 2 packages in the new feed at

https://github.com/openwrt/packages. You can send a Pull Request there.


Cheers,

Stevem
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [BUG] NAND sysupgrade broke ubifs on Netgear WNDR3700v4/4300.

2014-06-23 Thread Paul Blazejowski
Hello list,

Have found bug in the ubifs component when mounting images on
wndr3700v4/4300 routers. This happens in trunk builds after r41130 but
does not happen before r41118.

Please take a look at bug https://dev.openwrt.org/ticket/16803 i have
filed on this issue.

Unfortunately i do not have any fixes for this but i am willing to test
patches and debug in hopes of getting this fixed.

On a side note, sysupgrade image for wndr4300 does work from the web
interface on my 3700v4 router but the wndr3700v4 image does not. Guess
one bugat a time ;-).

cheerios,
-paulb


signature.asc
Description: This is a digitally signed message part
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [RFC 2/3] PKG_CHECK_FORMAT_SECURITY: fix rbcfg

2014-06-23 Thread Etienne CHAMPETIER
Signed-off-by: Etienne CHAMPETIER etienne.champet...@free.fr
---
 package/boot/rbcfg/src/main.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/package/boot/rbcfg/src/main.c b/package/boot/rbcfg/src/main.c
index 5614a6c..b7cf79f 100644
--- a/package/boot/rbcfg/src/main.c
+++ b/package/boot/rbcfg/src/main.c
@@ -724,7 +724,7 @@ usage(void)
const struct rbcfg_command *cmd;
cmd = rbcfg_commands[i];
 
-   len = snprintf(buf, sizeof(buf), cmd-usage);
+   len = snprintf(buf, sizeof(buf), %s, cmd-usage);
buf[len] = '\0';
fprintf(stderr, %s\n, buf);
}
-- 
1.7.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [RFC 1/3] Introduce PKG_CHECK_FORMAT_SECURITY

2014-06-23 Thread Etienne CHAMPETIER
The idea is to get rid of
http://en.wikipedia.org/wiki/Uncontrolled_format_string
by using -Wformat -Werror=format-security by default

Signed-off-by: Etienne CHAMPETIER etienne.champet...@free.fr
---
 include/package.mk |4 
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/package.mk b/include/package.mk
index f7da9e3..7d75f08 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -14,6 +14,7 @@ PKG_INSTALL_DIR ?= $(PKG_BUILD_DIR)/ipkg-install
 PKG_MD5SUM ?= unknown
 PKG_BUILD_PARALLEL ?=
 PKG_USE_MIPS16 ?= 1
+PKG_CHECK_FORMAT_SECURITY ?= 1
 
 ifneq ($(CONFIG_PKG_BUILD_USE_JOBSERVER),)
   MAKE_J:=$(if $(MAKE_JOBSERVER),$(MAKE_JOBSERVER) -j)
@@ -33,6 +34,9 @@ ifdef CONFIG_USE_MIPS16
 TARGET_CFLAGS += -mips16 -minterlink-mips16
   endif
 endif
+ifeq ($(strip $(PKG_CHECK_FORMAT_SECURITY)),1)
+  TARGET_CFLAGS += -Wformat -Werror=format-security
+endif
 
 include $(INCLUDE_DIR)/prereq.mk
 include $(INCLUDE_DIR)/host.mk
-- 
1.7.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [RFC 3/3] PKG_CHECK_FORMAT_SECURITY: disable the check for the failing packages

2014-06-23 Thread Etienne CHAMPETIER
The idea is to gradually fix the packages

Signed-off-by: Etienne CHAMPETIER etienne.champet...@free.fr
---
 package/libs/gettext-full/Makefile|1 +
 package/network/utils/comgt/Makefile  |1 +
 package/network/utils/iperf/Makefile  |1 +
 package/network/utils/linux-atm/Makefile  |1 +
 package/network/utils/xtables-addons/Makefile |1 +
 package/system/fstools/Makefile   |1 +
 package/system/mountd/Makefile|1 +
 package/system/ubox/Makefile  |1 +
 package/utils/busybox/Makefile|1 +
 package/utils/px5g-standalone/Makefile|1 +
 package/utils/xfsprogs/Makefile   |1 +
 11 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/package/libs/gettext-full/Makefile 
b/package/libs/gettext-full/Makefile
index 11dc1f5..510566b 100644
--- a/package/libs/gettext-full/Makefile
+++ b/package/libs/gettext-full/Makefile
@@ -23,6 +23,7 @@ PKG_FIXUP:=autoreconf
 PKG_INSTALL:=1
 PKG_BUILD_PARALLEL:=0
 PKG_BUILD_DEPENDS:=gettext-full/host
+PKG_CHECK_FORMAT_SECURITY:=0
 
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/host-build.mk
diff --git a/package/network/utils/comgt/Makefile 
b/package/network/utils/comgt/Makefile
index 89a21be..9fbc7f9 100644
--- a/package/network/utils/comgt/Makefile
+++ b/package/network/utils/comgt/Makefile
@@ -18,6 +18,7 @@ PKG_MD5SUM:=db2452680c3d953631299e331daf49ef
 PKG_MAINTAINER:=Felix Fietkau n...@openwrt.org
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME).$(PKG_VERSION)
+PKG_CHECK_FORMAT_SECURITY:=0
 
 include $(INCLUDE_DIR)/package.mk
 
diff --git a/package/network/utils/iperf/Makefile 
b/package/network/utils/iperf/Makefile
index 2937460..b126c03 100644
--- a/package/network/utils/iperf/Makefile
+++ b/package/network/utils/iperf/Makefile
@@ -19,6 +19,7 @@ PKG_MD5SUM:=44b5536b67719f4250faed632a3cd016
 PKG_MAINTAINER:=Felix Fietkau n...@openwrt.org
 
 PKG_BUILD_PARALLEL:=1
+PKG_CHECK_FORMAT_SECURITY:=0
 
 include $(INCLUDE_DIR)/uclibc++.mk
 include $(INCLUDE_DIR)/package.mk
diff --git a/package/network/utils/linux-atm/Makefile 
b/package/network/utils/linux-atm/Makefile
index 9238b88..b74d3ae 100644
--- a/package/network/utils/linux-atm/Makefile
+++ b/package/network/utils/linux-atm/Makefile
@@ -18,6 +18,7 @@ PKG_MD5SUM:=d49499368c3cf15f73a05d9bce8824a8
 
 PKG_INSTALL:=1
 PKG_BUILD_PARALLEL:=1
+PKG_CHECK_FORMAT_SECURITY:=0
 
 include $(INCLUDE_DIR)/package.mk
 
diff --git a/package/network/utils/xtables-addons/Makefile 
b/package/network/utils/xtables-addons/Makefile
index 227332c..4e18988 100644
--- a/package/network/utils/xtables-addons/Makefile
+++ b/package/network/utils/xtables-addons/Makefile
@@ -25,6 +25,7 @@ PKG_SOURCE_URL:=@SF/xtables-addons
 PKG_BUILD_DEPENDS:=iptables
 PKG_INSTALL:=1
 PKG_BUILD_PARALLEL:=1
+PKG_CHECK_FORMAT_SECURITY:=0
 
 PKG_MAINTAINER:=Jo-Philipp Wich j...@openwrt.org
 
diff --git a/package/system/fstools/Makefile b/package/system/fstools/Makefile
index 08b3be4..64dee6b 100644
--- a/package/system/fstools/Makefile
+++ b/package/system/fstools/Makefile
@@ -18,6 +18,7 @@ PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE_VERSION:=d04e58946eff771bf59db90d7a2301b746141ac4
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
 CMAKE_INSTALL:=1
+PKG_CHECK_FORMAT_SECURITY:=0
 
 PKG_LICENSE:=GPLv2
 PKG_LICENSE_FILES:=
diff --git a/package/system/mountd/Makefile b/package/system/mountd/Makefile
index 10534cc..a208c1e 100644
--- a/package/system/mountd/Makefile
+++ b/package/system/mountd/Makefile
@@ -11,6 +11,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
 PKG_MD5SUM:=b77253ee4321d24d200fffc4f7ca3d15
 PKG_MAINTAINER:=John Crispin blo...@openwrt.org
+PKG_CHECK_FORMAT_SECURITY:=0
 
 include $(INCLUDE_DIR)/package.mk
 
diff --git a/package/system/ubox/Makefile b/package/system/ubox/Makefile
index 9128a8d..d60b273 100644
--- a/package/system/ubox/Makefile
+++ b/package/system/ubox/Makefile
@@ -10,6 +10,7 @@ PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE_VERSION:=1c2a9c1cbe9d18bf342edfa617eff319c1d3ce3a
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
 CMAKE_INSTALL:=1
+PKG_CHECK_FORMAT_SECURITY:=0
 
 PKG_LICENSE:=GPLv2
 PKG_LICENSE_FILES:=
diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile
index 6dbd54d..6c5fa39 100644
--- a/package/utils/busybox/Makefile
+++ b/package/utils/busybox/Makefile
@@ -19,6 +19,7 @@ PKG_MD5SUM:=337d1a15ab1cb1d4ed423168b1eb7d7e
 
 PKG_BUILD_DEPENDS:=BUSYBOX_USE_LIBRPC:librpc
 PKG_BUILD_PARALLEL:=1
+PKG_CHECK_FORMAT_SECURITY:=0
 
 PKG_LICENSE:=GPLv2 BSD-4c
 PKG_LICENSE_FILES:=LICENSE archival/libarchive/bz/LICENSE
diff --git a/package/utils/px5g-standalone/Makefile 
b/package/utils/px5g-standalone/Makefile
index 2577796..fc5f391 100644
--- a/package/utils/px5g-standalone/Makefile
+++ b/package/utils/px5g-standalone/Makefile
@@ -11,6 +11,7 @@ 

Re: [OpenWrt-Devel] LAN force_link causes WDS Client routers to be no-longer administerable

2014-06-23 Thread Chirag Chhatriwala
Hello Felix,

Didn't hear back on an email I had sent a couple weeks ago so I'm following
up with a polite inquiry.
Were you able to reproduce the problem with your setup as I described?

Please let me know. If you would like, I will file a bug report on
dev.openwrt.org against trunk.

Thanks,
Chirag


On Mon, Jun 9, 2014 at 10:19 PM, Chirag Chhatriwala cchha...@gmail.com
wrote:

 On Mon, Jun 9, 2014 at 3:55 PM, Felix Fietkau n...@openwrt.org wrote:

 On 2014-06-09 21:37, Chirag Chhatriwala wrote:
  Hello Felix and other devs,
 
  I recently went from r39555 (BB) to r41055 (also BB) without sysupgrade,
  direct update of firmware. I've got a couple of WD N750 Routers that I
  like to run in WDS mode. After flashing 41055 and then configuring, WDS
  on the routers, I was left completely locked out of the WDS Client
 router.
 
  There were quite a few changes which I ruled out as the cause and
  ultimately narrowed out the changeset in 40773 [1] causes WDS Client
  Routers to stop being adminsterable via SSH or LuCI.
 
  I'm not sure if this change warrants a trac ticket item so I emailed the
  group as a heads-up. I can create a ticket if I don't hear back within a
  couple of days.
 I haven't seen anything similar in my own tests (and I've been using WDS
 as well). Please show me your configuration (network and wireless) so I
 can try to reproduce it.

 Thanks,

 - Felix


 Hi Felix,

 I've attached the /etc/config/network and /etc/config/wireless for both
 the Main WDS Access Point (_ap files) and the 2ndary WDS Client+AP (_sta
 files).

 Point to note that if I had went through a sysupgrade from (which I also
 tried as well), this issue wouldn't manifest as r39555 did not yet make use
 of option force_link 1. In which case, there were no issues with the WDS
 Client router receiving a proper IP and being accessible via SSH/LuCI.

 Problem only occurred when I loaded a fresh install of r41055 on both WD
 MyNet N750 routers and manually configured WDS in the AP and the Client
 router.

 Hope this helps,

 Chirag

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Ethernet problems with trunk on brcm47xx

2014-06-23 Thread Paul Sokolovsky
Hello,

I upgraded my Asus WL-500g Deluxe from 10.03.1 to today's daily build
of trunk (BARRIER BREAKER (Bleeding Edge, r41302)) to test fix for
issue https://dev.openwrt.org/ticket/7552 .

After upgrade, all WiFi clients work ok. However, all wired ethernet
clients lost connectivity. All obvious checks like leds blinking for
lan ports, swconfig dev eth0 show showing connected ports up, dnsmasq
running on udp 0.0.0.0:67, pass. Ultimately, doing logread -f and
connecting cable to my RasPi I see:

Mon Jun 23 22:54:14 2014 daemon.info dnsmasq-dhcp[905]: DHCPDISCOVER(br-lan) 
b8:27:eb:2d:38:4d 
Mon Jun 23 22:54:14 2014 daemon.info dnsmasq-dhcp[905]: DHCPOFFER(br-lan) 
192.168.15.177 b8:27:eb:2d:38:4d 
Mon Jun 23 22:54:17 2014 daemon.info dnsmasq-dhcp[905]: DHCPDISCOVER(br-lan) 
b8:27:eb:2d:38:4d 
Mon Jun 23 22:54:17 2014 daemon.info dnsmasq-dhcp[905]: DHCPOFFER(br-lan) 
192.168.15.177 b8:27:eb:2d:38:4d 
Mon Jun 23 22:54:20 2014 daemon.info dnsmasq-dhcp[905]: DHCPDISCOVER(br-lan) 
b8:27:eb:2d:38:4d 
Mon Jun 23 22:54:20 2014 daemon.info dnsmasq-dhcp[905]: DHCPOFFER(br-lan) 
192.168.15.177 b8:27:eb:2d:38:4d 

In other words, dnsmasq on router sees DHCP request from RasPi,
and replies to it with IP address, but RasPi never sees that reply and
keeps resending requests, until it gives up and autoassigns 169.*.

Worse, I cannot access a device with static IP address on the same
subnet connected via ethernet (from WiFi client or from router itself).
Also, if I connect via ethernet and set static IP on my laptop, I
cannot ping router from it. But I can ping and otherwise access another
ethernet device with static IP, so switch in router works as
expected ;-).

Intuitively, this would look like problem with bridging (eth0.0 -
br-lan works, but the other direction doesn't), but brctl looks as
usual:

root@OpenWrt:~# brctl show
bridge name bridge id   STP enabled interfaces
br-lan  7fff.0015f23d7889   no  eth0.0
wlan0


I would appreciate any hints (again, I upgraded, preserving config,
from 10.03.1, if that may be relevant).


Thanks,
 Paul  mailto:pmis...@gmail.com
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel