[OpenWrt-Devel] [PATCH] firewall: Allow MLD input on WAN

2015-05-02 Thread Linus Lüssing
The WAN port should at least respond to MLD queries as otherwise
a snooping bridge/switch might drop traffic.

Signed-off-by: Linus Lüssing linus.luess...@c0d3.blue
---
 package/network/config/firewall/files/firewall.config |   12 
 1 file changed, 12 insertions(+)

diff --git a/package/network/config/firewall/files/firewall.config 
b/package/network/config/firewall/files/firewall.config
index d149e77..b9a48cd 100644
--- a/package/network/config/firewall/files/firewall.config
+++ b/package/network/config/firewall/files/firewall.config
@@ -59,6 +59,18 @@ config rule
option family   ipv6
option target   ACCEPT
 
+config rule
+   option name Allow-MLD
+   option src  wan
+   option protoicmp
+   option src_ip   fe80::/10
+   list icmp_type  '130/0'
+   list icmp_type  '131/0'
+   list icmp_type  '132/0'
+   list icmp_type  '143/0'
+   option family   ipv6
+   option target   ACCEPT
+
 # Allow essential incoming IPv6 ICMP traffic
 config rule
option name Allow-ICMPv6-Input
-- 
1.7.10.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] modules: package l2tp_ip6.ko in kmod-l2tp-ip6

2015-05-02 Thread Daniel Golle
r45593 includes l2tp_ip6 in the kmod-l2tp-ip package.
This is not feasible for several reasons:
 - in a given setup one usually uses either l2tp_ip or
   l2tp_ip6, but never both
 - l2tp_ip doesn't depend on ipv6
 - versioning of kmod-l2tp-ip doesn't indicate that it
   now does include support for L2TP-over-IPv6

I did waste some thoughts and actually my inital approach
to include l2tp_ip6 looked very much like what was applied
in r45593. However, there might be people making use of
kmod-l2tp-ip on devices not having the resources to also
include kmod-ipv6, and we usually prefer the most atomic
packaging possible.

Signed-off-by: Daniel Golle dan...@makrotopia.org
---
 package/kernel/linux/modules/netsupport.mk | 23 +++
 1 file changed, 19 insertions(+), 4 deletions(-)

diff --git a/package/kernel/linux/modules/netsupport.mk 
b/package/kernel/linux/modules/netsupport.mk
index 7ec3d29..e920509 100644
--- a/package/kernel/linux/modules/netsupport.mk
+++ b/package/kernel/linux/modules/netsupport.mk
@@ -895,11 +895,11 @@ $(eval $(call KernelPackage,l2tp-eth))
 
 define KernelPackage/l2tp-ip
   SUBMENU:=$(NETWORK_SUPPORT_MENU)
-  TITLE:=L2TP IP + IPv6 encapsulation for L2TPv3
-  DEPENDS:=+kmod-l2tp +kmod-ipv6
+  TITLE:=L2TP IP encapsulation for L2TPv3
+  DEPENDS:=+kmod-l2tp
   KCONFIG:=CONFIG_L2TP_IP
-  FILES:=$(LINUX_DIR)/net/l2tp/l2tp_ip.ko $(LINUX_DIR)/net/l2tp/l2tp_ip6.ko
-  AUTOLOAD:=$(call AutoLoad,33,l2tp_ip l2tp_ip6)
+  FILES:=$(LINUX_DIR)/net/l2tp/l2tp_ip.ko
+  AUTOLOAD:=$(call AutoLoad,33,l2tp_ip)
 endef
 
 define KernelPackage/l2tp-ip/description
@@ -908,6 +908,21 @@ endef
 
 $(eval $(call KernelPackage,l2tp-ip))
 
+define KernelPackage/l2tp-ip6
+  SUBMENU:=$(NETWORK_SUPPORT_MENU)
+  TITLE:=L2TP IPv6 encapsulation for L2TPv3
+  DEPENDS:=+kmod-l2tp +kmod-ipv6
+  KCONFIG:=CONFIG_L2TP_IP
+  FILES:=$(LINUX_DIR)/net/l2tp/l2tp_ip6.ko
+  AUTOLOAD:=$(call AutoLoad,33,l2tp_ip6)
+endef
+
+define KernelPackage/l2tp-ip6/description
+ Kernel modules for L2TP IP6 encapsulation for L2TPv3
+endef
+
+$(eval $(call KernelPackage,l2tp-ip6))
+
 
 define KernelPackage/sctp
   SUBMENU:=$(NETWORK_SUPPORT_MENU)
-- 
2.3.7
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] generic: add linux 4.1-rc1 support

2015-05-02 Thread Dirk Neukirchen
On 01.05.2015 11:21, Hauke Mehrtens wrote:
 On 05/01/2015 10:59 AM, Dirk Neukirchen wrote:
 On 28.04.2015 23:08, Álvaro Fernández Rojas wrote:
 Boot tested: http://pastebin.com/L6aAb9xj

 Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com

 Great work !

 
 2. any(?) mac80211 does not built

 Error: include/net/cfg80211.h:3249:25: error: 'struct wiphy' has no member 
 named '_net'
   return read_pnet(wiphy-_net);

 I did try to use the v4.1-rc1 Backports package as drop-in (only some 
 OpenWrt specific driver series patches were not applied) 
 since it should deal with that error, (

 but I get compile errors with that too:
 include/net/cfg80211.h:3253:2: error: implicit declaration of function 
 'possible_write_pnet'
 include/net/cfg80211.h:3248:2: error: implicit declaration of function 
 'possible_read_pnet'
 (introduced by 
 https://git.kernel.org/cgit/linux/kernel/git/backports/backports.git/tree/patches/collateral-evolutions/network/0053-possible_net_t.patch
  )

 
 Hi,
 
 This looks like a bug in backports, I haven't tested this image against
 kernel 4.1. Please try the attached patch.
 
 Hauke
 

Still errors :/

steps to replicate: 
- Kernel 4.1 patch
- symbol fixup and mac80211 change to use backports package that is 4.1-rc1 
versioned
(so Kernel 4.1 with backports 4.1-rc1)
- backports: remove non applying patches
- your patch
a patch series that contains all the changes/steps can be found at:
https://github.com/plntyk/openwrt-patches/tree/master/kernel_4_1_backports

results in compile error:

linux-x86_64/backports-4.1-rc1-1/drivers/net/wireless/ath/main.c
In file included from 
./linux-x86_64/backports-4.1-rc1-1/include/net/mac80211.h:22:0,
 from 
./linux-x86_64/backports-4.1-rc1-1/drivers/net/wireless/ath/ath.h:24,
 from 
./linux-x86_64/backports-4.1-rc1-1/drivers/net/wireless/ath/main.c:22:
./linux-x86_64/backports-4.1-rc1-1/include/net/cfg80211.h: In function 
'wiphy_net':
./linux-x86_64/backports-4.1-rc1-1/include/net/cfg80211.h:3248:2: error: 
too few arguments to function 'write_pnet'
  return possible_read_pnet(wiphy-_net);
  ^
In file included from 
./linux-x86_64/backports-4.1-rc1-1/backport-include/net/net_namespace.h:4:0,
 from include/linux/netdevice.h:44,
 from 
./linux-x86_64/backports-4.1-rc1-1/backport-include/linux/netdevice.h:3,
 from include/linux/etherdevice.h:26,
 from 
./linux-x86_64/backports-4.1-rc1-1/backport-include/linux/etherdevice.h:3,
 from 
./linux-x86_64/backports-4.1-rc1-1/drivers/net/wireless/ath/ath.h:20,
 from 
./linux-x86_64/backports-4.1-rc1-1/drivers/net/wireless/ath/main.c:22:
include/net/net_namespace.h:240:20: note: declared here
 static inline void write_pnet(possible_net_t *pnet, struct net *net)
^
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 1/2] ncdu: update to 1.11

2015-05-02 Thread Charles Lehner
Add patch to get WEXITSTATUS and WIFEXITED defined.

This patch will not be needed in the next ncdu release
because it is already fixed upstream.

Signed-off-by: Charles Lehner c...@celehner.com
---
 utils/ncdu/Makefile   |  4 ++--
 utils/ncdu/patches/010-add_sys_wait.patch | 10 ++
 2 files changed, 12 insertions(+), 2 deletions(-)
 create mode 100644 utils/ncdu/patches/010-add_sys_wait.patch

diff --git a/utils/ncdu/Makefile b/utils/ncdu/Makefile
index edd8527..bae46bd 100644
--- a/utils/ncdu/Makefile
+++ b/utils/ncdu/Makefile
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ncdu
-PKG_VERSION:=1.10
+PKG_VERSION:=1.11
 PKG_RELEASE=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://dev.yorhel.nl/download
-PKG_MD5SUM:=7535decc8d54eca811493e82d4bfab2d
+PKG_MD5SUM:=9e44240a5356b029f05f0e70a63c4d12
 
 PKG_INSTALL:=1
 
diff --git a/utils/ncdu/patches/010-add_sys_wait.patch 
b/utils/ncdu/patches/010-add_sys_wait.patch
new file mode 100644
index 000..b6ffe44
--- /dev/null
+++ b/utils/ncdu/patches/010-add_sys_wait.patch
@@ -0,0 +1,10 @@
+--- ncdu-1.11/src/shell.c
 ncdu-1.11/src/shell.c
+@@ -33,6 +33,7 @@
+ #include stdlib.h
+ #include unistd.h
++#include sys/wait.h
+ 
+ void shell_draw() {
+   char *full_path;
+   int res;
-- 
2.1.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 2/2] ncdu: optimize build

2015-05-02 Thread Charles Lehner
- depend on more commonly used libncurses instead of libncursesw
- enable parallel build

Signed-off-by: Charles Lehner c...@celehner.com
---
 utils/ncdu/Makefile | 7 +--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/utils/ncdu/Makefile b/utils/ncdu/Makefile
index bae46bd..4715a80 100644
--- a/utils/ncdu/Makefile
+++ b/utils/ncdu/Makefile
@@ -9,13 +9,14 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ncdu
 PKG_VERSION:=1.11
-PKG_RELEASE=1
+PKG_RELEASE=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://dev.yorhel.nl/download
 PKG_MD5SUM:=9e44240a5356b029f05f0e70a63c4d12
 
 PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
 
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=COPYING
@@ -26,7 +27,7 @@ define Package/ncdu
   SUBMENU:=Filesystem
   SECTION:=utils
   CATEGORY:=Utilities
-  DEPENDS:=+libncursesw
+  DEPENDS:=+libncurses
   TITLE:=ncurses disk usage viewer
   MAINTAINER:=Charles Lehner celehn...@gmail.com
   URL:=http://dev.yorhel.nl/ncdu
@@ -38,6 +39,8 @@ define Package/ncdu/description
   directories and show percentages of disk usage with ncurses library.
 endef
 
+CONFIGURE_ARGS += --with-ncurses
+
 define Package/ncdu/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ncdu $(1)/usr/bin/
-- 
2.1.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Unable to setup point to point network between two openwrt boards

2015-05-02 Thread udit gupta
Hi,

I am trying to setup point to point networks between two Avila boards
(Processor : XScale-IXP42x Family) running Openwrt( KAMIKAZE 8.09.1) and
Linux kernel 2.6.26.8.

I am trying to setup two configurations : 1. AP-Client 2. Adhoc-Adhoc

I tried both but nothing seems to work. I am able to setup the respective
AP, Client and Adhoc modes but they somehow don't associate with other
peer. I am using madwifi(atheros) driver.

For e.g. - one configuration :

 iwconfig ath0
 ath0  IEEE 802.11g  ESSID:wsid  Nickname:
  Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated
  Bit Rate:1 Mb/s   Tx-Power:28 dBm   Sensitivity=1/1
  Retry:off   RTS thr:off   Fragment thr:off
  Encryption key:off
  Power Management:off
  Link Quality=0/70  Signal level=-97 dBm  Noise level=-97 dBm
  Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
  Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Same thing happens when I use the Ad-hoc mode. It gets the configuration
but Access point remains Not-Associated.

I would love to share more details but Can someone provide me some leads
into this. I just want to ping one board from other.

Thanks
-- 

*Regards, Udit K Gupta*
*Graduate Student in Computer Science ***
*Research Assistant in WINGS LAB*
*Stony Brook University*
*Cell: +1-631-706-5028 | Website : uditgupta.me http://uditgupta.me*


*Stony Brook, NY-11790, USA*

*Follow me on Twitter : @gupta_udit https://twitter.com/gupta_udit*

*Check Out my Linkedin https://www.linkedin.com/in/uditkgupta Profile*
* The man who never makes a mistake always takes orders from one who does
...*
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel