summaryrefslogtreecommitdiff
path: root/networking/udhcp/script.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* openvt: fix gross mismatch between us and "standard" openvt.Denis Vlasenko2008-03-271-1/+1
| | | | | | | | | | | | | | | | | | standard one even has different syntax! std: "openvt -c 12", we: "openvt 12" std: "openvt top", we: complain that "top" is not a number. openvt: implement -c -w -s (-l -f -v are also accepted but ingnored) openvt_main 188 343 +155 vfork_child - 67 +67 not_vt_fd - 23 +23 packed_usage 23932 23952 +20 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 2/0 up/down: 265/0) Total: 265 bytes text data bss dec hex filename 801344 641 7380 809365 c5995 busybox_old 801617 641 7380 809638 c5aa6 busybox_unstripped
* libbb: introduce and use safe_waitpid (loops in EINTR)Denis Vlasenko2008-01-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | *: use more approproate (shorter) versions of wait() function old new delta safe_waitpid - 48 +48 wait_any_nohang - 17 +17 send_tree 365 369 +4 processorstop 432 435 +3 text_yank 110 108 -2 make_human_readable_str 202 200 -2 crond_main 1368 1366 -2 handle_sigchld 49 43 -6 reapchild 166 159 -7 custom 260 250 -10 checkscript 191 177 -14 wait_nohang 17 - -17 wait_pid 43 - -43 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 2/7 up/down: 72/-103) Total: -31 bytes
* dhcp: heed TODO item - divorced options from their string descriptionsDenis Vlasenko2007-11-291-8/+14
| | | | | | | | | | | | | | | | | | | | | code shrink while at it. function old new delta dhcp_option_strings - 258 +258 udhcp_run_script 1135 1174 +39 dhcp_option_lengths - 11 +11 udhcp_add_simple_option 93 92 -1 packet_num 4 - -4 read_opt 746 739 -7 udhcp_option_lengths 11 - -11 udhcpc_main 2590 2494 -96 dhcp_options 490 70 -420 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 1/4 up/down: 308/-539) Total: -231 bytes text data bss dec hex filename 775309 929 9100 785338 bfbba busybox_old 775098 929 9084 785111 bfad7 busybox_unstripped
* dhcpc: let server know we don't like oversized packets.Denis Vlasenko2007-11-281-11/+12
| | | | | add TODO comment
* max_option_length[] holds small ints, uint8_t is enoughDenis Vlasenko2007-08-191-1/+1
| | | | | | function old new delta max_option_length 44 11 -33
* udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata.Denis Vlasenko2007-04-071-22/+30
| | | | | | | | | | | | | | | | | | | | | | a few global variables reduced to smallints function old new delta add_lease 75 227 +152 static.blank_chaddr - 16 +16 MAC_BCAST_ADDR - 6 +6 sockfd 4 8 +4 udhcp_run_script 1153 1155 +2 state 8 5 -3 listen_mode 4 1 -3 perform_release 152 148 -4 fd 8 4 -4 blank_chaddr 16 - -16 udhcpc_main 2518 2497 -21 .rodata 131864 131832 -32 oldest_expired_lease 61 - -61 clear_lease 127 - -127 ------------------------------------------------------------------------------ (add/remove: 2/3 grow/shrink: 3/6 up/down: 180/-271) Total: -91 bytes
* udhcp: optionally support RFC3397 (by Gabriel L. Somlo <somlo@cmu.edu>)Denis Vlasenko2007-02-271-11/+22
|
* preparatory patch for -Wwrite-strings #2Denis Vlasenko2007-01-291-1/+1
|
* udhcpc: fix my breakageDenis Vlasenko2006-11-281-3/+1
|
* add "wpad" DHCP option. Spotted some optimization opportunities: -80 bytesDenis Vlasenko2006-11-231-2/+4
|
* udhcp: fix indentation and style.Denis Vlasenko2006-11-181-12/+3
| | | | | Eliminate (group) a lot of smallish *.h files Remove lots of unneeded #includes
* Implement optional syslog logging using ordinaryDenis Vlasenko2006-09-061-2/+2
| | | | | | bb_xx_msg calls, and convert networking/* to it. The rest of bbox will be converted gradually.
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-6/+6
| | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
* Standardize on the vi editing directives being on the first line."Robert P. J. Day"2006-07-021-0/+1
|
* My first bout of untangling udhcp. Make lots of gratuitous #defines goRob Landley2006-05-281-21/+8
| | | | | | away, substitutie BB_VER for an external VERSION, use busybox CONFIG symbols rather than checking for them then defining others, etc. Lots more cleanup to do...
* Minor cleanups: Convert a few calloc() calls to xzalloc, remove unnecessaryRob Landley2006-05-211-1/+1
| | | | memset, collate variable declarations...
* add back in udhcp supportMike Frysinger2006-05-081-0/+234
|
* remove in place of external linkMike Frysinger2006-03-231-234/+0
|
* just whitespaceTim Riker2006-01-251-1/+1
|
* more make safe the exported namespace for udhcp. Move to bb-specific file ↵"Vladimir N. Oleynik"2005-09-231-1/+1
| | | | for reduce change into udhcp-CVS
* safe exported namespace for udhcp. Not full, bore :-("Vladimir N. Oleynik"2005-09-221-0/+1
|
* fix memory leak caused by switch to vforkRuss Dill2004-05-191-3/+4
|
* Larry Doolittle writes:Eric Andersen2004-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-5/+5
|
* Use standard C99 typesEric Andersen2004-01-301-7/+7
|
* fix a long standing underallocation bugRuss Dill2003-12-241-2/+5
|
* move debugging to safe place (before vfork)Russ Dill2003-12-241-3/+2
|
* Finish remerging busybox udhcp and udhcp. Some cleanups as well.Russ Dill2003-12-181-30/+14
|
* include headers with prototypes to make sure prototypes matchRuss Dill2003-12-161-1/+1
|
* make udhcp work under uclinux, to an extentRuss Dill2003-12-151-1/+3
|
* options is a pretty common symbol, bad idea to use as a global in udhcp when ↵Russ Dill2003-12-151-7/+8
| | | | compiling into busybox
* Vodz, last_patch_88Glenn L McGrath2003-06-101-34/+25
|
* sync with udhcp bug fixesRuss Dill2003-02-121-4/+5
|
* resync with udhcp cvsRuss Dill2002-12-111-60/+39
|
* Support using ip in udhcpc scripts.Glenn L McGrath2002-12-081-0/+44
| | | | Slightly modified version of patch by Bastian Blank
* added full udhcp integrationRuss Dill2002-10-141-0/+228