[OpenWrt-Devel] why is 'wan' port missing in luci switch vlan setup page for Netgear WNR2200 ?

2014-09-26 Thread Urs Rau (UK)
I have the latest daily snapshot flashed to a netgear WNR2200.

When I try to setup the VLAN settings in luci, I only have ports 1 - 4 + 0 
(=cpu) available, but cannot set anything or even see the ‘wan’ port. How do I 
get it to display?

Failing that.
Which port number is it on the cli ? Can I configure the right tagged and 
untagged port for my ‘wan’ port on the cli?


—
Urs Rau



Operation Mobilisation (OM) - a company limited by guarantee - The Quinta, 
Weston Rhyn, Oswestry, SY10 7LT, United Kingdom
Company reg no: 2564320 (England  Wales) - Charity reg. no: 1008196 (England  
Wales) - SC040988 (Scotland)
Web: http://www.uk.om.org

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


Re: [OpenWrt-Devel] why is 'wan' port missing in luci switch vlan setup page for Netgear WNR2200 ?

2014-09-26 Thread Jo-Philipp Wich
Hi.

The wan port is likely a dedicated, non-switch interface (e.g. eth1) on
this model. If you want to declare VLANs on it then simply create a new
interface using eth1.Y as manual physical ifname where Y denotes the
desired VLAN id.

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


Re: [OpenWrt-Devel] [PATCH] ar71xx: add LED defaults for the EnGenius ESR1750

2014-09-26 Thread Karl Palsson
When this is merged, would a patch that resorts this list alphabetically again 
be welcome?

The D-H section got all messed up with routerboard being inserted wildly in the 
middle and
confusing things.

Cheers,
Karl P


On Fri, Sep 26, 2014 at 01:34:32AM -0400, Forest Crossman wrote:
 Signed-off-by: Forest Crossman cyro...@gmail.com
 ---
  target/linux/ar71xx/base-files/etc/uci-defaults/01_leds | 5 +
  1 file changed, 5 insertions(+)
 
 diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds 
 b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
 index d104f40..275bf4a 100755
 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
 +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
 @@ -123,6 +123,11 @@ esr900)
   ucidef_set_led_wlan wlan5g WLAN 5 GHz engenius:blue:wlan-5g 
 phy1tpt
   ;;
  
 +esr1750)
 + ucidef_set_led_wlan wlan2g WLAN 2.4 GHz esr1750:blue:wlan-2g 
 phy0tpt
 + ucidef_set_led_wlan wlan5g WLAN 5 GHz esr1750:blue:wlan-5g 
 phy1tpt
 + ;;
 +
  hiwifi-hc6361)
   ucidef_set_led_netdev inet INET hiwifi:blue:internet eth1
   ucidef_set_led_wlan wlan WLAN hiwifi:blue:wlan-2p4 phy0tpt
 -- 
 1.9.2
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Possible to add horst 4.1 to packages for 14.07?

2014-09-26 Thread Bastian Bittorf
* Bruno Randolf b...@einfach.org [26.09.2014 14:11]:
 horst 4.1 to the for-14.07 branch... Here's the pull request:

i vote for it - bye, bastian.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] hostapd: read missing parameter for dynamic VLANs

2014-09-26 Thread Reiner Herrmann
In r41872 Dynamic VLAN support was reintroduced, but the vlan_naming
parameter is not read while setting up the config, so it always
defaults to 1.

Signed-off-by: Reiner Herrmann rei...@reiner-h.de
---
 package/network/services/hostapd/files/netifd.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/services/hostapd/files/netifd.sh 
b/package/network/services/hostapd/files/netifd.sh
index 30d12e9..7e909a7 100644
--- a/package/network/services/hostapd/files/netifd.sh
+++ b/package/network/services/hostapd/files/netifd.sh
@@ -219,7 +219,7 @@ hostapd_set_bss_options() {
dae_client dae_secret dae_port \
nasid iapp_interface ownip \
eap_reauth_period dynamic_vlan \
-   vlan_tagged_interface
+   vlan_naming vlan_tagged_interface
 
# legacy compatibility
[ -n $auth_server ] || json_get_var auth_server server
-- 
2.1.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] [package] dropbear: enable sha2-based hmac by default.

2014-09-26 Thread Alive
On 26/09/2014 10:11, Catalin Patulea wrote:
 What's the motivation for this change?
 
 On Thu, Sep 25, 2014 at 11:43 AM, Alive alive4e...@live.com wrote:
 X-Patchwork-Id: 6322
 Message-Id: blu437-smtp18d6698761b98124aca899e4...@phx.gbl

 Is there any chance for my proposed patch to be committed?
 http://patchwork.openwrt.org/patch/6322/

 Here is a brief comparison about binary and package size increase.
 Tested on AR9330, mips, TL MR3220v2

 Before applying sha2-hmac patch
 root@OpenWrt:~# du -sh $(which dropbear)
 161.5K  /usr/sbin/dropbear

 After applying sha2-hmac patch
 root@OpenWrt:~# du -sh $(which dropbear)
 165.5K  /usr/sbin/dropbear

 It's about 4K binary size increase.

 debug information
 ssh root@OpenWrt -o MACs=hmac-sha2-512,hmac-sha2-256 -v
 ...
 debug1: SSH2_MSG_KEXINIT sent
 debug1: SSH2_MSG_KEXINIT received
 debug1: kex: server-client aes128-ctr hmac-sha2-512 none
 debug1: kex: client-server aes128-ctr hmac-sha2-512 none
 ...

 Package size compared to downloaded trunk
 84829 Sep 25 02:43 dropbear_2014.65-2_ar71xx.ipk
 81896 Sep 25 02:13 dropbear_2014.65-2_ar71xx.ipk
 It's about 3K package size increase.

As SHA1 signature hash is about to be obsolete on certificates, it would
be better to prepare for next generation hash algorithms. Here are some
references.

http://blogs.technet.com/b/pki/archive/2013/11/12/sha1-deprecation-policy.aspx
https://community.qualys.com/blogs/securitylabs/2014/09/09/sha1-deprecation-what-you-need-to-know
https://www.digicert.com/sha-2-ssl-certificates.htm

While CA is encouraging users to upgrade to SHA2-based certificates,
it'd be better to assume that SHA1 HMAC will also be obsolete.

I know unix philosophy Don't fix what ain't broken.
I think it's better to provide safety measure to prevent disaster
instead of waiting the disaster to come and fix it later.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Add support for DHT11 driver

2014-09-26 Thread Hartmut Knaack
har...@ccbib.org schrieb am 26.09.2014 12:46:
 The DHT11 is a temperature and humidity sensor supported by linux
 since 3.14.
 
 This patch has been tested on recent mxs with kernel 3.14.18.
 
 Signed-off-by: Harald Geyer har...@ccbib.org
Hi,
I would expect to make it also depend on device tree or architectures which 
support device tree. From what I remember, there are still architectures which 
have not yet been converted to devicetree. In those cases, it would be 
confusing and useless to build this module. Or am I missing something? I don't 
have any practical experience with devicetree, so far.

 ---
  package/kernel/linux/modules/other.mk |   20 
  1 files changed, 20 insertions(+), 0 deletions(-)
 
 diff --git a/package/kernel/linux/modules/other.mk
 b/package/kernel/linux/modules/other.mk
 index d56bb50..bef24eb 100644
 --- a/package/kernel/linux/modules/other.mk
 +++ b/package/kernel/linux/modules/other.mk
 @@ -258,6 +258,26 @@ endef
  
  $(eval $(call KernelPackage,iio-ad799x))
  
 +
 +define KernelPackage/iio-dht11
 +  SUBMENU:=$(OTHER_MENU)
 +  DEPENDS:=kmod-iio-core @GPIO_SUPPORT
 +  TITLE:=DHT11 (and compatible) humidity and temperature sensors
 +  KCONFIG:= \
 + CONFIG_DHT11
 +  FILES:=$(LINUX_DIR)/drivers/iio/humidity/dht11.ko
 +  AUTOLOAD:=$(call AutoLoad,56,dht11)
 +endef
 +
 +define KernelPackage/iio-dht11/description
 + support for DHT11 and DHT22 digitial humidity and temperature sensors
 + attached at GPIO lines. You will need a custom device tree file to
 + specify the GPIO line to use.
 +endef
 +
 +$(eval $(call KernelPackage,iio-dht11))
 +
 +
  define KernelPackage/lp
SUBMENU:=$(OTHER_MENU)
TITLE:=Parallel port and line printer support
 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] missing debootstrap-udeb_1.0.61_all.udeb

2014-09-26 Thread Robert P. J. Day

Download failed.
--2014-09-26 17:31:12--
http://downloads.openwrt.org/sources/debootstrap-udeb_1.0.61_all.udeb

  should this exist somewhere?

rday

-- 


Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday

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


[OpenWrt-Devel] brctl showmacs oneliner

2014-09-26 Thread Gui Iribarren
hello there,
i got bored of manually chasing a mac's location, in a big bridged
batadv network, without brctl showmacs command
(cf. http://ask.xmodulo.com/show-mac-learning-table-linux-bridge.html)
(it's not compiled in openwrt's busybox by default for some reason)

so i hacked up a oneliner which perfectly emulates the output

brctl_showmacs () { printf port no\tmac addr\t\tis local?\tageing
timer\n ; hexdump -v -e '5/1 %02x: /1 %02x /1  %x /1  %x 1/4 
%i 1/4 \n' /sys/class/net/$1/brforward | awk '{ islocal = $3 ? yes
: no ; printf %3i\t%s\t%s\t\t%8.2f\n,$2,$1,islocal,$4/100 }' ; }

i hope this might be useful as is, for someone else reading this list
it can be copypasted in a running node, and used as
# brctl_showmacs br-lan

sample output: http://pastebin.com/

besides that... is there any slight, ugly chance of getting this
upstream, somewhere?

(maaaybe in /etc/profile alongside these other oneliners?)
[ -x /usr/bin/arp ] || arp() { cat /proc/net/arp; }

or, why is brctl showmacs not enabled by default?
(i'm aware it can be enabled by menuconfig in a custom build)

cheers,

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