Commit graph

4830 commits

Author SHA1 Message Date
Jo-Philipp Wich
375a476d27 libs/web: rework hostname match to not allow arbritary sequences of numbers and dots 2011-12-16 06:05:51 +00:00
Jo-Philipp Wich
3a0905f21c libs/web: add list(...) datatype for space separated lists of arbritary datatypes 2011-12-16 05:52:24 +00:00
Jo-Philipp Wich
ca7bc48ebc [PATCH] Abstract address UNIX sockets not binding properly (by capnbry@gmail.com, )
In , I stated abstract namespace and autobound abstract namespace datagram UNIX domain sockets work perfectly with nixio. However, I may have jumped the gun on that conclusion. Turns out they work perfectly for only one 
concurrent connection.

The problem is that when binding to an abstract address socket, which begins with a NULL byte, nixio strncpy's the name into the sockaddr_un structure, which effectively copies nothing. It then binds to an address of 180 NULLs, 
which is completely legal, but obviously you run into problems when a second client tries to bind to the same address.

The rules are as follows ( http://linux.die.net/man/7/unix) for the names:

  * If the name is blank, bind() should pass that the addrlen of sizeof(sa_family_t) and Linux will autobind a name that begins with null and is followed by 5 digits.
  * If the first character of the name is non-null, the name is a pathname and is null-terminated. addrlen should be sizeof(sockaddr_un), but the length can also be the pathname len + sizeof(sa_family_t) as the value will be 
null-terminated by the kernel unix socket driver
  * If the first character is null, the address is abstract and the value should not be null-terminated and addrlen is pathname + sizeof(sa_family_t) 

The attached patch fixes bind/connect/sendto by shortening the addrlen passed to be pathname len + sizeof(sa_family_t), which generates the correct socket names for all 3 cases above.
It also fixes the address returned by recvfrom, which currently returns a blank string for any abstract address socket (as they begin with a null).
2011-12-16 02:10:37 +00:00
Jo-Philipp Wich
5c1ef9a0a6 applications/luci-firewall: allow negated uci identifiers, hostnames and ip addresses in zone masq src/dest fields 2011-12-16 01:25:07 +00:00
Jo-Philipp Wich
757e9c2f1c libs/web: add missing parts of previous commit 2011-12-16 01:18:34 +00:00
Jo-Philipp Wich
cdcfb5502b libs/web: implement "network" cbi datatype 2011-12-16 01:18:15 +00:00
Translation System
286a822e7f Commit from LuCI Translation Portal by user jow.: 60 of 108 messages translated (0 fuzzy). 2011-12-14 15:59:26 +00:00
Translation System
19539313b4 Commit from LuCI Translation Portal by user jow.: 8 of 222 messages translated (0 fuzzy). 2011-12-14 15:58:50 +00:00
Jo-Philipp Wich
a8024bc0da applications/luci-statistics: add iwinfo config 2011-12-14 15:48:59 +00:00
Jo-Philipp Wich
c5811d52d0 libs/web: allow one-character hostnames 2011-12-14 15:01:54 +00:00
Jo-Philipp Wich
3bccd25281 modules/admin-full: probe for EAP support in wpad/hostapd/wpa_supplicant and offer wpa/wpa2 only if it is present 2011-12-13 15:57:32 +00:00
Jo-Philipp Wich
1623363363 applications/luci-statistics: add iwinfo support to stat-genconfig 2011-12-13 14:06:02 +00:00
Translation System
9ee55fca4a Commit from LuCI Translation Portal by user jow.: 787 of 812 messages translated (0 fuzzy). 2011-12-12 14:43:13 +00:00
Jo-Philipp Wich
67228e9c96 po: fix swapped german translation of HT40+ and HT40-, thanks Daniel Golle 2011-12-12 14:36:25 +00:00
Jo-Philipp Wich
c833c96750 applications/luci-statistics: fix controller () 2011-12-12 14:13:07 +00:00
Translation System
45985e01de Commit from LuCI Translation Portal by user jow.: 2 of 2 messages translated (0 fuzzy). 2011-12-11 16:25:14 +00:00
Translation System
5a973282ff Commit from LuCI Translation Portal by user jow.: 3 of 59 messages translated (0 fuzzy). 2011-12-11 16:25:03 +00:00
Translation System
07f619389a Commit from LuCI Translation Portal by user jow.: 9 of 9 messages translated (0 fuzzy). 2011-12-11 16:25:01 +00:00
Translation System
ddb8cea250 Commit from LuCI Translation Portal by user jow.: 76 of 77 messages translated (0 fuzzy). 2011-12-11 16:24:51 +00:00
Translation System
76487bc7e4 Commit from LuCI Translation Portal by user jow.: 812 of 812 messages translated (0 fuzzy). 2011-12-11 16:21:18 +00:00
Translation System
71b906f179 Commit from LuCI Translation Portal by user jow.: 3 of 222 messages translated (0 fuzzy). 2011-12-09 18:43:03 +00:00
Jo-Philipp Wich
bd3a414f65 contrib/package: make luci-app-statistics depend on collectd-mod-iwinfo 2011-12-09 18:06:38 +00:00
Jo-Philipp Wich
86a5b610fe protocols/core: change vendorclass option to vendorid to match actual OpenWrt implementation 2011-12-08 16:52:45 +00:00
Jo-Philipp Wich
3d2468cf34 modules/admin-full: fix System -> Administration menu if dropbear is not installed 2011-12-08 03:35:27 +00:00
Translation System
84d97024ec Commit from LuCI Translation Portal by user jow.: 1 of 222 messages translated (0 fuzzy). 2011-12-08 02:51:11 +00:00
Translation System
7965f35faf Commit from LuCI Translation Portal by user jow.: 43 of 64 messages translated (0 fuzzy). 2011-12-08 02:49:22 +00:00
Jo-Philipp Wich
8c3373c0fd po: fix charset in some ukrainian language files 2011-12-08 02:05:49 +00:00
Jo-Philipp Wich
38ce8c3c69 po: sync statistics translations 2011-12-08 02:02:54 +00:00
Jo-Philipp Wich
fbc1bdf2d3 po: add pbx-voicemail translation template 2011-12-08 00:58:48 +00:00
Jo-Philipp Wich
1934b1630e po: initialize pbx-voicemail translations 2011-12-08 00:58:26 +00:00
Jo-Philipp Wich
6c487cde9a applications/luci-statistics: drop support for wireless plugin, add iwinfo replacement 2011-12-07 21:08:49 +00:00
Jo-Philipp Wich
b39ea9e637 applications/luci-statistics: remove plugin overview pages, jump to first plugin of each category instead 2011-12-07 21:00:40 +00:00
Iordan Iordanov
00a2d24d28 1) Changed "express" to "priority" when inserting the QoS rules. 2011-12-07 07:35:40 +00:00
Jo-Philipp Wich
5e83af45ae modules/admin-full, po: s/libiwinfo/libiwinfo-lua/ 2011-12-06 11:00:33 +00:00
Jo-Philipp Wich
df3ee4c199 libs/core: fix undefined tostring() in network model 2011-12-05 19:36:50 +00:00
Jo-Philipp Wich
9fa385a7ec modules/admin-full: fix removal of wireless networks if radio is disabled 2011-12-05 19:34:47 +00:00
Jo-Philipp Wich
2221b44d98 modules/admin-core: expose txpower offset in wifi json status 2011-12-05 18:35:00 +00:00
Jo-Philipp Wich
fd130ead81 libs/core: expose txpower offset values in network model 2011-12-05 18:34:22 +00:00
Jo-Philipp Wich
c47e0596dd modules/admin-full: use new iwinfo capabilities to display shifted tx power values 2011-12-05 18:29:04 +00:00
Jo-Philipp Wich
f6ee6322f9 From c63e369d57cb6862a8890c7b2ee1b6b449b2c42d Mon Sep 17 00:00:00 2001
From: Gabor Juhos <juhosg@openwrt.org>
Date: Mon, 5 Dec 2011 14:36:34 +0100
Subject: [PATCH] libs/sys: read model name from /tmp/sysinfo/model if present

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
2011-12-05 16:38:54 +00:00
Jo-Philipp Wich
e046455389 applications/luci-statistics: rework handling of index and detail graphs
Instead of coding the display logic into the graph models, simply annotate
graph models with .detail = true/false and let the renderer decide which
to pick when.
2011-12-05 14:09:24 +00:00
Jo-Philipp Wich
239672e76b contrib: drop libiwinfo, moved to OpenWrt trunk 2011-12-03 14:10:49 +00:00
Jo-Philipp Wich
486770051b libiwinfo: reimplement iwinfo.lua in C and package it as "iwinfo" 2011-12-03 00:22:25 +00:00
Jo-Philipp Wich
c3c574d8c9 contrib/package: depend on libiwinfo-lua 2011-12-02 20:57:09 +00:00
Jo-Philipp Wich
9c372e9c36 libiwinfo: rename liblua files to lua 2011-12-02 20:53:11 +00:00
Jo-Philipp Wich
89d48861e0 libiwinfo: major changes
- move own headers to include/iwinfo/ and shipped ones to include/iwinfo/api/
	- split into libiwinfo and libiwinfo-lua which contains only the binding
	- provide a public api for libiwinfo
	- install development headers and shared objects
2011-12-02 20:48:08 +00:00
Iordan Iordanov
714727c344 1) Added a couple more sounds. 2011-12-01 22:26:48 +00:00
Iordan Iordanov
f932acab10 1) Added sounds needed for authentication app.
2) Added license and attribution for sounds
3) Added linking sounds into the asterisk sounds directory.
2011-12-01 22:14:14 +00:00
Jo-Philipp Wich
6f46d97b76 libiwinfo: clear buffer in nl80211_ifname2phy(), prevents running operations against the wrong phy 2011-12-01 16:18:37 +00:00
Iordan Iordanov
8fd3c49a13 1) Now loading the func_timeout.so module used to set DISA timeouts. 2011-11-30 23:12:42 +00:00