aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fixed: [PATCH 2/3] uhttpd URL-codec enhancements.Jo-Philipp Wich2016-03-203-21/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | My apologies, the 2nd of those patches had a syntax error -- that's what I get for making a last-minute edit, even to the comments, without testing! :-p Here is the corrected patch. -- David From d259cff104d2084455476b82e92a3a27524f4263 Mon Sep 17 00:00:00 2001 From: David Favro <openwrt@meta-dynamic.com> Date: Fri, 27 Apr 2012 14:17:52 -0400 Subject: [PATCH] uhttpd URL-codec enhancements. * uh_urlencode() and uh_urldecode() now return an error condition for buffer-overflow and malformed-encoding rather than normal return with corrupt or truncated data. As HTTP request processing is currently implemented, this causes a 404 HTTP status returned to the client, while 400 is more appropriate. * Exposed urlencode() to Lua. * Lua's uhttpd.urlencode() and .urldecode() now raise an error condition for buffer-overflow and malformed-encoding rather than normal return with incorrect data. SVN-Revision: 31570
* uhttpd URL-codec bug fixes.Jo-Philipp Wich2012-05-031-5/+11
| | | | | | | | | | | | | | | | | | | * Fixed output-buffer-overflow bug in uh_urlencode() and uh_urldecode() [tested input-buffer index against output-buffer length]. In reality, this would not typically cause an overflow on decode, where the output string would be expected to be shorter than the input string; and uh_urlencode() seems to have been unreferenced in the source. * Fixed bug: uh_urlencode() and uh_urldecode() both read one extra byte from the input-string. While this could manifest in C code, the result was most egregious when called from Lua, where it caused an extra null byte to be embedded at the end of the output string. * uh_urlencode() cleanup: removed redundant bitwise-and. Signed-off-by: David Favro <openwrt@meta-dynamic.com> SVN-Revision: 31569
* package/pptp: remove a stray bracketGabor Juhos2012-05-031-1/+0
| | | | SVN-Revision: 31568
* Fix iptables abuse of kernel header files. Use exported headers instead.Gabor Juhos2012-05-0310-4/+85
| | | | | | | | [juhosg: export xt_layer7.h for all kernel versions] Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> SVN-Revision: 31566
* Fix pptp handling of routes to server.Gabor Juhos2012-05-032-14/+12
| | | | | | | | | | | | | The existing code is fairly broken. It assumes you're using Legacy IP, and it assumes that the server is reachable via your default route. Via the first default route in the 'route -n' output, in fact, regardless of metric. Fix all those problems by using 'ip route get' to really find the *current* route to the server, and install a host-specific route to match. Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> SVN-Revision: 31565
* Add ppp-mod-pppol2tp subpackage to pppGabor Juhos2012-05-034-3/+36
| | | | | | Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> SVN-Revision: 31564
* ramips: W306R V2.0 - GPIO and Network fixesGabor Juhos2012-05-024-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | Fixed: GPIO typos and confirmed GPIO_BUTTON_RESET Fixed: Lan & Wan reversed: swaped "eth0.2" with "eth0.1" by removing a line(default is correct), and reversed the Lan/wan layout LLLLW to WLLLL. Added: image/Makefile now builds -factory.bin files. I am unsure of the accepted way to change the makefile but the name of the image needs to be 'linkn Kernel Image' in order to be accepted by the OEM firmware. Known issue: eth0 (internal switch i think has mac address: 00:11:22:33:44:55 but i think it should be same as the lan). Known issue: Pressing the reset button has no noticable effect, i would expect the router to boot failsafe if being pressed on boot, reboot if short press and reset all to default if long press. [juhosg: remove mtdlayout_W306R and use mtdlayout_4M instead] Signed-off-by: David Pearce <david_18051985@hotmail.com> SVN-Revision: 31557
* ramips: Make serial console for DIR-300-B1 work againGabor Juhos2012-05-021-2/+2
| | | | | | | | | | | | | | | | | Make serial console for DIR-300-B1 work again. With some recent change, "console=ttyS1,57600" was removed from the default kernel command line, this adds the necessary mkcmdline incantation to image/Makefile to add it there for this target. This is quite likely broken for other targets as well. Without this the console switches to ttyS0 instead of ttyS1 and kernel output is missing, and the userspace comes up with 9600 baud instead of 57600. Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> SVN-Revision: 31556
* mpc83xx: remove 2.6.36 supportGabor Juhos2012-05-0232-5006/+0
| | | | SVN-Revision: 31555
* mpc83xx: switch to 3.3Gabor Juhos2012-05-021-1/+1
| | | | SVN-Revision: 31554
* mpc83xx: add support for 3.3Gabor Juhos2012-05-0211-0/+4555
| | | | SVN-Revision: 31553
* linux/3.3: add more missing symbolsGabor Juhos2012-05-021-0/+2
| | | | SVN-Revision: 31552
* openssl: update to 1.0.1bFlorian Fainelli2012-05-022-14/+2
| | | | SVN-Revision: 31551
* use a define for the poll and debounce intervalFlorian Fainelli2012-05-0235-98/+111
| | | | SVN-Revision: 31550
* ext-toolchain.sh: don't pass CFLAGS when wrapping ldJo-Philipp Wich2012-05-011-1/+1
| | | | SVN-Revision: 31549
* linux/3.3: add more missing symbolsGabor Juhos2012-05-011-0/+7
| | | | SVN-Revision: 31548
* move CONFIG_BOOKE_WDT_DEFAULT_TIMEOUT to the target configsGabor Juhos2012-05-015-3/+5
| | | | SVN-Revision: 31547
* switch to 2.6.38Imre Kaloz2012-05-01117-21919/+91478
| | | | SVN-Revision: 31546
* relayd: move the interface fixup to the right placeFelix Fietkau2012-04-301-2/+1
| | | | SVN-Revision: 31545
* relayd: use config_load+fixup_interface instead of scan_interfaces to speed ↵Felix Fietkau2012-04-301-1/+3
| | | | | | up startup time SVN-Revision: 31544
* base-files-network: add a fixup_interface function like with the netifd ↵Felix Fietkau2012-04-301-19/+25
| | | | | | compatibility scripts - allows selective fixup of individual interface sections instead of having to do the full scan_interfaces SVN-Revision: 31543
* relayd: use an init script instead of a legacy network proto handler (fixes ↵Felix Fietkau2012-04-304-137/+100
| | | | | | #11276) SVN-Revision: 31542
* kernel: update linux 3.3 to 3.3.4Gabor Juhos2012-04-3024-100/+25
| | | | SVN-Revision: 31541
* ath9k: merge a ar93xx ht40 performance fixFelix Fietkau2012-04-301-0/+18
| | | | SVN-Revision: 31540
* mac80211: fix station lookup issuesFelix Fietkau2012-04-301-0/+15
| | | | SVN-Revision: 31539
* mac80211: load lib80211 after cfg80211 (#11342)Felix Fietkau2012-04-291-1/+1
| | | | SVN-Revision: 31537
* linux: rtl836x: add a generic reset_switch functionGabor Juhos2012-04-295-76/+29
| | | | SVN-Revision: 31536
* linux: rtl836x: rename rtl836*_hw_init to rtl836*_setupGabor Juhos2012-04-293-21/+6
| | | | SVN-Revision: 31535
* linux: rtl836x: add a reset_chip callback to rtl8366_smi_opsGabor Juhos2012-04-295-24/+11
| | | | SVN-Revision: 31534
* ar71xx: allow to disable link polling on unused PHYsGabor Juhos2012-04-293-4/+16
| | | | SVN-Revision: 31533
* rb532: remove 2.6.35 supportGabor Juhos2012-04-293-268/+0
| | | | | | The generic 2.6.35 support has been remove long time ago. SVN-Revision: 31532
* linux/3.3: refresh patchesGabor Juhos2012-04-291-14/+8
| | | | SVN-Revision: 31531
* rdc: add 3.3 supportGabor Juhos2012-04-2910-0/+1394
| | | | SVN-Revision: 31530
* mpc85xx: add support for 3.3Gabor Juhos2012-04-295-0/+355
| | | | | | Based on a patch by Wojciech Dubowik <Wojciech.Dubowik@neratec.com> SVN-Revision: 31529
* orion: add 3.3 supportGabor Juhos2012-04-299-0/+431
| | | | SVN-Revision: 31528
* linux/3.3: yet another missing symbolGabor Juhos2012-04-291-0/+1
| | | | | | Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@neratec.com> SVN-Revision: 31527
* package/kernel: add module for the Pericom PT7C4338 RTC chipGabor Juhos2012-04-291-0/+14
| | | | | | Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@neratec.com> SVN-Revision: 31526
* linux/3.3: add support for the Pericom PT7C4338 I2C RTC chipGabor Juhos2012-04-291-0/+253
| | | | | | Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@neratec.com> SVN-Revision: 31525
* package/kernel: add i2c module support for Freescale MPC processorsGabor Juhos2012-04-291-1/+17
| | | | | | Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@neratec.com> SVN-Revision: 31524
* mpc85xx: add kmod-booke-wdt to the default packagesGabor Juhos2012-04-291-0/+2
| | | | | | Based on a patch by Wojciech Dubowik <Wojciech.Dubowik@neratec.com> SVN-Revision: 31523
* package/kernel: add module for the Booke watchdogGabor Juhos2012-04-291-0/+18
| | | | | | Based on a patch by Wojciech Dubowik <Wojciech.Dubowik@neratec.com> SVN-Revision: 31522
* mpc85xx: don't override CONFIG_WATHCDOGGabor Juhos2012-04-291-1/+0
| | | | SVN-Revision: 31521
* linux: move CONFIG_BOOKE_WDT to the generic configGabor Juhos2012-04-295-2/+3
| | | | SVN-Revision: 31520
* linux/2.6.36: R.I.P.Gabor Juhos2012-04-29125-74685/+0
| | | | SVN-Revision: 31519
* linux: add broken flag to targets which are using 2.6.36Gabor Juhos2012-04-292-2/+2
| | | | SVN-Revision: 31518
* mac80211: fix WDS AP authentication issues (#11261, #11318)Felix Fietkau2012-04-292-1/+11
| | | | SVN-Revision: 31517
* netifd: update to latest version, fixes address/route list handling issues ↵Felix Fietkau2012-04-292-2/+3
| | | | | | and fixes dual-stack ppp route handling SVN-Revision: 31516
* hostapd: update to 20120428, fixes some radius issues and wds ap mac address ↵Felix Fietkau2012-04-2919-83/+94
| | | | | | issues SVN-Revision: 31515
* pppd: fix parsing the ipv6-{up,down}-script optionFelix Fietkau2012-04-291-2/+2
| | | | SVN-Revision: 31514
* adm5120: create a new subtarget for the RB1xx devicesGabor Juhos2012-04-299-50/+90
| | | | SVN-Revision: 31513