Denis Vlasenko
4d47692fb8
arp: stop using globals
...
function old new delta
hw_set 1 - -1
arp_main 1559 1558 -1
sockfd 8 4 -4
hw 4 - -4
device 4 - -4
ap 4 - -4
packed_usage 25402 25393 -9
------------------------------------------------------------------------------
(add/remove: 0/4 grow/shrink: 0/3 up/down: 0/-27) Total: -27 bytes
2008-11-13 00:05:17 +00:00
Denis Vlasenko
81c6a91251
telnetd: fix compile problem for non-standalone telnetd
2008-11-12 21:14:50 +00:00
Denis Vlasenko
9f2f808b0d
telnetd: correctly output 0xff char. ~100 bytes.
...
telnet: fix some atrocious names and style. no code changes
2008-11-11 02:56:39 +00:00
Denis Vlasenko
6d0443557c
telnetd: set SO_KEEPALIVE, users report it's useful. +20 bytes.
2008-11-09 00:44:40 +00:00
Denis Vlasenko
3fa36e2350
*: a bit of code shrink
...
function old new delta
stop_handler 41 38 -3
sulogin_main 508 504 -4
got_cont 4 - -4
cont_handler 11 - -11
startservice 309 297 -12
processorstart 423 409 -14
tcpudpsvd_main 1861 1843 -18
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 0/5 up/down: 0/-66) Total: -66 bytes
2008-11-09 00:15:11 +00:00
Denis Vlasenko
b0150d299f
telnetd: handle emacs M-DEL and IAC-NOP (putty keepalive)
...
by Jim Cathey (jcathey AT ciena.com)
function old new delta
telnetd_main 1314 1364 +50
2008-11-07 01:58:21 +00:00
Denis Vlasenko
b9d572a273
total overhaul of mail applets. again. Vladimir as usual.
2008-11-06 23:41:38 +00:00
Denis Vlasenko
3854c5ddf4
runsvdir: alternative methon of supporting runsvdir-as-init. +66 bytes.
...
*: s/int/pid_t where appropriate
2008-11-06 22:39:57 +00:00
Denis Vlasenko
35a064b67f
build system: tidying up CONFIG_xxx names (suggested by Rob)
2008-11-06 00:49:59 +00:00
Denis Vlasenko
202ac504e1
*: code shrink by adding a wrapper around very common tcsetattr(0, TCSANOW, xx) op
...
function old new delta
tcsetattr_stdin_TCSANOW - 14 +14
set_sane_term 116 113 -3
top_main 1277 1273 -4
make_new_session 421 415 -6
rawmode 133 126 -7
reset_term 18 10 -8
die 43 35 -8
cookmode 62 54 -8
vlock_main 425 415 -10
read_line_input 3165 3155 -10
bb_askpass 357 347 -10
fsck_minix_main 3079 3065 -14
getty_main 2375 2332 -43
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/12 up/down: 14/-131) Total: -117 bytes
2008-11-05 13:20:58 +00:00
Denis Vlasenko
4cb576ea98
inetd: fix a case when we have zero services
2008-11-05 11:36:22 +00:00
Denis Vlasenko
391ffa19d1
nslookup: tiny shrink (-5 bytes); add comment about res_init
...
inet_common: cosmetics, no code changes
2008-11-04 21:44:28 +00:00
Denis Vlasenko
5a89763fb7
tftpd: show help if stdin is not a socket
2008-11-01 00:22:24 +00:00
Denis Vlasenko
44d5dcebc6
iplink: accept shorthands for "address" keyword here:
...
"ip link set address 00:11:22:33:44:55"
ifupdown: use "addr" instead of "address"
2008-11-01 00:10:51 +00:00
Bernhard Reutner-Fischer
470dc1d7e2
- minor shrinkage (~-60)
2008-10-30 17:42:49 +00:00
Bernhard Reutner-Fischer
e29186687b
- support ip link set eth1 address 00:11:22:33:44:55
...
and not only the shorthand "addr". Thanks to ncopa for noticing
2008-10-30 16:45:55 +00:00
Denis Vlasenko
31d58e58d2
randomconfig fixes
2008-10-29 13:16:28 +00:00
Denis Vlasenko
7ff85c53f1
udhcp: simplify SO_BINDTODEVICE call
2008-10-27 12:56:58 +00:00
Denis Vlasenko
59f502b36f
ping: trivial code shrink
...
function old new delta
ping6_main 31 30 -1
ping_main 405 370 -35
2008-10-27 11:54:45 +00:00
Bernhard Reutner-Fischer
8fbd8ac8dd
- fix ip route rejecting dotted quads as prefix
...
- adjust error message for wrong prefix not to mention address
Previously e.g. ip route add 127.0.0.0/255.0.0.0 dev dummy0
was rejected, saying
ip: an inet address is expected rather than "127.0.0.0/255.0.0.0"
function old new delta
get_prefix_1 201 309 +108
get_prefix 55 73 +18
get_addr 55 73 +18
get_addr32 48 58 +10
get_addr_1 249 204 -45
.rodata 114569 114524 -45
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/2 up/down: 154/-90) Total: 64 bytes
2008-10-21 12:42:45 +00:00
Denis Vlasenko
cdd1f732bc
zcip: code size optimizations, improved help text and comments
...
function old new delta
packed_usage 24750 24787 +37
run 658 655 -3
pick 40 34 -6
arp 186 177 -9
zcip_main 1402 1356 -46
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/4 up/down: 37/-64) Total: -27 bytes
2008-10-10 11:28:39 +00:00
Bernhard Reutner-Fischer
578de8644c
- route metric support (Natanael Copa)
...
Adds about 75b
2008-10-07 17:00:58 +00:00
Bernhard Reutner-Fischer
c2d5a27b62
- wrap overlong line
2008-10-02 13:30:31 +00:00
Denis Vlasenko
df6b3ad6ba
inetd: use config parser. by Vladimir
...
function old new delta
reread_config_file 1092 2154 +1062
next_line 98 33 -65
next_word 197 57 -140
parse_one_line 1202 - -1202
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/2 up/down: 1062/-1407) Total: -345 bytes
2008-09-30 01:22:25 +00:00
Denis Vlasenko
58680706d7
route: fix for 64-bit BE machines by Seonghun Lim (wariua AT gmail.com)
2008-09-28 23:39:18 +00:00
Denis Vlasenko
2b2d977057
sendmail: update by Vladimir
2008-09-28 13:50:57 +00:00
Denis Vlasenko
bed22a01fb
sendmail: compat update by Vladimir
...
function old new delta
sendgetmail_main 1889 2091 +202
putchar_unlocked - 43 +43
putchar - 43 +43
packed_usage 24868 24910 +42
smtp_checkp 102 111 +9
uuencode 235 227 -8
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 3/1 up/down: 339/-8) Total: 331 bytes
2008-09-27 14:01:22 +00:00
Denis Vlasenko
739e30fbc3
udhcp: add inline docs; small code shrink
...
function old new delta
send_packet 103 87 -16
udhcpc_main 2359 2323 -36
2008-09-26 23:45:20 +00:00
Denis Vlasenko
7d9399e8dc
udhcpc: fixlet for previous commit
2008-09-26 22:21:03 +00:00
Denis Vlasenko
c321b51dc6
udhcp: added some FIXMEs; code shrink. -49 bytes
2008-09-26 16:29:12 +00:00
Denis Vlasenko
f1980f67d3
dhcp: add FAST_FUNC as appropriate. -160 bytes.
2008-09-26 09:34:59 +00:00
Denis Vlasenko
cdb0b652dd
dhcpc: treat "discover...select...discover..." loop the same way
...
as "discover...discover...discover..."
2008-09-26 09:34:15 +00:00
Bernhard Reutner-Fischer
6c4dadefb6
- update my name. No obj-code changes ;)
2008-09-25 12:13:34 +00:00
Denis Vlasenko
b8d1a4cd5f
init: set stderr to NONBLOCK
...
*: s/setenv(a,b,1)/xsetenv(a,b)/
function old new delta
init_main 856 895 +39
message 146 144 -2
crond_main 1418 1416 -2
run 661 658 -3
zcip_main 1409 1403 -6
edit_file 910 901 -9
environment 20 - -20
2008-09-20 16:28:59 +00:00
Denis Vlasenko
28f5619e84
slattach: preserve speed in non-raw mode. +39 bytes.
...
by Matthieu CASTET (matthieu.castet AT parrot.com)
2008-09-16 21:27:59 +00:00
Denis Vlasenko
08ea11ab07
runsvd: shrink by Vladimir
...
*: use unified trivial signal handler
function old new delta
record_signo - 10 +10
process_stdin 433 443 +10
bbunpack 383 391 +8
wc_main 598 605 +7
conescape 293 296 +3
nmeter_main 670 672 +2
fallbackSort 1717 1719 +2
bb_got_signal - 1 +1
microcom_main 713 712 -1
signalled 2 - -2
pack_gzip 1661 1659 -2
evalvar 1376 1374 -2
compare_keys 737 735 -2
parse_command 1460 1456 -4
expand 1748 1744 -4
s_term 37 29 -8
s_hangup 8 - -8
fgotsig 10 - -10
find_pair 187 169 -18
signal_handler 190 170 -20
runsvdir_main 1701 1583 -118
------------------------------------------------------------------------------
(add/remove: 2/3 grow/shrink: 6/10 up/down: 43/-199) Total: -156 bytes
2008-09-11 19:51:11 +00:00
Denis Vlasenko
ee9deb863e
ifenslave: on uclibc at least, net/if.h + linux/if_bonding.h dont coexist
2008-09-06 14:52:28 +00:00
Denis Vlasenko
ee34ebe966
ifenslave: wants net/if.h
2008-09-06 14:42:27 +00:00
Denis Vlasenko
1c781cc8ff
modprobe-small: make insmod command line compatible
...
function old new delta
modprobe_main 326 435 +109
moderror - 52 +52
process_module 577 530 -47
2008-09-06 14:14:01 +00:00
Bernhard Reutner-Fischer
0901c51518
- add WIP stub for tc.
...
Printing worked at some point. Modify/Delete needs some refacturing.
2008-09-04 13:22:58 +00:00
Bernhard Reutner-Fischer
b424930e4e
- pass "Accept:" and "Accept-Language:" header to CGI scripts (Alina Friedrichsen)
...
Alina writes:
With this patch the BusyBox httpd pass the "Accept:" and
"Accept-Language:" header by the environment variables to the
CGI-Script, so this can make Content Negotiation to deliver the page in
the language, which was selected by the user in the browser settings,
and/or serve the XHTML page with the right MIME-Type
application/xhtml+xml to user agents which support it und text/html
which don't.
(Needed e.g. for OpenWrt LuCI.)
Signed-off-by: Alina Friedrichsen <x-alina at gmx dot net>
2008-09-01 15:30:49 +00:00
Denis Vlasenko
18c93029fd
insmod: shrink
...
function old new delta
obj_allocate_commons 488 462 -26
insmod_main 3830 3714 -116
2008-08-27 22:29:43 +00:00
Denis Vlasenko
5770715588
ping: SO_RCVBUF must be bigger than packet size,
...
otherwise large ping packets might fail to be received.
2008-08-24 00:02:18 +00:00
Denis Vlasenko
6c4eb44113
ifupdown: fixes for shutdown of DHCP-managed interfaces
...
from Wade Berrier <wberrier AT gmail.com>
2008-08-19 23:02:23 +00:00
Denis Vlasenko
ec7e7aec8a
arp: without -H <type>, assume "ether". closes 4564
2008-08-15 20:14:23 +00:00
Denis Vlasenko
ee777c4e5f
ifupdown: fixes for custom MAC address, by Wade Berrier <wberrier AT gmail.com>
2008-08-12 01:35:34 +00:00
Denis Vlasenko
8d07560eef
sendmail: work around (bogus) gcc warning
2008-08-10 20:46:39 +00:00
Denis Vlasenko
cfe2936a73
nameif: shrink (by Vladimir)
...
function old new delta
nameif_main 668 636 -32
2008-08-01 02:32:23 +00:00
Denis Vlasenko
dadfb4975b
hush: add #defines to switch off break/continue if loops are not supported
...
*: remove a few inline keywords
no code changes
2008-07-29 10:16:05 +00:00
Denis Vlasenko
2c7a1fd6d4
netstat: code shrink
...
function old new delta
print_inet_line - 193 +193
scan_inet_proc_line - 130 +130
unix_do_one 519 503 -16
do_info 145 97 -48
netstat_main 601 548 -53
tcp_do_one 462 61 -401
raw_do_one 513 107 -406
udp_do_one 533 119 -414
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/6 up/down: 323/-1338) Total: -1015 bytes
2008-07-27 17:24:19 +00:00