Commit Graph

1222 Commits (ef9aea6713a6a120cce3237275b1e354a1ccf2a6)

Author SHA1 Message Date
Felix Fietkau f0eb51712e hostapd: switch dependency from mac80211 to cfg80211
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43339 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-21 20:38:14 +00:00
John Crispin 41436967c3 nf_conntrack_rtsp: update to latest version
Update nf_conntrack_rtsp to latest version based on http://mike.it-loops.com/rtsp/ (rtsp-module-3.7-v2.tar.gz).

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43311 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-19 09:21:12 +00:00
John Crispin 0c07215e8d uqmi: update to latest git HEAD
* fixes a bug in multipart sms
* adds a new call to read the sim phone number (partially functioanl)

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43310 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-19 09:21:07 +00:00
Steven Barth ceb0f117bf netifd: fix race, expose config options
Thanks to Hans Dedecker

Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43299 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-19 08:31:13 +00:00
Steven Barth e86b60dcd2 odhcp6c: be less verbose by default, increase musl compatibility
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43294 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-18 09:40:39 +00:00
Matteo Croce 789aa2bf5c pppd: add option to set custom host-uniq pppoe tag
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43241 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-14 16:39:59 +00:00
Jo-Philipp Wich 3886bf6881 lldpd: allow discovery protocols to be disabled from menuconfig
Signed-off-by: Michel Stam <m.stam@fugro.nl>
[jow: fixed condition for CONFIG_LLDPD_WITH_JSON]
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43233 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-11 09:49:20 +00:00
Steven Barth b59385e75e 6in4: detect curl and busybox wget
b52053b 6in4: https support for he.net tunnel api
introduced HTTPS support using wget.
The busybox version of wget, however, doesn't support the -V option,
thus poluting logfiles with a full invalid-parameter-output.
Redirect stderr to fix that.
As libcurl and curl support selecting the SSL library of your choice,
also add support for curl which is more commonly used on OpenWrt than
"real" wget which needs libopenssl.
Also make sure to respect SSL_CERT_DIR and increase timeouts.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43228 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-09 13:46:29 +00:00
Steven Barth a5818dc814 netifd: fix default ORO-setting for 6rd
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43214 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-08 12:24:49 +00:00
Nicolas Thill 1ee8ef9901 package/*: replace occurences of 'ln -sf' to '$(LN)'
Signed-off-by: Nicolas Thill <nico@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43205 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-06 19:35:34 +00:00
Steven Barth f2d1be9815 odhcpd: disable flash-renumbering hack for non-64 prefixes
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43202 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-06 13:37:50 +00:00
Felix Fietkau 224bfe9779 netfilter: Enable compiling iptables match cluster
This patch adds the userspace and kernelspace for

- match NETFILTER_XT_MATCH_CLUSTER
  This match can be used to deploy gateway and back-end load-sharing clusters.
- target IP_NF_TARGET_CLUSTERIP
  This module allows you to configure a simple cluster of nodes
  that share a certain IP and MAC address
  without an explicit load balancer in front of them.
  Connections are statically distributed between the nodes in this cluster.

This is used i.e. by strongswan-ha.

Signed-off-by: Christian Scheele <cs@embedd.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43174 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-03 22:01:45 +00:00
Steven Barth fc724508ba mdnsd: add query / fetch methods, fix some bugs
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43169 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-03 19:35:53 +00:00
John Crispin 85c10a8a6a license info - revert r43155
turns out that r43155 adds duplicate info.

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43167 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-03 09:56:44 +00:00
John Crispin b8df8ca970 Add more license tags with SPDX identifiers
Note, that licensing stuff is a nightmare: many packages does not clearly
state their licenses, and often multiple source files are simply copied
together - each with different licensing information in the file headers.

I tried hard to ensure, that the license information extracted into the OpenWRT's
makefiles fit the "spirit" of the packages, e.g. such small packages which
come without a dedicated source archive "inherites" the OpenWRT's own license
in my opinion.

However, I can not garantee that I always picked the correct information
and/or did not miss license information.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43155 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-03 08:01:08 +00:00
Steven Barth 2bf2015c24 Add a few SPDX tags
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43151 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-02 12:20:54 +00:00
Jo-Philipp Wich fe13e6ccbd ppp: support adaptive LCP echos
Port Debians adaptive LCP echo patch to pppd, make it configurable with UCI
and enable it by default.

When adaptive LCP echo is enabled, LCP echo requests are only sent if the
link is idle, this avoids the common situation where a congested PPP link
(e.g. during torrenting) is falsely detected as disconnected because the
LCP replies are not received in time.

Also bump the copyright year in the Makefile, remove a redundant maintainer
entry and fix the shell processing of the keepalive option when the two-
value syntax is used.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43143 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-01 12:37:03 +00:00
John Crispin f28cdfa99d uqmi: update to latest git HEAD
this adds support for pin set/unlock/... and iccid.

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43127 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-31 11:02:06 +00:00
Steven Barth f7956003ae 6in4: https support for he.net tunnel api
HE.net tunnel update API requests are now made via https if an
SSL-capable wget is installed.  Certificate validation is
conditionally enabled if the CA certs are available.

Signed-off-by: Andrew Skalski <askalski@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43124 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-30 13:15:18 +00:00
John Crispin a1a0c5c0c1 ltq-vdsl-app: use VDSL tone-setup if annex is unset
I had to use a VDSL-only tone-setup to get show-time.
Handle this in uci by checking if annex is unset.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43114 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-30 08:08:01 +00:00
Jo-Philipp Wich ac7e9e859b iwinfo: add cli support for phy lookup from uci section
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43092 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-27 16:35:41 +00:00
Jo-Philipp Wich c1baa9448d iwinfo: switch to external git repo, support lookup by phyname & macaddr
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43087 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-27 14:35:44 +00:00
Jo-Philipp Wich 64edfd8a14 uhttpd: fix HTTP incompatibilities in file handler
* Fixes sending an extraneous message body for 204 and 304 resoponses which
   breaks Chrome in keep-alive mode.

 * Adds mimetypes for JSON and JSONP.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43078 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-27 10:25:07 +00:00
John Crispin 1f71668727 comgt: fix typo in the ncm proto handler
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43071 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-26 16:57:38 +00:00
Felix Fietkau 7d5e12fd4d hostapd: update to 2014-10-25
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43059 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-25 16:48:45 +00:00
Steven Barth 68d3c26b87 odhcp6c: avoid some unnecessary big mallocs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43056 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-25 10:39:02 +00:00
Felix Fietkau c8ebaee059 netifd: update to the latest version, fixes a use-after-free bug
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43044 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-24 13:04:12 +00:00
Felix Fietkau 9cd082856c comgt: drop the use of the non-standard XCASE termios flag (#18186)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43014 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-21 20:32:05 +00:00
Steven Barth f359b1d642 nftables: bump to latest, fix minigmp
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43013 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-21 20:00:56 +00:00
Felix Fietkau 07c8649499 netifd: update to the latest version, fixes link status handling on VLAN devices (#18106)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43007 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-20 20:09:35 +00:00
John Crispin f16cd1a9e5 hostapd: Add wpa_psk_file option to netifd.sh
The wpa_psk_file option offers the possibility to use a different WPA-PSK key for each client. The directive points to a file with the following syntax:

mac_address wpa_passphrase_or_hex_key

Example:

00:11:22:33:44:55 passphrase_for_client_1
00:11:22:33:44:67 passphrase_for_client_2
00:11:22:33:44:89 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef

So it is possible to specify both ASCII passphrases and raw 64-chars hex keys.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43001 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-20 11:19:21 +00:00
Imre Kaloz cbc5f498cd [comgt]: fix compile against musl
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43000 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-20 10:00:02 +00:00
Felix Fietkau 19cb89c9a0 iproute2: fix musl build
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42981 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-19 23:04:17 +00:00
Felix Fietkau d7be7f6241 authsae: fix musl build
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42980 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-19 23:04:02 +00:00
Steven Barth 3cb3abd960 odhcpd: fix regression in dhcpv6 t1 and t2 calculation
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42951 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-18 15:47:31 +00:00
Steven Barth ea44512369 odhcpd: multiple fixes
* Rewrite ndp proxy using kernel proxying
* Aid flash-renumbering in hybrid DHCPv6-mode
* Unicast RAs to RS senders
* Add support for router address

Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42944 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-17 11:18:52 +00:00
Steven Barth 65c4baa4a6 hostapd: CVE-2014-3686 fixes
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42942 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-17 06:15:35 +00:00
John Crispin 81d9f2d585 scripts: fix wrong usage of '==' operator
[base-files] shell-scripting: fix wrong usage of '==' operator

normally the '==' is used for invoking a regex parser and is a bashism.
all of the fixes just want to compare a string. the used busybox-ash
will silently "ignore" this mistake, but make it portable/clean at least.

this patch does not change the behavior/logic of the scripts.

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42911 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-14 12:21:11 +00:00
Steven Barth 0ec6c11bed netifd: Make mtu configurable of dynamic 6rd tunnel interface
Patch allows to configure the mtu of the dynamic 6rd tunnel interface when created by dhcp script.
In some setups it's desirable to have config control over the 6rd tunnel mtu to maximize the traffic throughput

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42871 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-12 12:27:21 +00:00
Steven Barth 586546daf7 odhcp6c: fix parse errors with some dhcpv6 servers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42869 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-12 12:18:33 +00:00
John Crispin 3523e0f2d6 comgt: add ncm proto support
This will not work for all board/dongle combinations until we hit 3.17.

Signed-off-by: Matti Laakso <malaakso@elisanet.fi>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42866 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-10 08:56:33 +00:00
Steven Barth 46e31e96bd ppp: add unconditional autoipv6-trigger
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42860 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-09 07:38:25 +00:00
Steven Barth ca4fa0c501 ppp: remove ugly ipv6-workaround
This is not needed after all:

Omitting option ipv6 or setting it to 'auto' will
fire up a dhcpv6 subprotocol (this was added).

Setting ipv6 to 1 will only cause the IPv6 link to
be brought up and an accompanying dhcpv6 or static
interface with ifname @wan can be used to configure addresses.

Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42859 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-09 07:35:28 +00:00
Steven Barth 143de7849f dropbear: ensure the interface has an ip-address
Use network_get_ipaddrs_all to get all ip-addresses of an interface. If the
function fails, the interface does not exists or has not any suiteable ip
addresses assigned.

Use the returned ip-address(es) to construct the dropbear listen address.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42857 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-09 07:16:35 +00:00
Steven Barth 6c80ad9288 ppp: allow auto-detecting and creation of ipv6 subinterface
this makes ipv6 with ppp a bit more comfortable

Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42854 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-08 20:37:15 +00:00
Steven Barth 4954089149 odhcp6c: fix typo in last commit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42852 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-08 15:27:17 +00:00
Steven Barth 363b7bb19b odhcp6c: don't assign addresses or prefixes prematurely
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42850 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-08 15:16:19 +00:00
Steven Barth fc78024c3e odhcp6c: ensure signal-safety of signal handlers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42841 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-08 09:58:40 +00:00
John Crispin b0ca0dd4b0 lldp: make use of new USERID syntax
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42839 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-08 08:01:33 +00:00
John Crispin 98e716884d wwan: add a generic 3g/4g proto
this proto handler will detect which of 3g, qmi, mbim, ncm or directip you need
for a stick and setup uci automagically

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42837 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-08 08:01:20 +00:00
John Crispin f93a2e4c7e comgt: split directip support into its own package
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42836 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-08 08:00:55 +00:00
John Crispin f4dd6b28f2 uqmi: dont use proto_block_restart
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42835 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-08 08:00:45 +00:00
John Crispin fd3d61ef08 uqmi: make the proto depend on the usb driver
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42834 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-08 08:00:21 +00:00
John Crispin fffd302f3c umbim: dont use proto_block_restart
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42833 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-08 08:00:17 +00:00
John Crispin ea6820d0cc umbim: work out the ifname instead of relying on it being in uci
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42832 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-08 08:00:07 +00:00
Steven Barth bb49239274 odhcp6c: add route-workaround for broken IPv6-ISPs
Some ISP seem to only do stateful DHCPv6 and not sending RAs.
This is technically broken because plain DHCPv6 doesn't carry routes.

We work around here by faking a default route to the DHCPv6 server
if we do not receive a useful RA from the ISP.

This workaround can be turned off with: option fakeroutes 0

Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42803 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-06 11:19:33 +00:00
Steven Barth 415543620a nftables: bump to 2014-09-30, disable gmp
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42802 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-06 06:24:53 +00:00
John Crispin 2e9a3b28f2 iwinfo: add AR9580 with new subsystem device ID and QCA9880 with no subsystem vendor/device IDs
The AR9580 with the new ID can be found in the EnGenius ESR900 and the
QCA9880 without any subsystem IDs can be found in the EnGenius ESR1750.

Signed-off-by: Forest Crossman <cyrozap@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42793 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-06 04:53:04 +00:00
John Crispin 3bf58c8249 hostapd: read missing parameter for dynamic VLANs
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 <reiner@reiner-h.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42787 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-06 04:52:21 +00:00
Felix Fietkau af7fe5f5e0 iproute2: add conflict for ip with ip-full
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42774 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-05 17:13:34 +00:00
Felix Fietkau 6ca4824bc3 hostapd: add conflicts with wpad(-mini) to hostapd and wpa_supplicant
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42772 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-05 16:41:50 +00:00
Felix Fietkau 16de94ff94 relayd: update to the latest version, fixes a build error with the new gcc (#18010)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42765 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-05 11:01:49 +00:00
Felix Fietkau b223fd3e4c hostapd: allow using iapp for any encryption type (fixes #18022)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42764 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-05 10:55:55 +00:00
Felix Fietkau 09cdef74a8 hostapd: merge an upstream patch for pmksa cache
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42762 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-05 10:26:26 +00:00
Felix Fietkau e684caba4e iwinfo: detect AC PHY for broadcom-wl
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42761 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-05 10:26:17 +00:00
Felix Fietkau 016f5ba570 iwinfo: detect HT PHY for broadcom-wl
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42760 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-05 10:26:10 +00:00
Felix Fietkau bfacdd543b iwinfo: fix handling of accessing nl80211 interfaces via radio*
look up device path via uci instead of assuming a direct phy index

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42759 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-05 10:26:05 +00:00
Felix Fietkau 0d160a4d3e iwinfo: enable nl80211 support based on cfg80211, not mac80211
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42758 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-05 10:25:55 +00:00
Jo-Philipp Wich 2ec28fde12 iwinfo: handle 802.11ac mode for lua
Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42757 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-04 09:38:17 +00:00
Steven Barth 7644a74452 authsae: update to latest version
Send a netlink call to leave the mesh when meshd exits
Make hunting-and-pecking loop (more) resistant to side channel attack

Signed-off-by: Michel Stam <m.stam@fugro.nl>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42750 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-02 19:47:28 +00:00
Steven Barth e3e254cd7e 6in4: Tos support
Tos support is added as a string parameter which can have the following values :
   -inherit (outer header inherits the tos value of the inner header)
   -hex value

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42749 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-02 19:38:15 +00:00
Steven Barth b5cf0a125b 6to4: Tos support
Tos support is added as a string parameter which can have the following values :
   -inherit (outer header inherits the tos value of the inner header)
   -hex value

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42748 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-02 19:38:04 +00:00
Steven Barth 35fbc3abaa 6rd: Tos support
Tos support is added as a string parameter which can have the following values :
     -inherit (outer header inherits the tos value of the inner header)
     -hex value

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42747 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-02 19:37:58 +00:00
Steven Barth b4c5339ffa IPIP: IP in IP package support
The package supports IP in IP by registering the ipip protocol handler

Following options are configurable
    -peeraddr (IPv4 remote address)
    -ipaddr (IPv4 local address)
    -ttl (time to live of encapsulating packet)
    -tos (type of service of encapsulating packet either inherit (outer header inherits the value of the inner header) or hex value)
    -df (don't fragment flag of encapsulating packet)
    -mtu (IPIP tunnel mtu)
    -tunlink (bind tunnel to this interface)
    -zone (firewall zone to which the IPIP tunnel will be added)

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42746 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-02 19:37:36 +00:00
Steven Barth 3545c2dce5 netifd: fix an error message during network shutdown
When 'wifi down' is called by /etc/init.d/network, it is run from
stop_service( ). This function is in turn invoked from stop( ).
stop( ) messes up the order by first procd_kill-ing the network
settings, then calling wifi to down the wifi networking
interfaces. By redefining stop( ) instead, the proper order is
restored.

Signed-off-by: Michel Stam <m.stam@fugro.nl>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42745 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-02 19:37:25 +00:00
Steven Barth 55316cc672 netifd: add IPIP tunnel support (thx Hans Dedecker)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42744 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-02 19:37:17 +00:00
Steven Barth 332585be14 map: fix portsets starting with 0 and use regular NAT for 1:1 MAP
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42741 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-02 19:15:38 +00:00
Felix Fietkau fed0932d4d uqmi: set data format to 802.3 at startup
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42724 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-02 12:19:37 +00:00
Felix Fietkau 6419c9a961 uqmi: do not wait for network connection before starting dhcp
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42723 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-02 12:19:26 +00:00
Felix Fietkau 03e3d0d0a4 uqmi: update to the latest version
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42722 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-02 12:19:09 +00:00
Felix Fietkau 700e098ab3 uqmi: use the autoconnect feature
Instead of connecting once and saving the packet data handle, let the
firmware handle connecting/reconnecting automatically. This is more
reliable and reduces reliance on potentially stale data.

Use the global packet data handle to attempt to disable autoconnect
before restarting the connection. This ensures that the firmware will
take the new APN/auth settings.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42721 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-02 12:18:58 +00:00
Felix Fietkau d2b5f93d8c uqmi: replace logger calls in netifd with echo
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42720 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-02 12:18:43 +00:00
Felix Fietkau b003339cfb uqmi: work out the ifname instead of relying on it being in uci
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42719 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-02 12:18:28 +00:00
Steven Barth 2fceef9017 GRE: Tos support
Tos support is added as a generic grev4/grev6 parameter which can have the following values :
     -inherit (outer header inherits the tos value of the inner header)
     -hex value

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42700 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-29 18:00:02 +00:00
Steven Barth 696b5c1e57 netifd: add support for promisc and GRE tos option
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42699 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-29 17:59:50 +00:00
Steven Barth 51e2e77081 nftables: bump for bugfixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42698 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-29 08:35:18 +00:00
Felix Fietkau c65ab70b49 iw: add support for dynamic distance selection (supported by ath9k now)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42689 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-27 21:19:27 +00:00
Felix Fietkau 36ca9108cc iw: sync nl80211.h
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42688 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-27 21:19:18 +00:00
Steven Barth 8b4e066f80 odhcp6c: work around weird ISP RS behaviour
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42674 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-27 16:57:47 +00:00
Felix Fietkau b9b19931ab comgt: fix directip auth type
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42671 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-26 15:55:45 +00:00
Steven Barth c3d564bd29 comgt: fireup a dhcpv6-client for directip as well
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42670 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-26 13:58:40 +00:00
Felix Fietkau 83e01b374f comgt: in directip, derive the wwan ifname automatically instead of specifying it in the config
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42669 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-26 13:44:21 +00:00
Steven Barth 992d1bbd8b dnsmasq: bump to 2.72
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42668 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-26 08:57:36 +00:00
Steven Barth e4c755d65f odhcpd: fix segfault when parsing domain options in UCI
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42663 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-25 11:53:12 +00:00
Felix Fietkau 763502f621 curl: only set ca path for openssl
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42662 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-25 10:51:56 +00:00
Felix Fietkau 22c9a17d25 curl: use the system certificates
Signed-off-by: Cristian Morales Vega <cristian@samknows.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42661 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-25 10:37:06 +00:00
Felix Fietkau 8256836040 comgt: initialize ifname for directip
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42658 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-24 17:04:20 +00:00
Felix Fietkau 181cc2eb18 comgt: add no_device=1 for directip proto
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42657 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-24 08:07:45 +00:00
Felix Fietkau 2fbcd366eb comgt: fix misplaced : in directip setup script
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42656 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-24 08:07:40 +00:00
Steven Barth 7050d8130b dnsmasq: fix lockup when interfaces disappear
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42648 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-22 12:07:20 +00:00
Jo-Philipp Wich 82ba2ad017 firewall: allow '*' as synonym for any / all in family and proto options
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42620 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-19 18:18:58 +00:00
Jo-Philipp Wich 17a3d853e9 firewall: fix heap corruption in fw3_bitlen2netmask() with IPv6 addresses
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42610 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-18 12:05:12 +00:00
Jo-Philipp Wich 09bc1aee9e firewall: fix invalid memory access when processing /128 IPv6 addresses from ubus, properly emit REDIRECT rules for local port forwards
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42604 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-17 22:09:52 +00:00
Steven Barth 82230772a1 nftables: introduce experimental nftables
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42598 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-17 12:11:06 +00:00
John Crispin 2d577d923d hostapd: do not remove foreign wpa_supplicant sockets
https://dev.openwrt.org/ticket/17886

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42586 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-17 07:41:31 +00:00
John Crispin aa9365231b lantiq: revert vr9 driver update as it causes problems
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42556 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-15 16:19:33 +00:00
Felix Fietkau 9fad4bd83b hostapd: remove bogus default setting for wps_pin (#17873)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42553 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-15 16:09:23 +00:00
John Crispin 0e1d636870 iproute2: update from v3.15.0 to v3.16.0
Signed-off-by: Russell Senior <russell@personaltelco.net>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42546 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-15 10:18:50 +00:00
Hauke Mehrtens db79e96601 ppp: update to version 2.4.7
This fixes: CVE-2014-3158 and some other bugs.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42525 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-13 20:56:13 +00:00
Hauke Mehrtens 0b5199d157 curl: 7.36.0 -> 7.38.0
Main changes:
- URL parser: IPv6 zone identifiers are now supported
- cyassl: Use error-ssl.h when available (drop local patch)
- polarssl: support CURLOPT_CAPATH / --capath
- mkhelp: generate code for --disable-manual as well (drop local patch)

Full release notes: http://curl.haxx.se/changes.html

MIPS 34kc binary size:
- 7.36.0 before: 82,539 bytes
- 7.38.0 after: 83,321 bytes

Signed-off-by: Catalin Patulea <cat@vv.carleton.ca>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42517 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-13 20:26:08 +00:00
Felix Fietkau 8e1b4c146e qos-scripts: disable fq_codel ecn by default to improve compatibility
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42479 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-11 23:13:24 +00:00
John Crispin 2667bfd6e1 lantiq: update to a newer versions of the vr9 drivers
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42478 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-11 18:22:31 +00:00
John Crispin 5af0ac95ab lldp: remove calls to user/group_add/exists
use the new ipkg based mechanism

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42472 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-11 12:28:22 +00:00
John Crispin c83554e93c umbim: remove superflous jshn call
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42467 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-11 12:26:52 +00:00
John Crispin d8659cb48e umbim: update to latest git
adds handling for username/password

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42466 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-11 12:26:41 +00:00
John Crispin 20c5127df3 comgt: add directip proto
add a proto handler for sierra wireless directip modems

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42465 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-11 12:26:31 +00:00
Felix Fietkau 5d8c6d088a hostapd: add ubus bindings for wps
With this patch WPS discovery can be started or canceled over ubus if
WPS is enabled in wireless configuration. This is equivalent of
'hostapd_cli wps_pbc' and 'hostapd_cli wps_cancel' commands.

Signed-off-by: Petar Koretic <petar.koretic@sartura.hr>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42459 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-10 13:01:53 +00:00
Steven Barth 07b77bfef0 netifd: work-around kernel IPv6 on-link route issue
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42439 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-08 14:45:56 +00:00
John Crispin 8f5e75b7a2 mdns: update to latest git head
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42407 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-02 21:39:40 +00:00
Felix Fietkau ad99cc2f44 netifd: update to the latest version, adds interface cleanup fixes
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42345 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-31 13:09:01 +00:00
Felix Fietkau b30595ab51 netifd: update to the latest version, fixes proto-shell teardown after renew
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42344 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-31 12:26:26 +00:00
John Crispin 23bf27fad7 dropbear: add mdns support to the init.d script
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42326 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-29 18:16:41 +00:00
John Crispin 1601d4ca84 mdns: update to latest git
* ipv6
* 4 bugs in the dns parser
* service announcement
* tx goodbye support
* proper handling of rx goodbye

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42325 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-29 18:16:32 +00:00
John Crispin 93a958ff11 dnsmasq: Make the --dhcp-host logic easier to understand
Use an if/else statement to cover the two different syntaxes.  Add
comments explaining what the end results should look like.

This patch should not change the script's output.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42320 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-28 06:27:57 +00:00
John Crispin 2abc3f33e5 dnsmasq: Fix hosts file format when MAC address is not specified
An entry like this in /etc/config/dhcp:

    config 'host'
        option 'name' 'pc2'
        option 'ip' '192.168.100.56'
        option 'dns' '1'

results in a /tmp/hosts/dhcp entry that looks like this:

    192.168.100.56 .lan

Obviously it should say "pc2.lan".

This happens because $name is set to "" in order to support the MAC-less
syntax: "--dhcp-host=lap,192.168.0.199".  Fix this by reordering the
operations.  Also, refuse to add a DNS entry if the hostname or IP is
missing.

Fixes #17683

Reported-by: Kostas Papadopoulos <kpapad75@travelguide.gr>
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42319 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-28 06:27:53 +00:00
John Crispin 299986df60 dnsmasq: Create rDNS records for LuCI "Hostnames"
LuCI creates "domain" UCI config sections, which the dnsmasq init file
then, currently, translates into "address" config lines. This is not
the correct usage of "address" (see r36943), and also causes rDNS
records to not be created. This patches dnsmasq.init to utilize the
additional hosts file introduced in r40799 for such domain names,
resolving both issues.

Signed-off-by: Tyler Fenby <tylerf@securecominc.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42318 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-28 06:27:49 +00:00
John Crispin 5c4e3032a1 umbim: update to latest git
add pincode sanitization and handling for authproto/user/pass

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42299 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-26 09:36:59 +00:00
Jo-Philipp Wich 6894492f81 uhttpd: do not configure TLS parameters if libustream-ssl is not present
A quite frequent problem after sysupgrading from an older, SSL enabled build
is that ustream-ssl is not installed so uhttpd fails to come up again due to
https listening directives in the preserved configuration.

Skip key/cert and ssl listen options when libustream-ssl.so is not present.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42284 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-25 12:39:34 +00:00
John Crispin e723b7928a package/*: remove useless explicit set of function returncode
somebody started to set a function returncode in the validation
stuff and everybody copies it, e.g.

myfunction()
{
	fire_command

	return $?
}

a function automatically returns with the last returncode,
so we can safely remove the command 'return $?'. reference:

http://tldp.org/LDP/abs/html/exit-status.html
"The last command executed in the function or script determines the exit status."

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42278 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-25 06:35:50 +00:00
Steven Barth e7adecda3f odhcp6c: enable softwires support by default
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42274 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-25 06:11:53 +00:00
Jo-Philipp Wich 9a4301d15e iwinfo: properly decode SSIDs when scanning through wpa_supplicant
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42273 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-24 21:42:26 +00:00
Steven Barth 7bbfb59996 odhcpd: fix static lease behavior with dhcpv4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42270 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-24 08:12:57 +00:00
John Crispin c3f7b0fe6d umbim: add netifd proto handler for mbim style lte modems
tested on vodafone k5105

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42262 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-22 19:02:30 +00:00
Felix Fietkau d55fa23224 xtables-addons: update to version 2.5
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42256 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-21 19:12:34 +00:00
Jonas Gorski 0d96d86bc3 dropbear: restore performance by disabling mips16
Disable MIPS16 to prevent it negatively affecting performance.
Observed was a increase of connection delay from ~6 to ~11 seconds
and a reduction of scp speed from 1.1MB/s to 710kB/s on brcm63xx.

Fixes #15209.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42250 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-21 11:29:04 +00:00
Jonas Gorski a67d5e1eeb dropbear: fix keepalive more
Add a further upstream commit to more closely match the keepalive
to OpenSSH.

Should now really fix #17523.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42249 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-21 11:29:02 +00:00
John Crispin 16be44f48f firewall: the firewall did not start properly on boot
https://dev.openwrt.org/ticket/17593

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42233 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-21 09:53:25 +00:00
Steven Barth 5401347fda dnsmasq: fix a race condition possibly leading to lockup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42225 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-20 09:52:29 +00:00
Steven Barth 8d22f9d0f4 odhcpd: various DHCPv4 and DHCPv6 fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42217 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-19 05:58:51 +00:00
Steven Barth bb96082ca0 dnsmasq: respect option dhcpv4 disabled in dhcp-config
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42216 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-19 05:58:44 +00:00
Jonas Gorski 8cc51ba777 dropbear: fix keepalive with putty
Don't send SSH_MSG_UNIMPLEMENTED for keepalive responses, which broke
at least putty.

Fixes #17522 / #17523.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42162 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-13 20:49:56 +00:00
Steven Barth fa2bcf4fda netifd: assign ipv6-prefixes with length <64 with /64 on-link routes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42161 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-13 14:57:11 +00:00
Steven Barth b1603fdc88 odhcpd: improve DHCPv6-PD detection
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42160 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-13 14:57:07 +00:00
Steven Barth 1bfc9798bc ppp: enable IPv6CP by default
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42158 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-13 10:18:20 +00:00
Steven Barth 269de3d2b3 odhcpd: multiple DHCPv4 improvements (thx Christian Mehlis)
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42153 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-12 13:30:04 +00:00
Jo-Philipp Wich 5447ad5ac7 package: fix segfault of iwinfo.scanlist("radio0").
This is a bug revealed in r41830.

First, the static variable `char nif[IFNAMSIZ]` of nl80211_phy2ifname()
would be zeroed out if the argument is "wlan0" or the like.  This will
happen in the following call stack.

 nl80211_get_scanlist("radio0", buf, len);
   nl80211_phy2ifname("radio0")			// return static var nif with content "wlan0"
   nl80211_get_scanlist(nif, buf, len);		// tail call
     nl80211_get_mode(nif);
        nl80211_phy2ifname(nif);		// zero out nif

Later we try nl80211_ifadd("") which was supposed to create interface
"tmp.", but that won't happen because nl80211_msg() will put an invalid
ifidx 0 to the nlmsg.

Then iwinfo_ifup() and iwinfo_ifdown() would fail and happily
nl80211_get_scanlist() returned 0 and left *len undefined.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42151 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-12 11:14:11 +00:00
Jo-Philipp Wich 22bbd9f08e firewall: fix potential NULL pointer access
Properly skip struct ifaddr entries with NULL ifa_addr, thanks Kostas Papadopoulos for reporting.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42138 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 17:45:18 +00:00
Steven Barth 3d227bab23 dropbear: update to 2014.65
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42131 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 13:02:43 +00:00
Jo-Philipp Wich 2b24ce9a14 firewall: implement selective conntrack flushing (#10225)
Utilize the new selective conntrack flushing facility to clear
out active conntrack entries referring to old IP addresses after
a firewall reload.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42114 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 09:41:20 +00:00
Luka Perkov ae4ebf4e5a hostapd: fix some whitespaces
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42111 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 08:44:48 +00:00
Steven Barth f34aeeedd4 odhcpd: avoid logspam in certain corner cases
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42067 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-08 08:45:33 +00:00
Steven Barth 9ea186f882 odhcpd: write host-entries for all leased IPv6 addresses
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42065 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-08 05:30:59 +00:00
Felix Fietkau 54e8abbb4c xtables-addons: remove version 1.x for old kernels
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42047 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-07 19:30:33 +00:00
Steven Barth 4aa52b6871 odhcpd: update hostfile more often
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42042 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-07 18:07:37 +00:00
Steven Barth 40858eb2d4 iptables: add kmod-ipt-nf* to dependency list of iptables-mod-nf*.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42034 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-07 12:32:33 +00:00
Steven Barth 523985dbeb netifd: unblock some proto shell actions in teardown state
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42032 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-07 10:21:08 +00:00
Steven Barth b1be939288 odhcpd: correct incorrect commit-id in last commit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42026 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-07 05:50:44 +00:00
Steven Barth bd218a4aaf odhcpd: skip MSRs in RAs for prefixes with same size as DP
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42024 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-07 05:34:02 +00:00
Steven Barth a150a9c763 iptables: NFLOG and NFQUEUE targets' full support
NFLOG and NFQUEUE targets' full support for iptables.

Includes all needed kernel modules (Xtables's and Netlink's)
 and userspace libraries.
All added kernel modules can be individually disabled,
 all other new libraries get their own individual packages.

Reported-by: Fabian Hugelshofer <hugelshofer2006@gmx.ch>
Reported-by: Rainer Poisel <rainer.poisel@fhstp.ac.at>
Reported-by: Derek LaHousse <dlahouss@mtu.edu>
Signed-off-by: Guillaume Déflache <guillaume.deflache@ibwag.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42022 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-07 04:42:22 +00:00
Steven Barth 5d618642a6 netifd: disable ds-lite, map & gre for old kernels
this unbreaks netifd compilation on old kernels

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42019 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-06 19:57:19 +00:00
Felix Fietkau ac022524ff iwinfo: allow scans in AP mode on nl80211
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42014 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-06 17:07:18 +00:00
Steven Barth 2f757bc989 netifd: minor fixes (thanks Hans Dedecker)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42000 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-05 10:03:10 +00:00
Steven Barth 658db62b29 gre: Change hostdependcy to remote endpoint tunnel address
Depend on the GRE tunnel peeraddr to trigger setup of the tunnel interface.
Addresses the issue reported in https://lists.openwrt.org/pipermail/openwrt-devel/2014-August/027201.html

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41998 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-05 09:57:55 +00:00
Felix Fietkau 89be00c4f0 hostapd: revert bogus version that was added in r41872
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41960 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-03 10:53:40 +00:00
Felix Fietkau 658e03b89e iputils: add missing includes, fix musl support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41958 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-03 10:45:36 +00:00
Felix Fietkau f9e118358e igmpproxy: add missing include
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41957 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-03 10:45:31 +00:00
Felix Fietkau 56cfc363b1 iwcap: add missing include
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41956 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-03 10:45:28 +00:00
Felix Fietkau 7daf902bbf iwinfo: add missing include statement
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41955 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-03 10:45:23 +00:00
Jo-Philipp Wich 1706a28205 netfilter: introduce xt_id match
This commit implements a new netfilter match "xt_id" which can be used to
attach unsigned 32bit IDs to iptables rules.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41945 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-01 22:49:47 +00:00
Steven Barth 1182d2ae41 gre: Generic Routing Encapsulation package support
The package supports Generic Routing Encapsulation support by registering following protocol kinds:
    -gre
    -gretap
    -grev6
    -grev6tap

Following options are valid for gre and gretap kinds:
    -ipaddr
    -peeraddr
    -df
    -mtu
    -ttl
    -tunlink
    -zone
    -ikey
    -okey
    -icsum
    -ocsum
    -iseqno
    -oseqno

The gretap kind supports additionally the network option

Following options are valid for grev6 and grev6tap kinds:
    -ip6addr
    -peer6addr
    -weakif
    -mtu
    -ttl
    -tunlink
    -zone
    -ikey
    -okey
    -icsum
    -ocsum
    -iseqno
    -oseqno

The grev6tap kind supports additionally the network option

Typical network config for a GREv4 tunnel :

config interface 'gre'
        option peeraddr '172.16.18.240'
        option mtu '1400'
        option proto 'gre'
        option tunlink 'wan'
        option zone 'tunnel'

Typical network config for a GREv4 tap tunnel :

config interface 'gretap'
        option peeraddr '195.207.5.79'
        option mtu '1400'
        option proto 'gretap'
        option zone 'tunnel'
        option tunlink 'wan'
        option network 'wlan_ap'

I added myself as maintainer for the moment; feel free to change.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41897 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-30 13:22:24 +00:00
Steven Barth bcd1a1c4c3 netifd: fixes and GRE support (thx Hans Dedecker)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41896 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-30 13:21:52 +00:00
Steven Barth f2476799ba odhcp6c: Fix white space typo in dhcpv6.script
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41893 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-30 13:18:01 +00:00
Steven Barth d562b50a50 netifd: suppress fw3 warnings in dhcp script
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41892 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-30 13:17:56 +00:00
Steven Barth ea22ffc072 netifd: more race condition fixes in proto-shell
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41887 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-29 17:24:23 +00:00
John Crispin d886f03017 ppp: fix a buffer overrun in the ms chap code
https://dev.openwrt.org/ticket/17296

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41882 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-29 12:18:52 +00:00
Jo-Philipp Wich 4c377f4f71 hostapd: Reintroduce Full Dynamic VLAN support
This patch brings full dynamic vlan support to netifd that existed in hostapd.sh in Attitude Adjustment.

Signed-off-by: Joseph CG Walker <Joe@ChubbyPenguin.net>
[jow@openwrt.org: changed commit message, rebased on top of current hostapd.sh]
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41872 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-29 09:48:02 +00:00
Felix Fietkau da75170df2 hostapd: add more missing ifdefs
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41863 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-28 22:52:39 +00:00
Steven Barth e503cbee4a netifd: more dynamic interface improvements
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41862 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-28 20:35:53 +00:00
Felix Fietkau b5a1ebe6df hostapd: add missing ifdef
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41855 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-28 10:36:51 +00:00
Felix Fietkau 3d32b966ca netifd: fix a small issue in r41831
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41836 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-26 14:35:15 +00:00
Felix Fietkau 025d73b5a7 odhcp6c: suppress fw3 warnings
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41833 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-26 12:23:28 +00:00
Felix Fietkau d3a8609c68 netifd: update to the latest version, fixes a race condition with renew/setup
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41831 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-26 01:46:34 +00:00
Jo-Philipp Wich babd1e2b82 iwinfo: avoid creating tmp.* ifaces for scanning
If the iface to scan on already is in ad-hoc, station or monitor mode
then do not spawn a temporary iface.

Also preventively disable IPv6 on temporary ifaces before bringing them
up to avoid potential security issues.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41830 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-25 15:52:17 +00:00
Jo-Philipp Wich 520854d0e9 iwinfo: fix secondary radios being misreported as ralink device
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41829 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-25 14:36:43 +00:00
Felix Fietkau d5f637f327 hostapd: prevent spurious 20/40 mhz channel bandwidth switches if noscan is enabled
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41828 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-25 14:29:58 +00:00
Jo-Philipp Wich e9fa0943eb iwinfo: continue scanning even if temporary mac cannot be changed
So far iwinfo aborted a wifi scan attempt if the mac of the spawned
interface could not be changed. Change the code to try anyway - this
should fix wifi scanning on RaLink devices.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41826 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-25 14:11:50 +00:00
Steven Barth 5a4fb3a6fa netifd: Fix some race-conditions in interface handling
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41825 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-24 22:05:19 +00:00
Steven Barth 176bac80c0 softwires: redesign dhcp(v6) provisioning
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41823 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-24 14:17:41 +00:00
Felix Fietkau c8e3e8b83e netifd: update to the latest version, enables bridge multicast querier and fixes interface reload issues with wifi
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41818 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-24 09:13:04 +00:00
Steven Barth 1f81f496a7 odhcpd: don't lose downstream routes for managed PD
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41816 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-23 21:14:56 +00:00
Steven Barth 115818ca1b odhcpd: revert NDP relay rewrite (performance issue still fixed)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41808 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-22 21:52:20 +00:00
Steven Barth 3b82d0f81a odhcpd: fix typo in ubus integration (thanks Markus Stenberg)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41796 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-21 21:57:15 +00:00
John Crispin 6a9576ca75 lantiq-dsl: add 2 ugly workarounds for the IB to work
the IB tries to run the enable target on all init.d scripts.
It fails when including the dsl_control helper. Check for existence
prior to the include.

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41787 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-21 18:41:46 +00:00
Steven Barth 55bee921f6 odhcp6c: Send RS with source link-layer address if possible
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41778 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-21 10:11:09 +00:00
Jo-Philipp Wich 4f68894215 firewall: implement support for abritary netmasks
Properly parse and pass arbritary netmasks to iptables, this allows
specifying ranges like '::c23f:eff:fe7a:a094/::ffff:ffff:ffff:ffff' to
match the host part of an IPv6 address regardless of the currently active
IPv6 prefix.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41760 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-19 16:30:47 +00:00
Felix Fietkau 872325fe93 netifd: update to the latest version, adds a small validation fix
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41731 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-18 11:45:42 +00:00
Felix Fietkau 67d6d6034b qos-scripts: convert to procd
Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41730 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-18 11:25:07 +00:00
Steven Barth 82dcb5a1d6 odhcpd: rewrite NDP proxy feature
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41703 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-17 19:11:17 +00:00
Felix Fietkau 49f26fc73e netifd: update to the latest version, enables igmp snooping by default
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41683 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-17 14:55:17 +00:00
Felix Fietkau 0b2a2f93df qos-scripts: fix ingress packet marking with ifb
Split connection mark into two parts:

The lower nibble contains the confirmed conntrack mark which is not
generated by default/reclassify rules.
The upper nibble contains the current value specified by
default/reclassify rules.

For egress, the default/reclassify value is preferred
For ingress, the connection mark is preferred

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41682 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-17 12:02:06 +00:00
Felix Fietkau 221bc9dbb1 iwinfo: fix crash on parsing mtd (#15807)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41675 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-16 18:57:23 +00:00
Felix Fietkau 4b085f6a37 hostapd: add a require_mode option in wifi-device sections to select the minimum hardware mode that the AP requires from clients
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41665 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-15 10:30:08 +00:00
Steven Barth 399db2dbe9 odhcpd: disable packet socket if unneeded to preserve performance
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41644 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-14 13:39:03 +00:00
Jo-Philipp Wich 2d1acf1049 firewall: fix segfault introduced by latest update
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41558 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-10 16:44:20 +00:00
Jo-Philipp Wich 738111041c firewall: fix regressions introduced after latest ubus rework
The commit 92281eb747b56e748b7c3d754055919c23befdd4 broke fw3_ubus_addresses() so that
no addresses where returned at all, this caused fw3 to not emit NAT reflection rules
anymore.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41556 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-10 10:21:17 +00:00
Felix Fietkau bbf839a3e3 qos-scripts: remove maxsize options and packet size based reclassify from the default config
They should be unnecessary with fq_codel, and simplifying rules helps
with performance

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41549 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-08 11:19:51 +00:00
Hauke Mehrtens a8134fb250 samba36: update to minor version 3.6.24
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41525 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-06 11:23:13 +00:00
Felix Fietkau a6f2a0aab3 samba36: disable acl support to avoid picking up a dependency on libacl (#16988)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41509 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-04 11:42:57 +00:00
Felix Fietkau 787f069150 samba36: do not pick up libattr as a dependency
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41508 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-04 09:55:14 +00:00
Jo-Philipp Wich a61c1dd597 firewall: fix issue with parsing network options
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41491 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-03 09:21:44 +00:00
Hauke Mehrtens f6523f58d9 iwinfo: fix string format for country code
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41485 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-02 21:43:17 +00:00
Felix Fietkau 8ef67937f1 igmpproxy: automatically add firewall rules for multicast routing based on the current config
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41483 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-02 19:18:23 +00:00
Felix Fietkau 3a49df3b9c firewall: update to the latest version, adds support for fetching firewall rules from procd
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41480 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-02 19:18:13 +00:00
Felix Fietkau d0668e0a94 iptables: refresh patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41479 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-02 19:18:09 +00:00
Jo-Philipp Wich 62fe9393f9 iproute2: re-enable PIC, it is only applied to libnetlink.a and required for collectd
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41460 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-02 12:41:36 +00:00
Jo-Philipp Wich 4af52fee4e iptables: pass --disable-ipv6 is CONFIG_IPV6 is unset
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41458 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-02 11:39:24 +00:00
John Crispin ef9c64566e ppp: fix keep alive option
currently the keepalive option needs to be removed to fully disable it. this patch allows us to set it to 0.

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41438 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-01 10:26:07 +00:00
Steven Barth 6ac36eaf7f odhcpd: some minor DHCP/DHCPv6 fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41432 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-01 08:15:28 +00:00
Felix Fietkau 773c6a602e openvpn: fix compile error with musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41425 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-30 15:34:03 +00:00
Felix Fietkau 5e1d1625d0 openvpn: update to version 2.3.4
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41416 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-30 12:43:03 +00:00
Felix Fietkau e59dd23a46 build: disable the PKG_CHECK_FORMAT_SECURITY check for the failing packages
The idea is to gradually fix the packages

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41411 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-30 08:19:48 +00:00
Steven Barth d5441bd8c8 odhcpd: fix build failure with musl
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41409 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-30 07:56:33 +00:00
Felix Fietkau f9ab4e48c1 pppd: fix build with musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41404 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-29 22:26:08 +00:00
Felix Fietkau 4586609601 samba36: fix build error with musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41402 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-29 22:26:02 +00:00
Felix Fietkau 25ac0f7db4 relayd: update to the latest version, fixes musl compile and multicast relaying
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41401 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-29 22:25:58 +00:00
Felix Fietkau 494e56278e netifd: update to the latest version, fixes a crash on reload with hotplugged devices
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41393 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-29 21:27:28 +00:00
Felix Fietkau cb308e2b1b netifd: update to the latest version, addds a few fixes and enables multicast->unicast for igmp snooping on wireless devices
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41390 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-29 18:34:22 +00:00
Felix Fietkau 0304938a86 conntrack-tools: fix build on octeon
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41377 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-29 11:33:03 +00:00
Felix Fietkau 5f42069b4f conntrack-tools: leave out bogus reject files on unpacking
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41376 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-29 11:33:00 +00:00
Jo-Philipp Wich 5b32f12d22 6in4: send password unhashed
The preferred he.net /nic/update endpoint expects the password or updatekey in
plain text and not as md5 sum, therfore remove the hashing operation from the
script.

This effectively renders the "updatekey" option redundant but we keep it around
for backwards compatibility. Both "option password" and "option updatekey" will
have end up in the "&password=" parameter of the update url and are passed through
unmodified.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41358 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-27 10:40:44 +00:00
Steven Barth 91a26e0d26 firewall3: add fw3 zone function to enumerate devices
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41349 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-26 12:20:47 +00:00
John Crispin c1e89aba4d mdns: add the new openwrt mdns daemon
this is still wip, you can use the following ubus calls.

ubus call mdns scan	# triggers a scan
ubus call mdns browse	# look at the currenlty cached records
ubus call mdns hosts	# look at the currenlty cached hosts

TODO
- ipv6, currenlty AAAA records are handled but only on v4 sockets
- finish the service announce code

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41345 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-26 11:43:34 +00:00
John Crispin f2d7587246 iputils: fix compile when using eglibc
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41342 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-26 11:42:57 +00:00
Steven Barth 3b59de8bc7 dnsmasq: use config_get_bool for dnsmasq
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41302 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-22 15:34:36 +00:00
Felix Fietkau d1c5a5fecc iw: update to 3.15
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41299 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-22 11:42:28 +00:00
Steven Barth 5691e7e3ec dnsmasq: set procd respawn
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41297 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-22 09:08:14 +00:00
Steven Barth 33b7149349 netifd: various routing table handling fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41287 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-20 17:51:25 +00:00
Jo-Philipp Wich 7dcf285ab0 Revert "netifd: fix handling of "lookup main" for ip rules (#15315)"
The netifd fixes went to the wrong repository, revert until it is sorted out.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41283 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-20 12:28:35 +00:00
Jo-Philipp Wich 4472de6afa netifd: fix handling of "lookup main" for ip rules (#15315)
Reworks the handling of RT_TABLE_MAIN in system-linux.c so that ip rules
with lookup main can be properly setup.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41282 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-20 09:58:16 +00:00
Steven Barth f439aef6cd dnsmasq: removing nettle 3.0 support due to nettle downgrade
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41264 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-18 17:06:37 +00:00
Steven Barth c4c0b61fb7 odhcpd: improve static DHCPv4 leases (thanks arnd)
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41260 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-18 12:10:10 +00:00
Steven Barth 7272a611a1 netifd: various bugfixes (thanks Hans Dedecker)
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41259 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-18 11:29:09 +00:00
John Crispin 4e453069d6 relayd: update to latest git head
this fixes multicast fowarding on relayd links

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41254 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-18 10:08:05 +00:00
Steven Barth 12b41b0c5f dnsmasq: compatibility with nettle 3.0
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41249 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-18 10:04:47 +00:00
Steven Barth 3d5f483474 dnsmasq: various house-keeping updates
* Add Authoritative DNS and IPSET to full variant
* Remove some bloat from IPSET support
* Reintroduce "DHCP no address warning"-patch

Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41246 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-18 10:04:34 +00:00
Steven Barth 15646b2175 dnsmasq: add UCI DNSSEC runtime support
Ship keys for the root zone and add two uci options to enable
DNSSEC checks:

Option 'dnssec': Activate DNSSEC validation
Option 'dnsseccheckunsigned': Ensure answers without DNSSEC are in
unsigned zones.

Signed-off-by: Andre Heider <a.heider@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41245 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-18 10:04:29 +00:00
Steven Barth 10cb433539 dnsmasq: Add a full variant
This variant includes support for DHCPv6 and DNSSEC.
DNSSEC adds a dependency on libnettle.

Signed-off-by: Andre Heider <a.heider@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41244 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-18 10:04:25 +00:00
Steven Barth 01a531434d dnsmasq: add upstream patch to build against libnettle-mini
Signed-off-by: Andre Heider <a.heider@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41243 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-18 10:04:21 +00:00
Steven Barth 251afc0c34 dnsmasq: respect target's LDFLAGS
Append local flags, don't overwrite.

Signed-off-by: Andre Heider <a.heider@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41242 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-18 10:04:17 +00:00
Steven Barth 06e56f40f6 dnsmasq: use COPTS for compile time options
As documented in config.h.
Doing otherwise will break dnsmasq's pkg-wrapper script to find its
libs to link to.

Signed-off-by: Andre Heider <a.heider@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41241 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-18 10:04:02 +00:00