Commit graph

1404 commits

Author SHA1 Message Date
Vasilis Tsiligiannis
b9b4d9a2ab libs/iwinfo: Respect IW_TXPOW_DBM flag over IW_TXPOW_MWATT when both are set 2009-12-24 21:34:57 +00:00
Vasilis Tsiligiannis
f790aae15a libs/core: Fix wireless network ids 2009-12-24 21:34:52 +00:00
Vasilis Tsiligiannis
748b9b9462 libs/ipkg: Remove deprecated -force-defaults option when executing opkg 2009-12-23 09:33:58 +00:00
Jo-Philipp Wich
85eec9c21f libs/http: don't calculate etag twice in If-None-Match, fix typos in inline-doc 2009-12-20 18:35:05 +00:00
Jo-Philipp Wich
21328113dd libs/http: fix incorrent treatment of If-None-Match (#100) 2009-12-20 18:18:43 +00:00
Steven Barth
e8220d96a5 httpclient: Add basic auth support 2009-12-08 12:13:26 +00:00
Steven Barth
e822874a71 NIU:
Add WDS bridge client mode
Extending / repeating WDS network in AP wizard
Better 802.11s support
2009-11-29 13:46:04 +00:00
Steven Barth
87491bf031 nixio: Improve number handling with non-double Lua setups 2009-11-28 10:24:19 +00:00
Jo-Philipp Wich
bddc2053b4 libs/cbi: fix dependency handling of radio buttons 2009-11-26 00:24:59 +00:00
Steven Barth
1f83b916ac NIU: Minor fixes 2009-11-23 19:36:37 +00:00
Steven Barth
edb5427181 Correct order of wizard buttons 2009-11-23 14:10:14 +00:00
Steven Barth
840d8c89b5 CBI:
Ensure revalidation
2009-11-23 13:19:53 +00:00
Steven Barth
565cc95f0d CBI: Free dependencies 2009-11-23 13:09:52 +00:00
Jo-Philipp Wich
945f8910c1 libs/iwinfo: add freqlist() to dummy backend 2009-11-23 08:11:46 +00:00
Steven Barth
4cf6fdcdbe NIU:
Implemented WiFi-WAN
Overall improvements
2009-11-22 20:33:16 +00:00
Steven Barth
cba506cb70 CBI:
Allow skipping of non-routing wizard steps
2009-11-22 20:33:00 +00:00
Steven Barth
19758fae43 CBI:
Implement reverse dependencies
Allow wiazrd steps without buttons
2009-11-22 20:32:56 +00:00
Jo-Philipp Wich
a1ab9b5110 libs/iwinfo: support txpwrlist() for madwifi master devices 2009-11-21 02:10:13 +00:00
Jo-Philipp Wich
0f9ee2bea2 libs/iwinfo: support freqlist() on madwifi master devices 2009-11-21 01:40:48 +00:00
Steven Barth
7c9847ab12 IWINFO: Somehtings wrong with scanning and this header, seems to work with this change (taken from wireless-tools) 2009-11-17 19:53:55 +00:00
Steven Barth
23e0a7da6a CBI: Allow lazy loading of wizard pages (improving RAM usage) 2009-11-17 16:12:53 +00:00
Steven Barth
6a51fbe673 Minor fixes 2009-11-15 19:02:39 +00:00
Jo-Philipp Wich
21c3e37062 libs/sys: mhz are not floats 2009-11-15 17:06:33 +00:00
Jo-Philipp Wich
2a68a29c57 libs/iwinfo: conditionally compile wl.o or madwifi support, make it depend on $(CRAP) 2009-11-15 15:53:35 +00:00
Steven Barth
89ece183ef Merge luci.sys.wifi.channels to iwinfo 2009-11-15 15:46:27 +00:00
Jo-Philipp Wich
1b77a6f4c4 libs/iwinfo: add *_get_freqlist() 2009-11-15 15:21:03 +00:00
Jo-Philipp Wich
319f820388 libs/lmo: revert r5539, breaks target builds 2009-11-14 18:43:50 +00:00
Steven Barth
6fd3c1f367 Publish nixio.fs in index-scope 2009-11-14 18:41:16 +00:00
Steven Barth
b882bdeb04 Avoid unnecessary compiling 2009-11-14 13:41:31 +00:00
Steven Barth
43820b99ec JSON: Add encode / decode shortcut 2009-11-13 18:25:59 +00:00
Steven Barth
7aed1e4b9d NIU: More pages 2009-11-10 16:02:48 +00:00
Jo-Philipp Wich
4c08e29387 libs/cbi: add option to reveal/hide value for password fields 2009-11-10 01:42:18 +00:00
Steven Barth
284f85fb4e CBI: Fix subdependencies 2009-11-09 11:22:29 +00:00
Jo-Philipp Wich
6965f4ac2b libs/cbi: auto-hide apply messages and make title and description optional for Map and SimpleForm instances 2009-11-09 00:33:45 +00:00
Jo-Philipp Wich
5c4cd0c4d6 libs/cbi: fix some logic errors in firewall zone picker widget 2009-11-09 00:32:36 +00:00
Jo-Philipp Wich
c70edf0f94 libs/cbi: implement on_parse hook for maps 2009-11-09 00:32:05 +00:00
Jo-Philipp Wich
ee85b3b76b libs/core: i18n fixes for wds mode 2009-11-08 02:35:03 +00:00
Jo-Philipp Wich
c07a7b5a02 libs/core: implement add_network() and del_network() in wireless model 2009-11-08 02:34:31 +00:00
Jo-Philipp Wich
936d82ea5a libs/uci: fix bug in property_bool() of luci.model.uci.bind class 2009-11-08 02:32:29 +00:00
Jo-Philipp Wich
392bfd38f8 libs/cbi: implement SimpleForm on_cancel hook in main class 2009-11-08 02:31:41 +00:00
Jo-Philipp Wich
9199b2ca02 libs/cbi: fix bug in form prefill of zone picker widgets 2009-11-08 02:31:19 +00:00
Jo-Philipp Wich
6ba1aef019 libs/cbi:
- support hidden fields for SimpleForm, NamedSection and TypedSection instances
	- add support for on_cancel event in SimpleForm instances
2009-11-08 02:30:35 +00:00
Jo-Philipp Wich
dc93bf1fcc libs/cbi: properly handle .default for dummy values 2009-11-08 02:29:05 +00:00
Steven Barth
86e00cb771 LuCId: Watch threads in debug mode 2009-11-02 15:59:44 +00:00
Steven Barth
ffae6adf66 Avoid lacking fds 2009-11-02 15:40:53 +00:00
Steven Barth
c45930e05e LuCId: Only count our own threads 2009-11-02 14:21:55 +00:00
Jo-Philipp Wich
a60f781bdf libs/cbi: fix formatting issue in zone picker widget 2009-11-01 19:49:07 +00:00
Steven Barth
1bc570101b nixio: Device stats are unsinged from kernel and likely to overflow so use pushnumber instead of pushinteger. 2009-11-01 18:29:15 +00:00
Jo-Philipp Wich
9b888c18e3 libs: fix some more translation errors 2009-11-01 17:30:15 +00:00
Jo-Philipp Wich
58ba2de8e1 libs/lmo: fix logic errors in po2lmo 2009-11-01 17:27:56 +00:00
Jo-Philipp Wich
249ebe3622 i18n: fix references to po files 2009-11-01 14:30:02 +00:00
Jo-Philipp Wich
f5a760168b all: remove references to old i18n files 2009-11-01 14:24:04 +00:00
Jo-Philipp Wich
3e6d86c80e libs/cbi: i18n markup fix for filebrowser widget 2009-11-01 13:44:31 +00:00
Jo-Philipp Wich
5f0ecfe984 libs/uvl: fix i18n handling for errors 2009-11-01 13:19:03 +00:00
Jo-Philipp Wich
b786f4ade4 libs/cbi: fix some default translations 2009-11-01 11:54:14 +00:00
Jo-Philipp Wich
4ef4776c9a all: various i18n realted fixes 2009-10-31 21:09:02 +00:00
Jo-Philipp Wich
eeed712024 all: next round of translation fixups 2009-10-31 20:03:27 +00:00
Jo-Philipp Wich
cffba70b2e all: translation fixes in templates 2009-10-31 19:26:07 +00:00
Jo-Philipp Wich
50a26ced11 libs/cbi: remove auto-i18n, does not work anymore 2009-10-31 16:48:31 +00:00
Jo-Philipp Wich
ccc8c1dae7 libs/lmo: fix po2lmo to cope with new po format 2009-10-31 16:46:13 +00:00
Steven Barth
760b917114 System loads are floats 2009-10-31 16:30:44 +00:00
Jo-Philipp Wich
7c76587588 all: change most translate statements to new format, some need manual cleanup 2009-10-31 15:54:11 +00:00
Jo-Philipp Wich
8f2a3f1dcc libs/web: prepare template parser, dispatcher and i18n class for upcoming po format change 2009-10-31 15:42:07 +00:00
Jo-Philipp Wich
7f92fa405c libs/core: fix type in luci.model.wireless 2009-10-30 21:05:38 +00:00
Jo-Philipp Wich
20f2edcce0 libs/uci: fix property_bool() in luci.model.uci.bind 2009-10-30 19:43:13 +00:00
Jo-Philipp Wich
0b71cdaaad libs/core: extend and fix luci.model.wireless 2009-10-29 02:20:44 +00:00
Jo-Philipp Wich
1a9b5381c0 libs/core: fixes luci.model.wireless 2009-10-28 20:44:46 +00:00
Steven Barth
e93a3e0c74 CBI: Delegators: Don't proceed when step is not completed yet 2009-10-28 17:38:11 +00:00
Jo-Philipp Wich
910f48117f libs/cbi: add on_init, on_before_commit, on_after_commit, on_before_apply, on_after_apply hooks 2009-10-27 23:21:11 +00:00
Jo-Philipp Wich
c582cbcb61 libs/iwinfo: treat wifiX as wireless iface in dummy backend 2009-10-27 21:43:34 +00:00
Jo-Philipp Wich
bec91e4caf libs/cbi: fixes for widget templates 2009-10-27 21:42:40 +00:00
Jo-Philipp Wich
09fa7f18c9 libs/uci: support custom initalizers in luci.model.uci.bind 2009-10-27 21:38:15 +00:00
Jo-Philipp Wich
99d425aeed libs/core: fixes for luci.model.firewall, luci.model.network and luci.model.network.wireless 2009-10-27 21:34:06 +00:00
Jo-Philipp Wich
7bf9452985 libs/core: add luci.model.wireless 2009-10-27 21:33:26 +00:00
Steven Barth
92bbfc8ca8 Be a bit more non-standard 2009-10-26 17:55:08 +00:00
Steven Barth
36e18e87ef CBI: Cancelaction and event callbacks for Delegators
LuCId: Send Keep-Alive headers to avoid browser quirks
2009-10-26 17:40:44 +00:00
Steven Barth
6e7c32fa7d Build fixes 2009-10-26 13:24:36 +00:00
Felix Fietkau
64d9a00a99 nixio: store stats and other number information as integer, which works better when lua number support is downgraded from double to float 2009-10-26 04:52:07 +00:00
Jo-Philipp Wich
536430d0ee libs/cbi: change widgets using model.network to new api 2009-10-15 16:37:29 +00:00
Jo-Philipp Wich
09c5e7241a libs/core: implement special treatment of wireless in network model 2009-10-15 16:30:17 +00:00
Jo-Philipp Wich
98187975f9 libs/uci: fix attempt to assign empty tables in uci bind class 2009-10-15 16:22:03 +00:00
Jo-Philipp Wich
f7ab20f6e3 libs/lucid: enable tls in sdk 2009-10-15 16:20:48 +00:00
Jo-Philipp Wich
a7b1ebe096 libs/iwinfo: don't treat every iface as dummy wireless, do some heuristics on the ifname 2009-10-15 16:20:29 +00:00
Jo-Philipp Wich
e2147feb63 libs/cbi: fix error in previous commit 2009-10-14 00:02:38 +00:00
Jo-Philipp Wich
5ce9bd5fc8 libs/cbi: support horizontal display for radio button groups 2009-10-13 23:59:50 +00:00
Jo-Philipp Wich
42e1f743b3 libs/cbi: fix dynamic tab hiding 2009-10-10 22:18:50 +00:00
Jo-Philipp Wich
3fb80187f8 libs/core: fixes for network model 2009-10-10 14:53:39 +00:00
Jo-Philipp Wich
17f2921341 libs/cbi: add network picker widget 2009-10-10 14:51:59 +00:00
Jo-Philipp Wich
988de587ee libs/cbi: various widget fixes 2009-10-10 14:47:37 +00:00
Jo-Philipp Wich
0533309ef2 libs/core: fix firewall model 2009-10-10 04:48:57 +00:00
Jo-Philipp Wich
03a6d3fcd4 libs/core: extend network model, only allow one zone per network 2009-10-10 04:46:26 +00:00
Jo-Philipp Wich
c199fb44c0 libs/cbi: hide tabs that have zero fields after dependency update 2009-10-10 04:18:16 +00:00
Jo-Philipp Wich
5c4a002a46 libs/cbi: allow underscores in AbstractSection.create() 2009-10-09 00:45:47 +00:00
Jo-Philipp Wich
a5b315694d libs/cbi: add interface picker widget 2009-10-08 10:26:57 +00:00
Jo-Philipp Wich
a037d94383 libs/core: luci.model.network: implement contains_inteface(), fix bugs 2009-10-08 10:25:52 +00:00
Jo-Philipp Wich
740bb20850 libs/uci: optimize get & set performance in luci.model.uci.bind, fix ambiguous case in uciop() 2009-10-08 10:07:51 +00:00
Jo-Philipp Wich
667e05a8b4 libs/core: add luci.model.network oop abstraction layer 2009-10-08 09:32:00 +00:00
Jo-Philipp Wich
6c64745e2c libs/cbi: comply with changed firewall interface 2009-10-08 01:26:09 +00:00
Jo-Philipp Wich
9fcd1f2f59 libs/core: luci.model.firewall: make top level functions instance methods to keep interface consistent, implement rename_zone() 2009-10-08 01:22:21 +00:00
Jo-Philipp Wich
d3e65f3e1d libs/cbi: auto-select appropriate option if create field is focused 2009-10-08 00:46:01 +00:00
Jo-Philipp Wich
33c8b37310 libs/cbi: i18n for zone picker 2009-10-08 00:27:39 +00:00
Jo-Philipp Wich
f4ce127051 libs/cbi: add a firewall zone picker widget 2009-10-08 00:17:40 +00:00
Jo-Philipp Wich
470184bd57 libs/core: add luci.model.firewall, oop abstraction for uci firewall 2009-10-08 00:14:07 +00:00
Jo-Philipp Wich
6ef4b7f7e8 libs/uci: add luci.model.uci.bind class for easier oop-uci integration 2009-10-08 00:11:16 +00:00
Jo-Philipp Wich
da2b40c9e3 libs/cbi: fix wrong value handling in FileUpload widgets (#85) 2009-10-07 19:50:20 +00:00
Jo-Philipp Wich
93215e86d8 libs/iwinfo: fix dummy scanresults 2009-09-26 13:58:36 +00:00
Steven Barth
7bd891326d Fix Save & Apply for lists 2009-09-24 16:40:32 +00:00
Jo-Philipp Wich
48465cebab libs/iwinfo: find/autocreate madwifi vap if scan on wifi0 is requested 2009-09-23 18:04:29 +00:00
Jo-Philipp Wich
79022dcc63 libs/iwinfo: add some required includes 2009-09-23 18:03:36 +00:00
Jo-Philipp Wich
9fde34000d libs/iwinfo: probe madwifi first, poking wifi0 with wl ioctls results in bus error 2009-09-23 18:03:09 +00:00
Steven Barth
9b50dd9cba Fix requestpath, export authuser 2009-09-11 10:46:06 +00:00
Jo-Philipp Wich
0fbcef99a3 libs/http: map *.xsl files to application/xml 2009-09-11 01:55:10 +00:00
Jo-Philipp Wich
c152de01eb libs/iwinfo: add channels to the dummy scan results 2009-09-10 09:19:18 +00:00
Jo-Philipp Wich
a90e6dc95f libs/iwinfo: add fake scan results to the dummy module 2009-09-10 09:08:38 +00:00
Jo-Philipp Wich
d6caf509ad libs/web: drop unneeded requires in template class 2009-09-10 08:15:49 +00:00
Jo-Philipp Wich
cf1e1534bc libs/web: add missing local variable declaration 2009-09-10 08:11:25 +00:00
Jo-Philipp Wich
aa93e16092 libs/web: drop the Lua template parser, the C implementation is faster in almost every case, even without caching 2009-09-10 08:05:56 +00:00
Jo-Philipp Wich
30f881974c libs/nixio: protect splice calls with ifdef SPLICE_F_MOVE, fixes compile error with openwrt trunk x86/glibc 2009-08-27 01:23:08 +00:00
Jo-Philipp Wich
e66ab6bd2c libs/iwinfo: return bitrate in kilobits to properly handle .5 rates 2009-08-26 01:35:42 +00:00
Jo-Philipp Wich
3b42dc1688 libs/iwinfo: fixes for brcm-2.4 2009-08-24 16:11:15 +00:00
Jo-Philipp Wich
0f242f2f50 libs/iwinfo: add signal and quality values to scan results 2009-08-24 14:23:49 +00:00
Jo-Philipp Wich
0e88acfd4e libs/iwinfo: ignore proprietary ciphers or auth suites - we can't handle them anyway 2009-08-24 13:51:49 +00:00
Jo-Philipp Wich
335e519dd6 libs/iwinfo: fixes for wpa/wep detection in wifi scan 2009-08-24 13:31:20 +00:00
Jo-Philipp Wich
12f582bcc7 libs/iwinfo: implement wifi scans 2009-08-24 05:54:38 +00:00
Jo-Philipp Wich
2903acf1f2 libs/cbi: preserve tab state across page reloads 2009-08-20 01:53:24 +00:00
Jo-Philipp Wich
bda237d0fd libs/cbi: remove redundant line break in listvalue template 2009-08-19 23:17:55 +00:00
Jo-Philipp Wich
9e04d7e6d1 libs/lmo: fix typo in previous commit 2009-08-19 22:23:16 +00:00
Jo-Philipp Wich
83e4af43aa libs/lmo: fix off-by-one in bounds check, null-terminate dest buffer in lmo_lookup() 2009-08-19 22:10:24 +00:00
Jo-Philipp Wich
68f335b8d6 libs/lmo: fix possible null pointer dereference in lmo_lookup() - thanks blogic 2009-08-19 21:36:10 +00:00
Jo-Philipp Wich
47dc4ded76 libs/iwinfo: unify LUA_WRAP_ASSOCLIST and LUA_WRAP_TXPWRLIST macros 2009-08-19 20:52:46 +00:00
Jo-Philipp Wich
7f65380043 libs/iwinfo: add dummy.txpwrlist() 2009-08-19 15:40:58 +00:00
Jo-Philipp Wich
91ceab5b19 libs/iwinfo: implement *_get_txpwrlist() to obtain valid tx power levels 2009-08-19 04:03:00 +00:00
Jo-Philipp Wich
8e31e6bed2 libs/iwinfo: add dummy.mbsssid_support() stub 2009-08-19 01:55:15 +00:00
Jo-Philipp Wich
2cabcb4be0 libs/iwinfo: use dummy if $(SDK) is set 2009-08-19 01:23:12 +00:00
Jo-Philipp Wich
7c0ea17623 libs/cbi: implement tabbing to split large sections and group options in tabs 2009-08-16 03:29:46 +00:00
Jo-Philipp Wich
892ed55ba0 libs/cbi: attach pcdata() to template scope and use it 2009-08-13 17:14:25 +00:00
Jo-Philipp Wich
6b1be858be libs/cbi: properly escape values in dynlist widget (#79) 2009-08-13 14:36:18 +00:00
Malte S. Stretz
8f580be880 libs/lucid: revert main state on startup to prevent accumulation.
A proper SIGTERM handling needs support in nixio first.
2009-08-13 13:43:20 +00:00
Malte S. Stretz
bd1c23f10f libs/uci: more detailed api docs 2009-08-13 11:46:03 +00:00
Jo-Philipp Wich
20cadd41ca libs/iwinfo: make lua wrapper functions static 2009-08-11 14:20:57 +00:00
Jo-Philipp Wich
444e39b093 libs/iwinfo: implement *_get_mbssid_support() check 2009-08-11 13:56:16 +00:00
Jo-Philipp Wich
9d1cfdd359 libs/iwinfo: add dummy module for the sdk, use dummy on Darwin 2009-08-10 13:33:00 +00:00
Steven Barth
fdef7c57b1 luanet doesn't compile on Darwin 2009-08-10 09:16:32 +00:00
Jo-Philipp Wich
a85dd8ee6e libs/iwinfo: forgot to clear string buffer in wrapper function 2009-08-10 00:38:02 +00:00
Jo-Philipp Wich
2a9a87e891 libs/iwinfo: implement *_get_frequency() - operating freq in mhz 2009-08-09 14:24:43 +00:00
Jo-Philipp Wich
398c125336 libs/sys: implement luci.sys.wifi.getiwinfo() oop interface 2009-08-09 02:50:20 +00:00
Jo-Philipp Wich
d2c7747851 libs/iwinfo: fix broadcom signal calculation in master mode 2009-08-09 02:45:05 +00:00
Jo-Philipp Wich
87460e8a05 libs: introduce iwinfo - wireless information abstraction for proprietary broadcom, madwifi and mac80211 drivers. 2009-08-09 02:02:46 +00:00
Jo-Philipp Wich
5676686863 libs/web: restore protected call to Template(), was accidentally removed in r4889 2009-08-07 15:16:14 +00:00
Jo-Philipp Wich
6ff82a0142 libs/sgi-cgi: fix udata vs. string in cgi backend 2009-08-07 12:24:30 +00:00
Jo-Philipp Wich
67150c34a1 libs/web: template: fix spurious nil or false values that broke various templates 2009-08-05 00:52:51 +00:00
Jo-Philipp Wich
01c4048021 libs/core: fix loading of nixio.bit in luci.ip 2009-08-04 10:38:52 +00:00
Jo-Philipp Wich
86cd67ebc3 [PATCH] make luci.ip.IPvX a bit more forgiving
Signed-Off-By: Malte S. Stretz <mss at apache.org>
2009-08-01 20:40:55 +00:00
Jo-Philipp Wich
68af07222c libs/cbi: fix default property of ListValue fields 2009-07-31 23:22:10 +00:00
Steven Barth
9827e91105 Performance improvements, where did that get lost? 2009-07-31 19:57:07 +00:00
Steven Barth
8b65a44fe8 Typo 2009-07-31 17:08:59 +00:00
Steven Barth
f648ab3445 Fix cookie logout 2009-07-31 17:08:18 +00:00
Jo-Philipp Wich
f311d13ca1 libs/cbi: fix error reporting in map loading 2009-07-31 00:13:24 +00:00
Steven Barth
2561ed9b7a Fix errorhandling in Delegators 2009-07-30 16:58:37 +00:00
Steven Barth
d7a90e994a Fix delegators 2009-07-30 16:05:12 +00:00
Jo-Philipp Wich
12400496cc libs/lmo: remove cast in first lseek(), not needed since it's a constant expression 2009-07-30 12:11:08 +00:00
Steven Barth
1172027f5a Disable Basic-Auth in SDK 2009-07-30 11:26:27 +00:00
Jo-Philipp Wich
8c8ecd1fa9 libs/lmo: fix lmo_read32() (dereferencing type-punned pointer will break strict-aliasing rules) 2009-07-30 11:06:12 +00:00
Jo-Philipp Wich
a9ae676c61 libs/lmo: explicitly cast values to off_t for lseek() 2009-07-30 03:30:24 +00:00
Steven Barth
50cf0212ab Kill abandoned files 2009-07-29 07:48:11 +00:00
Jo-Philipp Wich
26d792d914 libs/core: properly handle udata values in overloaded string format operator 2009-07-29 04:29:22 +00:00
Jo-Philipp Wich
ae4694243d libs/lmo: jffs2 does not support mmap() with MAP_SHARED, use MAP_PRIVATE instead (#76) 2009-07-29 03:28:14 +00:00
Steven Barth
9016ae7ad9 Increase timeout for HTTP, fixing some browser problems 2009-07-28 11:59:13 +00:00
Steven Barth
45cf10a665 Add luci.lucid.running() 2009-07-27 12:28:34 +00:00
Steven Barth
17e7f67a7c Add native support for homepages 2009-07-27 12:09:46 +00:00
Steven Barth
ce98fdd80f Optimize util.threadlocal, Add luci.store as global threadlocal store 2009-07-27 10:27:39 +00:00
Steven Barth
7b5cdb36b5 Code style 2009-07-27 10:27:35 +00:00
Jo-Philipp Wich
8acc6307bf libs/web: fix template parsing of default texts in i18n expressions 2009-07-26 23:23:32 +00:00
Jo-Philipp Wich
047d4e45f6 libs/web: fix file handle leak in template parser 2009-07-26 23:11:36 +00:00
Jo-Philipp Wich
1b557b0b7b libs/web: implement i18n.string() and i18n.stringf() to obtain genuine Lua strings instead of udata objects 2009-07-26 22:48:09 +00:00
Jo-Philipp Wich
96bc583cfc libs/web: convert given argument to string in i18n.translatef() 2009-07-26 22:34:54 +00:00
Jo-Philipp Wich
2f7fb7e05c libs/nixio: d'oh ... import tostring() as well 2009-07-26 22:34:06 +00:00
Jo-Philipp Wich
136b7253b1 libs/nixio: convert data to string in writeall(), this is required for numeric and udata arguments 2009-07-26 22:32:13 +00:00
Jo-Philipp Wich
3efff022f2 libs/uvl: fix some memory wasting 2009-07-26 21:24:48 +00:00
Steven Barth
0371fc26d8 Reintroduce prefisx support - was gone somewhere 2009-07-25 12:45:38 +00:00
Steven Barth
a77f1b91ae Allow Basic-Auth pass-through 2009-07-25 10:47:26 +00:00
Steven Barth
b8ab3b9dac Add: luci.http.splice to allow direct copying of data from a file
descriptor
2009-07-25 07:27:05 +00:00
Jo-Philipp Wich
3194662054 libs/lmo: return entries as udata and only create strings on demand 2009-07-25 03:37:03 +00:00
Jo-Philipp Wich
639f965c4f libs/web: use C templates by default 2009-07-25 02:58:04 +00:00
Jo-Philipp Wich
4ef3ac9694 libs/core: support udata util.striptags(), optimizie copcall implementation 2009-07-25 02:57:13 +00:00
Jo-Philipp Wich
ed4b7a5fbb libs/lucid-http: make chunksinks cope with string-like udata 2009-07-25 00:55:24 +00:00
Steven Barth
43aca0def5 Merge from fonosfera 2009-07-24 18:23:59 +00:00
Steven Barth
4d75b51157 FIx lsat commit 2009-07-24 17:34:40 +00:00
Steven Barth
2164bdf651 luci.fs compat 2009-07-24 17:33:32 +00:00
Steven Barth
2655871d39 Revert external tree usage 2009-07-24 15:45:29 +00:00
Steven Barth
6d8143f573 Typo 2009-07-24 15:33:10 +00:00
Steven Barth
f1e1f7a451 Revert "libs/lucid-http: prepare external indexing and tree building in luci handler"
This reverts commit e70104be85933a0d6cef5b8639f3a042e6d76896.
2009-07-24 15:33:06 +00:00
Jo-Philipp Wich
97743c1387 libs/web: disable memory debuggin in trunk as well 2009-07-23 11:32:22 +00:00
Jo-Philipp Wich
8b001ee843 libs/web: dispatcher.lua: add support for external tree building and indexing 2009-07-23 03:25:27 +00:00
Jo-Philipp Wich
281c92b1d6 libs/uvl: convert uvlc to nixio.fs api, fix error condition when no schema is found 2009-07-23 03:23:48 +00:00
Jo-Philipp Wich
60aaab2ede libs/lucid-http: prepare external indexing and tree building in luci handler 2009-07-23 03:22:45 +00:00
Jo-Philipp Wich
a4f6748205 libs/core: util.lua optimize get() and set() accessors of threadlocals 2009-07-23 03:21:18 +00:00
Jo-Philipp Wich
3f1393006e libs/core: debug.lua use integers for memory size and peak value 2009-07-23 03:19:46 +00:00
Jo-Philipp Wich
3e0b6b681c libs/web: use new parser in non-caching mode 2009-07-23 01:41:06 +00:00
Jo-Philipp Wich
80a2dd2cc2 libs/web: add template parser reimplemented in C 2009-07-23 00:41:44 +00:00
Jo-Philipp Wich
4dd0a793b6 libs/lmo: check for integer, not number in lmo.archive.get() 2009-07-19 16:12:26 +00:00
Jo-Philipp Wich
1738eddc7d libs/lmo: ensure integer return value in lmo.hash(), fix module open function 2009-07-19 16:10:10 +00:00
Jo-Philipp Wich
306b2d865a libs/nixio: don't close stdin, stdout or stderr during garbage collection 2009-07-19 02:39:10 +00:00
Jo-Philipp Wich
074b5dfc4a fix fallout from nixio.fs transition 2009-07-19 00:38:52 +00:00
Jo-Philipp Wich
8fcd841aa9 convert luci.fs users to nixio.fs api 2009-07-19 00:24:58 +00:00
Jo-Philipp Wich
6abba61632 libs/nixio: allow calls to nixio.util.consume() with no iterator given 2009-07-18 21:58:41 +00:00
Jo-Philipp Wich
4bc6b85bb7 libs/nixio: add destination table argument to nixio.util.consume() 2009-07-18 21:55:14 +00:00
Jo-Philipp Wich
5f000ef19e libs/core: record peak values in luci.debug 2009-07-18 18:26:44 +00:00
Jo-Philipp Wich
768bf67b86 libs/web: optimize code generation in luci.template 2009-07-17 18:33:01 +00:00
Steven Barth
dae7f3f4d5 nixio:
Add Rockspec
Add bswap to nixio.bit
Fix nixio.bit documentation
2009-07-14 15:21:00 +00:00
Jo-Philipp Wich
7ac3bac569 libs/lmo: fix possible resource leak if lua runs out of memory but file is already opened 2009-07-11 23:07:41 +00:00
Jo-Philipp Wich
a531bb7bea libs/lmo: implement lmo.archive.get() and lmo.archive.foreach() 2009-07-11 17:30:43 +00:00
Steven Barth
8162842107 Fix getifaddrs() for BSD 2009-07-11 10:21:27 +00:00
Steven Barth
0864f5f88b nixio: Mark axTLS as discouraged, fix changelog 2009-07-11 08:06:47 +00:00
Steven Barth
72a0ee36b6 nixio: Update documentation to prepare 0.3 release 2009-07-11 07:54:57 +00:00
Steven Barth
21be73a478 nixio: Fix accidental closing of file descriptors after dup with two
parameters resulting in strange behaviour when spawning processes
2009-07-11 07:01:32 +00:00
Jo-Philipp Wich
07c0f405f3 libs/sys: implement callbacks in luci.sys.net.arptable() and luci.sys.net.conntrack() 2009-07-10 22:01:35 +00:00
Jo-Philipp Wich
60613ef05c libs/core: trigger garbage collection in coxpcall() if 80% of the allocated memory pool are filled 2009-07-10 17:38:01 +00:00
Steven Barth
7dcb05fd1c Session-IDs are lowercase now 2009-07-10 17:06:19 +00:00
Steven Barth
7ba12e9c5e Move memory limit to lucid, reincrease thread limit 2009-07-10 16:39:30 +00:00
Jo-Philipp Wich
128437f671 libs/core: optimize strip_bytecode() memory usage by avoiding string concatenation 2009-07-10 16:30:43 +00:00
Jo-Philipp Wich
3fac200364 libs/lucid: lower threadlimit to 2 2009-07-10 16:05:10 +00:00
Jo-Philipp Wich
263d7228fc libs/sys: split zoneinfo in tzdata and tzoffset and autoload on demand, saves yet another ~60KB 2009-07-10 16:04:07 +00:00
Jo-Philipp Wich
deb9868dbd libs/core: make use of global memory limits if supported 2009-07-10 16:01:53 +00:00
Jo-Philipp Wich
98a6885834 libs/sys: optimize luci.sys.net.defaultroute6() 2009-07-10 13:49:24 +00:00
Steven Barth
223963e419 Optimise luci.sys 2009-07-10 13:33:48 +00:00
Jo-Philipp Wich
6ea0b5eb45 libs/core: make memory tracer work with c and r events, avoid string allocations for debug output 2009-07-10 13:15:43 +00:00
Steven Barth
7372c00dda Fix LuCId behaviour if thread-limit is reached 2009-07-10 13:04:07 +00:00
Jo-Philipp Wich
6bfe0624b6 libs/sys: improve efficiency of sys.net.defaultroute(), can save hundreds of KB memory usage 2009-07-09 15:53:08 +00:00
Jo-Philipp Wich
36542cbe1d libs/web: use lmo in luci.i18n 2009-07-09 15:05:29 +00:00
Jo-Philipp Wich
d9d3c71435 libs: introduce lmo - Lua Machine Objects, an implementation of binary hash tables 2009-07-09 15:04:27 +00:00
Jo-Philipp Wich
238404ee83 libs/lucid: only execute handlers if daemon is below the thread limit, this allows to hold connections without having to fork immediately 2009-07-06 22:26:46 +00:00
Jo-Philipp Wich
644bc4ac3a libs/lucid: lower thread limit to 10 due to oom issues on different devices 2009-07-06 21:38:51 +00:00
Jo-Philipp Wich
58a5b15c0b libs/nixio: add sysupgrade hook to include /etc/nixio/ (generated certs) into saved file list 2009-06-30 18:05:07 +00:00
Steven Barth
30b216f774 Drop support for luaposix and bitlib (obsoleted by nixio)
Mark luci.fs as deprecated
2009-06-21 13:42:26 +00:00
Steven Barth
a2c71bf739 nixio: Resolve namespace clashes 2009-06-21 13:41:18 +00:00
Steven Barth
a90206c089 Drop webuci (obsolete) 2009-06-20 07:24:09 +00:00
Steven Barth
341f757255 Merge fixes / improvements 2009-06-20 07:14:36 +00:00
Jo-Philipp Wich
65cde286cc drop obsoleted lucittpd packages 2009-06-16 19:30:22 +00:00
Jo-Philipp Wich
8c359115f9 libs/lucid-http: use SERVER_ADDR as fallback 2009-06-16 14:41:43 +00:00
Steven Barth
b3a7ff9f8f Catchall workaround for strange sockaddresses by Jow 2009-06-16 14:27:43 +00:00
Jo-Philipp Wich
988eeb8ff1 libs/nixio: wrap $(CC) in quotes, command could break if ccache is used (CC:=ccache mips-openwrt-linux-uclibc-gcc) 2009-06-15 20:07:59 +00:00
Steven Barth
8546622f65 Redefine splice() flags for crappy uclibc versions 2009-06-15 19:11:38 +00:00
Steven Barth
bdf0a4b520 GSoC: Add RPC client 2009-06-14 09:02:40 +00:00
Steven Barth
c47be2e727 GSoC: Documentation #2 2009-06-14 08:51:43 +00:00
Steven Barth
f9263e00c1 GSoC: Documentation #1 2009-06-13 18:16:34 +00:00
Steven Barth
120a7f558e GSoC: Add LuCId RPC-Slave 2009-06-13 08:56:43 +00:00
Steven Barth
a75d304028 Revert "libs/lucid-http: copyz() causes a Kernel oops on brcm-2.4, revert to copy() for now (#70)"
Fixed in nixio
2009-06-10 23:29:10 +00:00
Steven Barth
690927bf6b Some sendfile() under Linux 2.4 is broken 2009-06-10 23:28:16 +00:00
Jo-Philipp Wich
0649e94571 libs/lucid-http: copyz() causes a Kernel oops on brcm-2.4, revert to copy() for now (#70) 2009-06-10 22:43:11 +00:00
Jo-Philipp Wich
8c7ad9624c Revert r4822, problem is caused by sth. else 2009-06-10 18:24:18 +00:00
Jo-Philipp Wich
408cb93712 libs/lucid: Kamikaze 8.09.1/brcm-2.4 still has the uclibc deamon() bug, work around by not deamonizing lucid 2009-06-10 17:48:41 +00:00
Jo-Philipp Wich
b733587e18 libs/px5g: fix "x509write.c:717: warning: 'ret' might be used uninitialized in this function" 2009-06-10 17:35:23 +00:00
Jo-Philipp Wich
a0eb16cc03 libs/px5g: remove -fvisibility=hidden from PX5G_LIB_CFLAGS, OpenWrt cross compiler don't knows it and it seems to be C++ specific 2009-06-10 17:26:47 +00:00
Jo-Philipp Wich
e35dccbc75 libs/luanet: fix error in base64 decoder, patch from fonosfera 2009-06-08 20:20:12 +00:00
Steven Barth
f242ed5aba HTTPd: No keep-alive after POST request, because we do not check state
of incoming data
2009-06-07 13:51:18 +00:00
Jo-Philipp Wich
8adf9fbd4d libs/sys: don't convert searched target to uppercase in IptParser, breaks searches for targets referencing custom chains 2009-06-07 13:18:53 +00:00
Jo-Philipp Wich
99c213eff8 libs/sys: properly parse iptables rules with not target set 2009-06-07 12:48:28 +00:00
Steven Barth
f4c6554f4c Revert "adjust axtls level"
This reverts commit b123c99304822a1f1502d00df4915e2707940df3.
2009-06-07 12:38:37 +00:00
Steven Barth
eb5a7b36ab adjust axtls level 2009-06-07 12:24:30 +00:00
Steven Barth
b97eae4b69 better warnings 2009-06-07 12:09:14 +00:00
Steven Barth
dc850f5f96 Enable key generation 2009-06-07 11:38:34 +00:00
Steven Barth
82729b60f5 PX5G: no autogeneration 2009-06-07 11:38:30 +00:00
Steven Barth
a261caf40b LuCId: PX5G integration 2009-06-07 11:38:23 +00:00
Steven Barth
c766f9750f LuCId: DER certificate / key support 2009-06-07 11:38:20 +00:00
Steven Barth
0ebce1d608 nixio: Add support for DER certificates, PX5G fix Certmaster 2009-06-07 10:15:12 +00:00
Steven Barth
4934c97978 GCC: serious business, srsly 2009-06-06 20:50:43 +00:00
Steven Barth
0bf57f6245 Add PX5G Keymaster 2009-06-06 20:34:47 +00:00
Steven Barth
4d4f8f4d79 nixio: Fix axTLS configuration, prepare px5g integration 2009-06-06 20:34:33 +00:00
Steven Barth
0d20041419 nixio: Add support for DER keyfiles 2009-06-06 13:03:31 +00:00
Steven Barth
c07ab17d59 nixio: Use correct datatypes for base64 encode 2009-06-06 10:09:52 +00:00
Steven Barth
8a3f3e860a Fix query string detection 2009-06-01 18:30:41 +00:00
Jo-Philipp Wich
217af86e35 lucid: fix separation of query string and url in server handler 2009-06-01 18:10:37 +00:00
Steven Barth
d294f13444 sync lucid 2009-05-28 13:50:05 +00:00
Steven Barth
20d2e99010 nixio: Rework TLS support, added support for CyaSSL 2009-05-28 13:50:00 +00:00
Steven Barth
f4ccae2f4d Disable checkkey for now: Something is wrong with dropbearkey 2009-05-28 08:48:14 +00:00
Steven Barth
658b3db2da Würg around some nasty axTLS keying bugs 2009-05-28 07:21:22 +00:00
Jo-Philipp Wich
2bd86ec208 libs/web: if current language is a regional dialect, fall back to generic language, then english (e.g. pt_BR -> pt -> en) 2009-05-28 00:24:04 +00:00
Steven Barth
ec396f3907 Revert "axtls: change cipher profile" 2009-05-27 20:16:43 +00:00
Steven Barth
1301d50f62 axtls: change cipher spec again 2009-05-27 20:13:26 +00:00
Steven Barth
2edb0fd9a8 axtls: change cipher profile 2009-05-27 20:08:41 +00:00
Steven Barth
494fbd16b0 Disable old SSL handshake 2009-05-27 19:13:19 +00:00
Steven Barth
af3748a9e5 disable keep-alive for now 2009-05-27 19:13:10 +00:00
Steven Barth
693366bdd8 http/1.1 detection 2009-05-27 19:12:58 +00:00
Steven Barth
fa25902656 HTTP-Timeout to 5 seconds 2009-05-27 18:26:07 +00:00
Steven Barth
e00ca14463 Fix webroot 2009-05-27 18:21:29 +00:00
Steven Barth
06a3956a2f LuCId fixes 2009-05-27 13:20:35 +00:00
Steven Barth
9cd14dbc50 lucid init 2009-05-26 17:44:38 +00:00
Steven Barth
73eae62580 Fix redirector 2009-05-26 17:44:27 +00:00
Steven Barth
f7deae100d LuCId 2009-05-26 17:44:02 +00:00
Steven Barth
d2ce28a71e Fix non-HEAD HTTP-Responses 2009-05-25 10:31:16 +00:00
Steven Barth
4209a47b6e Extend CBI Delegators, fix some CBI issue 2009-05-25 10:31:12 +00:00
Steven Barth
ee690abb0f CBI Delegators (Wizards)
Example CBI-Map:

d = Delegator()
d.allow_back = true	-- Back-button
d:add("step1", load("mywizard/form1")) -- model/cbi/mywizard/form1
d:add("step2", load("mywizard/form2"))

return d
2009-05-24 17:17:53 +00:00
Steven Barth
8c4f847ea5 GSoC Commit #1: LuCId + HTTP-Server 2009-05-23 17:21:36 +00:00
Jo-Philipp Wich
7590cd25f4 - Add support for hostap driver
- Retrieve channels from all available wireless interfaces
 - Add channel "auto" to channel list

Thanks Vasilis Tsiligiannis
2009-05-21 21:33:24 +00:00
Jo-Philipp Wich
ce6aec0a91 i18n: remove obsolete lua i18n files 2009-05-19 02:35:25 +00:00
Jo-Philipp Wich
7bf803250b build: integrate po files in the build system 2009-05-19 02:18:28 +00:00
Jo-Philipp Wich
62fade5709 libs/core: make sure that bitlib is loaded, fixes some sdk problems 2009-05-17 01:56:15 +00:00
Jo-Philipp Wich
f2e4a6665b libs/sys: fix checking for empty table 2009-05-13 18:50:12 +00:00
Jo-Philipp Wich
4856c1ea23 libs/sys: fix typo in last commit 2009-05-13 18:45:13 +00:00