Jo-Philipp Wich
b89300eb67
libs/web: prevent break between action buttons in tblsection template
2011-12-20 03:57:40 +00:00
Jo-Philipp Wich
48838ea0f7
libs/web: fix placeholder attribute for DynList
2011-12-20 03:00:17 +00:00
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
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
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
Jo-Philipp Wich
c5811d52d0
libs/web: allow one-character hostnames
2011-12-14 15:01:54 +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
fd130ead81
libs/core: expose txpower offset values in network model
2011-12-05 18:34:22 +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
099e97532c
libs/web: add assert() statements for unresolvable function case
2011-11-30 12:50:32 +00:00
Jo-Philipp Wich
3face70859
libs/nixio: link with libcrypto when using OpenSSL as digest backend
2011-11-20 18:18:46 +00:00
Jo-Philipp Wich
cfe48c17d3
libs/core: fix removal of wifi networks without interface attached (OpenWrt #10400 )
2011-11-12 11:27:10 +00:00
Jo-Philipp Wich
fbaef58943
libs/sys: update zoneinfo data to version 2011n ( #345 )
2011-11-10 11:21:13 +00:00
Jo-Philipp Wich
96f494f4ba
libs/web: dispatcher: fix access to template properties in attr() and ifattr() helpers ( #10317 )
2011-10-30 15:00:54 +00:00
Jo-Philipp Wich
84cbbf3968
libs/core: fix status reporting of standalone wifi iface in network model
2011-10-28 22:36:15 +00:00
Jo-Philipp Wich
d60d892385
libs/sys: recent busybox versions changed top output from %MEM to %VSZ, fix luci.sys.process.list() accordingly
2011-10-26 21:23:37 +00:00
Jo-Philipp Wich
334756a472
libs/web: fix possible dispatcher crash
2011-10-26 03:04:41 +00:00
Jo-Philipp Wich
e12b8dbc1f
libs/web: move ifattr() and attr() helpers into dispatcher scope to make them avilable to all templates, remove duplicate exports in cbi tempalte scope
2011-10-26 02:17:45 +00:00
Jo-Philipp Wich
5f7d2719b2
libs/web: dispatcher add node_childs() and node_visible() helper functions for templates
2011-10-26 00:24:17 +00:00
Jo-Philipp Wich
6021cf3bdf
libs/web: dispatcher: implement a "firstchild()" target which simply redirects to the first child of a node, useful for menus that are empty by default and may gain arbritary childs
2011-10-25 22:48:43 +00:00
Jo-Philipp Wich
621fff61a3
libs/nixio: remove forgotten stamp file
2011-10-24 21:39:47 +00:00
Jo-Philipp Wich
8cd46b595a
libs/web: cbi: support description attribute in nullsection instances
2011-10-23 04:21:14 +00:00
Jo-Philipp Wich
a24d340ca4
libs/web: fix package name in error suggestion
2011-10-21 17:22:48 +00:00
Jo-Philipp Wich
f83cdb1b8b
libs/ipkg: give caller more control over filter pattern
2011-10-15 03:10:19 +00:00
Jo-Philipp Wich
55297447cd
libs/ipkg: don't --autoremove; its dangeros. Attempting to uninstall kmod-ipt-nat with it will remove half of luci too, additionally opkg segfaults and corrupts the status database
2011-10-14 22:25:07 +00:00
Jo-Philipp Wich
1ffe61277e
move protocol support into a new protocols/ subdir
2011-10-11 02:07:15 +00:00
Jo-Philipp Wich
cd46e1611e
libs/web: handle .redirect property for SimpleForm widgets
2011-10-11 01:20:36 +00:00
Jo-Philipp Wich
2c316a6aab
libs/core: more fixes for network model
2011-10-11 01:14:11 +00:00
Jo-Philipp Wich
be9f5d6872
libs/core: mark relay protocol as floating
2011-10-10 18:50:42 +00:00
Jo-Philipp Wich
2337ee9206
libs/web: add network_netlist widget option to filter virtual networks
2011-10-10 18:10:12 +00:00
Jo-Philipp Wich
96846f1518
libs/core: remove uneeded error import
2011-10-09 22:04:00 +00:00
Jo-Philipp Wich
c7a95b6683
libs/core: add more heuristics to infer device name from switch name
2011-10-09 22:02:46 +00:00
Jo-Philipp Wich
ce024e350a
libs/core: add luci.model.network.get_protocol(protoname[, networkname])
2011-10-09 21:16:59 +00:00
Jo-Philipp Wich
63608d2636
libs/web: sent origin section id encoded in cbi.cts. requests
2011-10-09 20:14:25 +00:00
Jo-Philipp Wich
4fb5f1aca6
libs/web: pass origin section id to :create() callback, needed when multiple, filtered TypedSection instances of the same type are used within a single Map
2011-10-09 20:07:02 +00:00
Jo-Philipp Wich
be71f1c93a
libs/core: fix bug in contains_interface() implementation of PPPoE protocol
2011-10-09 19:25:43 +00:00
Jo-Philipp Wich
0d4ec2bbba
libs/web: add error message printing to nullsection template, fixes server side validation in SimpleForm instances
2011-10-09 18:43:11 +00:00
Jo-Philipp Wich
1771b0c551
libs/core: rework class structure of network model, add per protocol is_installed() and opkg_package() utility functions to query availability
2011-10-04 13:32:18 +00:00
Jo-Philipp Wich
35137845dd
libs/core: clean up network model, make it modular and move protocol deviations into submodules, fix recognition of pptp and properly implement relayd protocol awareness
2011-10-03 13:57:11 +00:00
Jo-Philipp Wich
43df504278
libs/web: assign extra css class to typed or named sections with tabs
2011-09-30 14:14:04 +00:00
Jo-Philipp Wich
ea6f5379dc
libs/web: network widget fixes
2011-09-25 11:59:21 +00:00
Jo-Philipp Wich
a6dcb3f6a3
libs/core: more fixes in network model
2011-09-25 11:58:24 +00:00
Jo-Philipp Wich
bf49f78599
libs/web: align interface related widgets to changed network model api
2011-09-24 03:49:17 +00:00
Jo-Philipp Wich
47f011b947
libs/core: non-bridge handling fix in network model
2011-09-24 03:31:00 +00:00