aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* fix comment placement (no code changes)Denis Vlasenko2007-07-011-1/+2
|
* udhcp: new config option "Rewrite the lease file at every new acknowledge"Denis Vlasenko2007-07-019-113/+148
| | | | | | | | | | (Mats Erik Andersson <mats@blue2net.com> (Blue2Net AB)) udhcp: consistently treat server_config.start/end IPs as host-order fix IP parsing for 64bit machines fix unsafe hton macro usage in read_opt() do not chdir("/") when daemonizing fix help text
* wget: use monotonic_sec instead of gettimeofdayDenis Vlasenko2007-06-172-12/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zcip: use monotonic_us instead of gettimeofday udhcpcd: simpler, shorter random_xid() function old new delta monotonic_sec - 41 +41 find_pair 164 180 +16 run_list_real 2018 2028 +10 cmp_main 547 555 +8 collect_ctx 112 119 +7 singlemount 4544 4549 +5 time_main 1124 1128 +4 static.start_sec - 4 +4 static.lastupdate_sec - 4 +4 sock - 4 +4 read_package_field 253 257 +4 pick 38 40 +2 get_next_line 145 147 +2 count_lines 59 61 +2 process_stdin 435 433 -2 xstrtoul_range_sfx 229 226 -3 static.initialized 4 1 -3 dhcprelay_main 1125 1122 -3 catcher 380 377 -3 arping_main 1969 1966 -3 s 8 4 -4 cfg 4 - -4 static.lastupdate 8 - -8 start 8 - -8 random_xid 95 33 -62 .rodata 129114 129050 -64 zcip_main 1731 1576 -155 progressmeter 1035 867 -168 ------------------------------------------------------------------------------ (add/remove: 4/3 grow/shrink: 10/11 up/down: 113/-490) Total: -377 bytes
* whitespace fixesDenis Vlasenko2007-05-301-2/+2
|
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* xpipe: introduce (saves ~170 bytes)Denis Vlasenko2007-05-261-6/+7
| | | | | udhcp/signalpipe.c: use pipe instead of socketpair.
* udhcp: socketpair can fail if AF_UNIX is not available (e.g. if module is ↵Denis Vlasenko2007-05-241-1/+3
| | | | | | not loaded). Error out on that.
* udhcpc: stop deleting our own pidfile if we daemonize.Denis Vlasenko2007-05-033-34/+35
| | | | | udhcp[cd]: stop using atexit magic fir pidfile removal.
* bb_full_fd_action: remove potential xmalloc from NOFORK pathDenis Vlasenko2007-04-111-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cat: stop using stdio.h opens libbb: introduce & use open[3]_or_warn function old new delta open3_or_warn - 54 +54 bb_cat 115 144 +29 open_or_warn - 25 +25 unlzma 2404 2412 +8 chattr_main 334 339 +5 xstrtoul_range_sfx 251 255 +4 telnet_main 1514 1510 -4 static.opt 4 - -4 qgravechar 122 118 -4 fuser_add_pid 61 54 -7 fuser_add_inode 154 147 -7 writeFileToTarball 1542 1534 -8 refresh 1156 1148 -8 do_show 856 846 -10 read_leases 212 200 -12 setup_redirects 236 222 -14 iproute_list_or_flush 1582 1568 -14 read_config 427 411 -16 write_leases 284 264 -20 hash_file 338 318 -20 copy_file 1760 1740 -20 do_iproute 2610 2588 -22 bb_full_fd_action 320 269 -51 open_to_or_warn 103 49 -54 fuser_main 1660 1596 -64 .rodata 131160 131096 -64 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 4/19 up/down: 125/-423) Total: -298 bytes
* udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata.Denis Vlasenko2007-04-079-156/+169
| | | | | | | | | | | | | | | | | | | | | | 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
* - sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g"Bernhard Reutner-Fischer2007-04-043-6/+6
|
* Copyright, help text, whitespace cleanupsDenis Vlasenko2007-04-011-2/+2
|
* dumpleases: getopt32()-izationDenis Vlasenko2007-03-291-34/+27
| | | | (from Mats Erik Andersson <mats.andersson64@comhem.se>)
* make pidfile writing configurable.Denis Vlasenko2007-03-271-29/+16
| | | | [ui]toa_to_buf: change API. No users yet.
* pidfile.c: not used anymoreDenis Vlasenko2007-03-261-60/+0
| | | | BTW, previous change removed pidfile locking, -700 code (static compile)
* Move udhcp to new NOMMU helpers.Denis Vlasenko2007-03-265-66/+105
| | | | | | Fix server part to compile under NOMMU. Client is not compilable yet. On MMU everything compiles (and maybe even works :)
* random style fixes (extra spaces deleted)Denis Vlasenko2007-03-241-2/+4
|
* udhcp: use fdprintf for pidfile creation (smaller code)Denis Vlasenko2007-03-141-7/+1
|
* clean up accumulated whitespace damageDenis Vlasenko2007-03-071-1/+1
|
* I *always* forget svn add :(Denis Vlasenko2007-02-271-0/+205
|
* udhcp: optionally support RFC3397 (by Gabriel L. Somlo <somlo@cmu.edu>)Denis Vlasenko2007-02-276-21/+77
|
* udhcp: use improved gethostbyname replacement from IPv6 codeDenis Vlasenko2007-02-041-9/+8
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-034-0/+4
| | | | no preceding prototype
* add a comment so that people won't get confusedDenis Vlasenko2007-02-021-0/+1
|
* udhcpd: allow "domain" to be a list of DNS servers, not just oneDenis Vlasenko2007-02-022-13/+21
|
* preparatory patch for -Wwrite-strings #2Denis Vlasenko2007-01-294-7/+7
|
* use bb_sanitize_stdio() where appropriateDenis Vlasenko2007-01-271-15/+1
|
* cleanups: unnecessary casts, unified const_1, eliminate cross-.c fileDenis Vlasenko2007-01-221-1/+1
| | | | | prototypes (heresy!), add spaces in places like "flags&NETSTAT_CONNECTED", removed unused #defines, #ifdef -> #if, use uint32_t for ipv4 addrs.
* exterminate u_intXXX.Denis Vlasenko2007-01-221-4/+4
| | | | fix ping6 buglet (memset is too short), minor sync between ping and ping6
* strdup -> xstrdupDenis Vlasenko2007-01-191-1/+1
| | | | sed: de-obfuscate piece of code
* fix potentially misaligned 32-bit accessesDenis Vlasenko2007-01-181-3/+6
|
* merge post-1.3.0 fixesDenis Vlasenko2006-12-261-1/+2
|
* Always use /usr/share/udhcpc/default.script ([/usr] was depending on CONFIG_xx)Denis Vlasenko2006-12-221-5/+1
|
* u_short, ulong exterminatedDenis Vlasenko2006-12-192-4/+4
| | | | fdiskXXX: add a bit of sanity (not enough by far)
* - use xlisten/xsocket some more. Saves .25 kBBernhard Reutner-Fischer2006-12-195-27/+3
|
* A bunch of defined(__GLIBC__) added. static-linking warning expandedDenis Vlasenko2006-12-184-4/+4
|
* fix support for globally disabling --long-options.Denis Vlasenko2006-11-291-1/+4
| | | | (disabling them saves ~4K on fully configured bbox)
* udhcpc: fix my breakageDenis Vlasenko2006-11-282-5/+3
|
* do not overflow ifr_name. maybe it was safe in some places,Denis Vlasenko2006-11-271-1/+1
| | | | but not everywhere. err to the safe side.
* udhcpc: convert to getopt32Denis Vlasenko2006-11-273-171/+146
|
* safe_strtoXX interface proved to be a bit unconvenient.Denis Vlasenko2006-11-271-2/+4
| | | | | Remove it, introduce saner bb_strtoXX. Saved ~350 bytes.
* add "wpad" DHCP option. Spotted some optimization opportunities: -80 bytesDenis Vlasenko2006-11-234-54/+64
|
* introduce setsockopt_reuseaddr(int fd), setsockopt_broadcast(int fd),Denis Vlasenko2006-11-223-10/+7
| | | | | use them where appropriate. 200 bytes saved
* - style fixesBernhard Reutner-Fischer2006-11-211-15/+16
|
* httpd: slight reduction of #ifdef forestDenis Vlasenko2006-11-211-1/+1
| | | | | | few other applets: #ifdef CONFIG_ -> #if ENABLE_ traceroute: fix exposed bugs defconfig: update
* dhcprelay: new appletDenis Vlasenko2006-11-204-13/+366
|
* add compile-time check for correct DHCP packet sizeDenis Vlasenko2006-11-201-0/+4
|
* small fixes: using fd-based io instead of FILE*-based,Denis Vlasenko2006-11-184-48/+49
| | | | missed O_TRUNC, etc
* udhcp: fix indentation and style.Denis Vlasenko2006-11-1833-642/+332
| | | | | Eliminate (group) a lot of smallish *.h files Remove lots of unneeded #includes
* add -Wundef, fix uncovered bugsDenis Vlasenko2006-11-174-4/+4
|