Commit graph

4840 commits

Author SHA1 Message Date
Jo-Philipp Wich
161218a576 libs/web: fix undesired autofocus of DynamicList widget 2011-12-20 02:56:03 +00:00
Jo-Philipp Wich
6ae669da06 libs/web: improve ip6addr datype validation, accept both CIDR and IP/Mask notation 2011-12-20 02:44:32 +00:00
Jo-Philipp Wich
78332ec723 po: update firewall translations 2011-12-20 00:16:32 +00:00
Jo-Philipp Wich
5de0c58bd9 applications/luci-firewall: make rule descriptions fully translateable 2011-12-20 00:08:07 +00:00
Translation System
50380b9fb6 Commit from LuCI Translation Portal by user jow.: 10 of 222 messages translated (0 fuzzy). 2011-12-19 21:53:30 +00:00
Jo-Philipp Wich
d942285d01 themes/openwrt: add some new CSS classes used by firewall ui 2011-12-19 21:20:57 +00:00
Jo-Philipp Wich
accf14f88d po: resync firewall translation 2011-12-19 21:17:33 +00:00
Jo-Philipp Wich
033de64a0f applications/luci-firewall: complete rework firewall ui
- split zone setup, port forwards, traffic rules and firewall.user
	- add quickadd forms for various common rules like port forwards
	- add tool class for textual formatting and descriptions of rules
	- simplify controller, remove old mini admin remainders
2011-12-19 21:16:31 +00:00
Jo-Philipp Wich
24c4cce3ae libs/web: add "any" option to firewall_zonelist widget 2011-12-19 20:09:20 +00:00
Jo-Philipp Wich
21a0fcc4c1 libs/web: rework DynamicList widget to support dynamic lists composed of comboboxes 2011-12-19 18:55:59 +00:00
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, #366)
In #274, 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 (#7344) 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