Commit Graph

20395 Commits (2bfb1e012abca1dbb3797bc5e72e2af3ee741dec)
 

Author SHA1 Message Date
Jo-Philipp Wich 2bfb1e012a uhttpd URL-codec bug fixes.
* 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
12 years ago
Gabor Juhos 6e5db7ed69 package/pptp: remove a stray bracket
SVN-Revision: 31568
12 years ago
Gabor Juhos 3349cf2691 Fix iptables abuse of kernel header files. Use exported headers instead.
[juhosg: export xt_layer7.h for all kernel versions]

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

SVN-Revision: 31566
12 years ago
Gabor Juhos 60db046ef2 Fix pptp handling of routes to server.
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
12 years ago
Gabor Juhos 97697c332f Add ppp-mod-pppol2tp subpackage to ppp
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

SVN-Revision: 31564
12 years ago
Gabor Juhos b0449ccf04 ramips: W306R V2.0 - GPIO and Network fixes
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
12 years ago
Gabor Juhos 90e99b9fe8 ramips: Make serial console for DIR-300-B1 work again
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
12 years ago
Gabor Juhos fb28062182 mpc83xx: remove 2.6.36 support
SVN-Revision: 31555
12 years ago
Gabor Juhos 3269924fed mpc83xx: switch to 3.3
SVN-Revision: 31554
12 years ago
Gabor Juhos 8ee595315d mpc83xx: add support for 3.3
SVN-Revision: 31553
12 years ago
Gabor Juhos b4b5f2d018 linux/3.3: add more missing symbols
SVN-Revision: 31552
12 years ago
Florian Fainelli e69d1b9940 openssl: update to 1.0.1b
SVN-Revision: 31551
12 years ago
Florian Fainelli 5d9b44d110 use a define for the poll and debounce interval
SVN-Revision: 31550
12 years ago
Jo-Philipp Wich 643babfc3c ext-toolchain.sh: don't pass CFLAGS when wrapping ld
SVN-Revision: 31549
12 years ago
Gabor Juhos 7a2b3d8a55 linux/3.3: add more missing symbols
SVN-Revision: 31548
12 years ago
Gabor Juhos 70322ba3d1 move CONFIG_BOOKE_WDT_DEFAULT_TIMEOUT to the target configs
SVN-Revision: 31547
12 years ago
Imre Kaloz 880de62f91 switch to 2.6.38
SVN-Revision: 31546
12 years ago
Felix Fietkau 7a8d12bafa relayd: move the interface fixup to the right place
SVN-Revision: 31545
12 years ago
Felix Fietkau ea1d49fc90 relayd: use config_load+fixup_interface instead of scan_interfaces to speed up startup time
SVN-Revision: 31544
12 years ago
Felix Fietkau 4ea86b956c base-files-network: add a fixup_interface function like with the netifd compatibility scripts - allows selective fixup of individual interface sections instead of having to do the full scan_interfaces
SVN-Revision: 31543
12 years ago
Felix Fietkau 8a790d9730 relayd: use an init script instead of a legacy network proto handler (fixes #11276)
SVN-Revision: 31542
12 years ago
Gabor Juhos cbfce53831 kernel: update linux 3.3 to 3.3.4
SVN-Revision: 31541
12 years ago
Felix Fietkau f8868fc87b ath9k: merge a ar93xx ht40 performance fix
SVN-Revision: 31540
12 years ago
Felix Fietkau 897abd824f mac80211: fix station lookup issues
SVN-Revision: 31539
12 years ago
Felix Fietkau a85af68ad0 mac80211: load lib80211 after cfg80211 (#11342)
SVN-Revision: 31537
12 years ago
Gabor Juhos e931ffd678 linux: rtl836x: add a generic reset_switch function
SVN-Revision: 31536
12 years ago
Gabor Juhos 1d9400263f linux: rtl836x: rename rtl836*_hw_init to rtl836*_setup
SVN-Revision: 31535
12 years ago
Gabor Juhos badd7a3cf2 linux: rtl836x: add a reset_chip callback to rtl8366_smi_ops
SVN-Revision: 31534
12 years ago
Gabor Juhos 3e3a4d3d6b ar71xx: allow to disable link polling on unused PHYs
SVN-Revision: 31533
12 years ago
Gabor Juhos a8d3109208 rb532: remove 2.6.35 support
The generic 2.6.35 support has been remove long time ago.

SVN-Revision: 31532
12 years ago
Gabor Juhos 532b74ff7b linux/3.3: refresh patches
SVN-Revision: 31531
12 years ago
Gabor Juhos 27a1f6652a rdc: add 3.3 support
SVN-Revision: 31530
12 years ago
Gabor Juhos c59b60fa0b mpc85xx: add support for 3.3
Based on a patch by Wojciech Dubowik <Wojciech.Dubowik@neratec.com>

SVN-Revision: 31529
12 years ago
Gabor Juhos f687ca2296 orion: add 3.3 support
SVN-Revision: 31528
12 years ago
Gabor Juhos 923ebbac81 linux/3.3: yet another missing symbol
Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@neratec.com>

SVN-Revision: 31527
12 years ago
Gabor Juhos 5528e0b008 package/kernel: add module for the Pericom PT7C4338 RTC chip
Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@neratec.com>

SVN-Revision: 31526
12 years ago
Gabor Juhos 55fdc18beb linux/3.3: add support for the Pericom PT7C4338 I2C RTC chip
Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@neratec.com>

SVN-Revision: 31525
12 years ago
Gabor Juhos 8c60f7825b package/kernel: add i2c module support for Freescale MPC processors
Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@neratec.com>

SVN-Revision: 31524
12 years ago
Gabor Juhos f6d5998d31 mpc85xx: add kmod-booke-wdt to the default packages
Based on a patch by Wojciech Dubowik <Wojciech.Dubowik@neratec.com>

SVN-Revision: 31523
12 years ago
Gabor Juhos 01a9103254 package/kernel: add module for the Booke watchdog
Based on a patch by Wojciech Dubowik <Wojciech.Dubowik@neratec.com>

SVN-Revision: 31522
12 years ago
Gabor Juhos 296086868a mpc85xx: don't override CONFIG_WATHCDOG
SVN-Revision: 31521
12 years ago
Gabor Juhos 77735b5930 linux: move CONFIG_BOOKE_WDT to the generic config
SVN-Revision: 31520
12 years ago
Gabor Juhos 4fa9cf6c33 linux/2.6.36: R.I.P.
SVN-Revision: 31519
12 years ago
Gabor Juhos 3bc2afc384 linux: add broken flag to targets which are using 2.6.36
SVN-Revision: 31518
12 years ago
Felix Fietkau bfa2c971a0 mac80211: fix WDS AP authentication issues (#11261, #11318)
SVN-Revision: 31517
12 years ago
Felix Fietkau f44934b9ae netifd: update to latest version, fixes address/route list handling issues and fixes dual-stack ppp route handling
SVN-Revision: 31516
12 years ago
Felix Fietkau d4d223edad hostapd: update to 20120428, fixes some radius issues and wds ap mac address issues
SVN-Revision: 31515
12 years ago
Felix Fietkau 873cdb190c pppd: fix parsing the ipv6-{up,down}-script option
SVN-Revision: 31514
12 years ago
Gabor Juhos 417185b33c adm5120: create a new subtarget for the RB1xx devices
SVN-Revision: 31513
12 years ago
Gabor Juhos 7925eea45f adm5120: share a common kernel config between the subtargets
SVN-Revision: 31512
12 years ago