Changeset 8f45320 in freewrt
- Timestamp:
- Jul 31, 2007, 4:05:39 PM (18 years ago)
- Children:
- 6967e9f
- Parents:
- 12c7b15
- Location:
- package/ez-ipupdate
- Files:
-
- 2 edited
-
Makefile (modified) (1 diff)
-
patches/patch-ez-ipupdate_c (modified) (19 diffs)
Legend:
- Unmodified
- Added
- Removed
-
package/ez-ipupdate/Makefile
r12c7b15 r8f45320 9 9 PKG_NAME:= ez-ipupdate 10 10 PKG_VERSION:= 3.0.11b8 11 PKG_RELEASE:= 811 PKG_RELEASE:= 9 12 12 PKG_MD5SUM:= 000211add4c4845ffa4211841bff4fb0 13 13 DISTFILES:= ${PKG_NAME}_${PKG_VERSION}.orig.tar.gz -
package/ez-ipupdate/patches/patch-ez-ipupdate_c
r12c7b15 r8f45320 4 4 5 5 --- ez-ipupdate-3.0.11b8.orig/ez-ipupdate.c Mon Mar 11 23:31:25 2002 6 +++ ez-ipupdate-3.0.11b8/ez-ipupdate.c Tue Jul 31 1 2:49:30 20076 +++ ez-ipupdate-3.0.11b8/ez-ipupdate.c Tue Jul 31 14:05:00 2007 7 7 @@ -87,6 +87,10 @@ 8 8 #define JUSTL_REQUEST "/bin/controlpanel/dyndns/jlc.pl" … … 199 199 200 200 // find domainname 201 @@ -3660,6 +3685,1 37@@ int JUSTL_update_entry(void)201 @@ -3660,6 +3685,140 @@ int JUSTL_update_entry(void) 202 202 return(UPDATERES_OK); 203 203 } … … 250 250 + snprintf(buf, BUFFER_SIZE, "%s=%s&", "username", user_name); 251 251 + output(buf); 252 + snprintf(buf, BUFFER_SIZE, "%s=%s&", "password", password); 253 + output(buf); 254 + snprintf(buf, BUFFER_SIZE, "%s=%s&", "ip", address); 255 + output(buf); 252 + snprintf(buf, BUFFER_SIZE, "%s=%s", "password", password); 253 + output(buf); 254 +#if 0 255 + /* cjb does IP address autodetection */ 256 + snprintf(buf, BUFFER_SIZE, "&%s=%s", "ip", address); 257 + output(buf); 258 +#endif 256 259 + snprintf(buf, BUFFER_SIZE, " HTTP/1.0\015\012"); 257 260 + output(buf); … … 337 340 { 338 341 char buf[BUFSIZ+1]; 339 @@ -3943,22 +4 099,22 @@ int HN_update_entry(void)342 @@ -3943,22 +4102,22 @@ int HN_update_entry(void) 340 343 break; 341 344 … … 364 367 break; 365 368 366 @@ -4215,8 +437 1,6 @@ int HEIPV6TB_update_entry(void)369 @@ -4215,8 +4374,6 @@ int HEIPV6TB_update_entry(void) 367 370 368 371 switch(ret) … … 373 376 if(!(options & OPT_QUIET)) 374 377 { 375 @@ -4349,7 +450 3,7 @@ void handle_sig(int sig)378 @@ -4349,7 +4506,7 @@ void handle_sig(int sig) 376 379 case SIGHUP: 377 380 if(config_file) … … 382 385 { 383 386 show_message("error parsing config file \"%s\"\n", config_file); 384 @@ -4384,6 +45 38,7 @@ void handle_sig(int sig)387 @@ -4384,6 +4541,7 @@ void handle_sig(int sig) 385 388 386 389 int main(int argc, char **argv) … … 390 393 int i; 391 394 int retval = 1; 392 @@ -4395,9 +455 0,10 @@ int main(int argc, char **argv)395 @@ -4395,9 +4553,10 @@ int main(int argc, char **argv) 393 396 mcheck(NULL); 394 397 #endif … … 403 406 *user = '\0'; 404 407 timeout.tv_sec = DEFAULT_TIMEOUT; 405 @@ -4417,7 +457 3,7 @@ int main(int argc, char **argv)408 @@ -4417,7 +4576,7 @@ int main(int argc, char **argv) 406 409 407 410 if(!(options & OPT_QUIET) && !(options & OPT_DAEMON)) … … 412 415 413 416 dprintf((stderr, "options: 0x%04X\n", options)); 414 @@ -4434,7 +459 0,7 @@ int main(int argc, char **argv)417 @@ -4434,7 +4593,7 @@ int main(int argc, char **argv) 415 418 { 416 419 if(service->check_info() != 0) … … 421 424 } 422 425 } 423 @@ -4456,13 +461 2,13 @@ int main(int argc, char **argv)426 @@ -4456,13 +4615,13 @@ int main(int argc, char **argv) 424 427 dprintf((stderr, "user_name: %s\n", user_name)); 425 428 dprintf((stderr, "password: %s\n", password)); … … 437 440 strncpy(password, getpass("password: "), sizeof(password)); 438 441 } 439 @@ -4480,7 +463 6,7 @@ int main(int argc, char **argv)442 @@ -4480,7 +4639,7 @@ int main(int argc, char **argv) 440 443 441 444 if(service->check_info() != 0) … … 446 449 } 447 450 448 @@ -4503,7 +46 59,7 @@ int main(int argc, char **argv)451 @@ -4503,7 +4662,7 @@ int main(int argc, char **argv) 449 452 450 453 if(interface == NULL) … … 455 458 exit(1); 456 459 } 457 @@ -4519,23 +467 5,25 @@ int main(int argc, char **argv)460 @@ -4519,23 +4678,25 @@ int main(int argc, char **argv) 458 461 if(fork() > 0) { exit(0); } /* parent */ 459 462 } … … 491 494 492 495 if(cache_file) 493 @@ -4560,7 +47 18,7 @@ int main(int argc, char **argv)496 @@ -4560,7 +4721,7 @@ int main(int argc, char **argv) 494 497 strftime(timebuf, sizeof(timebuf), "%Y/%m/%d %H:%M", ts); 495 498 show_message("got last update %s on %s from cache file\n", ipstr, timebuf); … … 500 503 show_message("malformed cache file: %s\n", cache_file); 501 504 } 502 @@ -4647,7 +480 5,7 @@ int main(int argc, char **argv)505 @@ -4647,7 +4808,7 @@ int main(int argc, char **argv) 503 506 } 504 507 else … … 509 512 memset(&sin, 0, sizeof(sin)); 510 513 511 @@ -4671,7 +48 29,7 @@ int main(int argc, char **argv)514 @@ -4671,7 +4832,7 @@ int main(int argc, char **argv) 512 515 dprintf((stderr, "updateres: %d\n", updateres)); 513 516 if(updateres == UPDATERES_SHUTDOWN) … … 518 521 519 522 if(notify_email && *notify_email != '\0') 520 @@ -4711,7 +48 69,7 @@ int main(int argc, char **argv)523 @@ -4711,7 +4872,7 @@ int main(int argc, char **argv) 521 524 #endif 522 525 … … 527 530 fprintf(stderr, " though.\n"); 528 531 exit(1); 529 @@ -4799,7 +49 57,7 @@ int main(int argc, char **argv)532 @@ -4799,7 +4960,7 @@ int main(int argc, char **argv) 530 533 } 531 534 else
Note:
See TracChangeset
for help on using the changeset viewer.
