Merge wl500g patches from http://code.google.com/p/wl500g

- 120-heipv6tb.patch
- 121-hedyndns.patch
- 210-wildcard.patch

Signed-off-by: Andrey Tikhomirov <admin@vampik.ru>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Use HE and DNS-O-Matic own checkip services.

Signed-off-by: Andrey Tikhomirov <admin@vampik.ru>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Fix malformed HTTP request.

Signed-off-by: Andrey Tikhomirov <admin@vampik.ru>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Cosmetic fix.

Signed-off-by: Andrey Tikhomirov <admin@vampik.ru>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Add ability to handle non-fatal temporary errors

E.g. "update too often", system error etc.

Signed-off-by: Andrey Tikhomirov <admin@vampik.ru>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Warn if initial DNS request failed.

Signed-off-by: Andrey Tikhomirov <admin@vampik.ru>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Add dnsexit.com support.

Previously it was possible to to use dnsexit via dnsomatic, but direct
support allows to handle temporary errors.

Signed-off-by: Andrey Tikhomirov <admin@vampik.ru>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Cleanup useless defines for improved readability/maintainability.

Signed-off-by: Andrey Tikhomirov <admin@vampik.ru>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Skip headers for IP search.

Signed-off-by: Andrey Tikhomirov <admin@vampik.ru>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Skip headers when warning a user about error.

Signed-off-by: Andrey Tikhomirov <admin@vampik.ru>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Modify http client to parse response for http status code and response body.

HTTP_TRANSACTION struct already had the status variable, but checking
the status code was not implemented and variable was unused.

Only response body should be parsed for DDNS server answer.

Also fixes TZO - improper usage of strstr() for checking status code.

Signed-off-by: Andrey Tikhomirov <admin@vampik.ru>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Code cleanup

Rename or remove some defines and functions, unify request style for
better code readability. Remove DynDNS ignored and deprecated parameters
(wildcard, mx, backmx, system). Wildcard kept for easydns.com.

Signed-off-by: Andrey Tikhomirov <admin@vampik.ru>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Remove unneeded parameters and structure members.

Signed-off-by: Andrey Tikhomirov <admin@vampik.ru>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Report detected IP to sitelutions and dynsip servers.

Handle system errors on dyndns-like, dnsexit and sitelution servers.
Handle "too soon" error on easydns.

Signed-off-by: Andrey Tikhomirov <admin@vampik.ru>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Fix inadyn(8) man page.

Signed-off-by: Andrey Tikhomirov <admin@vampik.ru>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Update TZO support.

Signed-off-by: Andrey Tikhomirov <admin@vampik.ru>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Check HTTP status code before validating response.

Assume 200 as ok (other 2xx codes shouldn't be received in response to
the simple GET request), 5xx as temporary server failure and any other
as permanent error (4xx is error anyway, 3xx is redirection, so there is
definitely something wrong).

Also check status code of IP server response.

Signed-off-by: Andrey Tikhomirov <admin@vampik.ru>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Refactor zoneedit and dnsexit response validation.

Signed-off-by: Andrey Tikhomirov <admin@vampik.ru>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Move "?" from URL to request format

Signed-off-by: Andrey Tikhomirov <admin@vampik.ru>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Change minor version number

Signed-off-by: Andrey Tikhomirov <admin@vampik.ru>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>