Denis Vlasenko
|
6e6d331d97
|
udhcpc: stop deleting our own pidfile if we daemonize.
udhcp[cd]: stop using atexit magic fir pidfile removal.
|
2007-05-03 23:39:35 +00:00 |
|
Denis Vlasenko
|
50f7f446ec
|
bb_full_fd_action: remove potential xmalloc from NOFORK path
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
|
2007-04-11 23:20:53 +00:00 |
|
Denis Vlasenko
|
fbd2918f5c
|
udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata.
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
|
2007-04-07 01:05:47 +00:00 |
|
Bernhard Reutner-Fischer
|
febe3c4211
|
- sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g"
|
2007-04-04 20:52:03 +00:00 |
|
Denis Vlasenko
|
ba2fb719b9
|
Copyright, help text, whitespace cleanups
|
2007-04-01 09:39:03 +00:00 |
|
Denis Vlasenko
|
5e43d8591b
|
dumpleases: getopt32()-ization
(from Mats Erik Andersson <mats.andersson64@comhem.se>)
|
2007-03-29 19:29:32 +00:00 |
|
Denis Vlasenko
|
10457b90db
|
make pidfile writing configurable.
[ui]toa_to_buf: change API. No users yet.
|
2007-03-27 22:01:31 +00:00 |
|
Denis Vlasenko
|
ec1a4b5a52
|
pidfile.c: not used anymore
BTW, previous change removed pidfile locking, -700 code (static compile)
|
2007-03-26 13:24:24 +00:00 |
|
Denis Vlasenko
|
af1c84360f
|
Move udhcp to new NOMMU helpers.
Fix server part to compile under NOMMU.
Client is not compilable yet.
On MMU everything compiles (and maybe even works :)
|
2007-03-26 13:22:35 +00:00 |
|
Denis Vlasenko
|
219d14d514
|
random style fixes (extra spaces deleted)
|
2007-03-24 15:40:16 +00:00 |
|
Denis Vlasenko
|
1ce190b7c1
|
udhcp: use fdprintf for pidfile creation (smaller code)
|
2007-03-14 21:54:42 +00:00 |
|
Denis Vlasenko
|
8e858e2700
|
clean up accumulated whitespace damage
|
2007-03-07 09:35:43 +00:00 |
|
Denis Vlasenko
|
4c7e5b6c76
|
I *always* forget svn add :(
|
2007-02-27 22:39:19 +00:00 |
|
Denis Vlasenko
|
5066473d41
|
udhcp: optionally support RFC3397 (by Gabriel L. Somlo <somlo@cmu.edu>)
|
2007-02-27 21:15:08 +00:00 |
|
Denis Vlasenko
|
e991303406
|
udhcp: use improved gethostbyname replacement from IPv6 code
|
2007-02-04 02:41:57 +00:00 |
|
Denis Vlasenko
|
06af216528
|
suppress warnings about easch <applet>_main() having
no preceding prototype
|
2007-02-03 17:28:39 +00:00 |
|
Denis Vlasenko
|
e129f43c83
|
add a comment so that people won't get confused
|
2007-02-02 01:57:24 +00:00 |
|
Denis Vlasenko
|
c4d606e367
|
udhcpd: allow "domain" to be a list of DNS servers, not just one
|
2007-02-02 01:16:08 +00:00 |
|
Denis Vlasenko
|
b6aae0f381
|
preparatory patch for -Wwrite-strings #2
|
2007-01-29 22:51:25 +00:00 |
|
Denis Vlasenko
|
e06bed30cf
|
use bb_sanitize_stdio() where appropriate
|
2007-01-27 22:21:12 +00:00 |
|
Denis Vlasenko
|
703e20235a
|
cleanups: unnecessary casts, unified const_1, eliminate cross-.c file
prototypes (heresy!), add spaces in places like "flags&NETSTAT_CONNECTED",
removed unused #defines, #ifdef -> #if, use uint32_t for ipv4 addrs.
|
2007-01-22 14:12:08 +00:00 |
|
Denis Vlasenko
|
35d4da0fb5
|
exterminate u_intXXX.
fix ping6 buglet (memset is too short), minor sync between ping and ping6
|
2007-01-22 14:04:27 +00:00 |
|
Denis Vlasenko
|
4ebaf10742
|
strdup -> xstrdup
sed: de-obfuscate piece of code
|
2007-01-19 21:33:19 +00:00 |
|
Denis Vlasenko
|
74c9d2365a
|
fix potentially misaligned 32-bit accesses
|
2007-01-18 15:42:00 +00:00 |
|
Denis Vlasenko
|
666da5e2c6
|
merge post-1.3.0 fixes
|
2006-12-26 18:17:42 +00:00 |
|
Denis Vlasenko
|
1d14e6f48c
|
Always use /usr/share/udhcpc/default.script ([/usr] was depending on CONFIG_xx)
|
2006-12-22 11:47:19 +00:00 |
|
Denis Vlasenko
|
28703015ab
|
u_short, ulong exterminated
fdiskXXX: add a bit of sanity (not enough by far)
|
2006-12-19 20:32:02 +00:00 |
|
Bernhard Reutner-Fischer
|
28fbd69bf8
|
- use xlisten/xsocket some more. Saves .25 kB
|
2006-12-19 16:31:09 +00:00 |
|
Denis Vlasenko
|
83e5d6f772
|
A bunch of defined(__GLIBC__) added. static-linking warning expanded
|
2006-12-18 21:49:06 +00:00 |
|
Denis Vlasenko
|
c61852a02b
|
fix support for globally disabling --long-options.
(disabling them saves ~4K on fully configured bbox)
|
2006-11-29 11:09:43 +00:00 |
|
Denis Vlasenko
|
c2f5b02293
|
udhcpc: fix my breakage
|
2006-11-28 00:21:46 +00:00 |
|
Denis Vlasenko
|
229b3d2072
|
do not overflow ifr_name. maybe it was safe in some places,
but not everywhere. err to the safe side.
|
2006-11-27 23:44:57 +00:00 |
|
Denis Vlasenko
|
e2d3ded354
|
udhcpc: convert to getopt32
|
2006-11-27 23:43:28 +00:00 |
|
Denis Vlasenko
|
d686a045c8
|
safe_strtoXX interface proved to be a bit unconvenient.
Remove it, introduce saner bb_strtoXX.
Saved ~350 bytes.
|
2006-11-27 14:43:21 +00:00 |
|
Denis Vlasenko
|
c90c3f30a8
|
add "wpad" DHCP option. Spotted some optimization opportunities: -80 bytes
|
2006-11-23 12:57:49 +00:00 |
|
Denis Vlasenko
|
48237b0c88
|
introduce setsockopt_reuseaddr(int fd), setsockopt_broadcast(int fd),
use them where appropriate. 200 bytes saved
|
2006-11-22 23:22:06 +00:00 |
|
Bernhard Reutner-Fischer
|
a8381948da
|
- style fixes
|
2006-11-21 11:23:11 +00:00 |
|
Denis Vlasenko
|
04291bc5ae
|
httpd: slight reduction of #ifdef forest
few other applets: #ifdef CONFIG_ -> #if ENABLE_
traceroute: fix exposed bugs
defconfig: update
|
2006-11-21 10:15:25 +00:00 |
|
Denis Vlasenko
|
736230e209
|
dhcprelay: new applet
|
2006-11-20 19:40:36 +00:00 |
|
Denis Vlasenko
|
c9cdeaa3fe
|
add compile-time check for correct DHCP packet size
|
2006-11-20 01:13:09 +00:00 |
|
Denis Vlasenko
|
61126ab30a
|
small fixes: using fd-based io instead of FILE*-based,
missed O_TRUNC, etc
|
2006-11-18 22:03:26 +00:00 |
|
Denis Vlasenko
|
5a3395bc01
|
udhcp: fix indentation and style.
Eliminate (group) a lot of smallish *.h files
Remove lots of unneeded #includes
|
2006-11-18 19:51:32 +00:00 |
|
Denis Vlasenko
|
a7189f01a4
|
add -Wundef, fix uncovered bugs
|
2006-11-17 20:29:00 +00:00 |
|
Denis Vlasenko
|
e1a0d486e4
|
message string changes, mostly for consistency, also -32 bytes in .rodata
|
2006-10-20 13:28:22 +00:00 |
|
Denis Vlasenko
|
ea62077b85
|
add open_read_close() and similar stuff
|
2006-10-14 02:23:43 +00:00 |
|
Denis Vlasenko
|
a6dbb08a48
|
small style fixes
|
2006-10-12 19:29:44 +00:00 |
|
Denis Vlasenko
|
1385899416
|
attempt to regularize atoi mess.
|
2006-10-08 12:49:22 +00:00 |
|
Denis Vlasenko
|
7d219aab70
|
build system overhaul
|
2006-10-05 10:17:08 +00:00 |
|
Denis Vlasenko
|
8f8f268cfd
|
bb_applet_name -> applet_name
|
2006-10-03 21:00:43 +00:00 |
|
Denis Vlasenko
|
a959588b80
|
Yet another silly little byte saving. couldn't -> cannot
|
2006-09-29 21:30:43 +00:00 |
|