summaryrefslogtreecommitdiff
path: root/networking/route.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* telnet: use poll, it's shorterDenis Vlasenko2007-11-061-3/+4
| | | | | *: style fixes
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-181-1/+1
| | | | | | | | (add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-6/+8
| | | | | | | | | trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
* xioctl and friends by Tito <farmatito@tiscali.it>Denis Vlasenko2007-07-141-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta do_iptunnel 203 977 +774 process_dev 5328 5494 +166 ioctl_or_perror - 54 +54 ioctl_or_perror_and_die - 51 +51 ioctl_alt_func - 49 +49 bb_ioctl_or_warn - 47 +47 do_add_ioctl 102 145 +43 bb_xioctl - 39 +39 print_value_on_off - 31 +31 get_lcm 105 123 +18 arp_main 2155 2167 +12 .................. zcip_main 1576 1566 -10 setlogcons_main 92 82 -10 dumpkmap_main 263 253 -10 do_get_ioctl 85 75 -10 setkeycodes_main 165 154 -11 write_table 244 232 -12 vconfig_main 318 306 -12 do_del_ioctl 93 81 -12 set_address 75 62 -13 maybe_set_utc 30 16 -14 loadfont_main 495 479 -16 slattach_main 712 695 -17 do_loadfont 191 174 -17 do_iplink 1155 1136 -19 getty_main 2583 2562 -21 fbset_main 2058 2035 -23 do_time 588 565 -23 xioctl 25 - -25 read_rtc 186 160 -26 parse_conf 1299 1270 -29 udhcp_read_interface 269 239 -30 bb_ioctl 45 - -45 bb_ioctl_alt 70 - -70 bb_ioctl_on_off 78 - -78 .rodata 129370 129018 -352 do_show 799 - -799 ------------------------------------------------------------------------------ (add/remove: 6/5 grow/shrink: 13/49 up/down: 1316/-1864) Total: -548 bytes text data bss dec hex filename 675352 2740 13968 692060 a8f5c busybox_old 674804 2740 13968 691512 a8d38 busybox_unstripped
* networking/interface.c: huke remaining big statics; use malloc for ↵Denis Vlasenko2007-06-191-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | INET[6]_rresolve return value. Went thru callers and adjusted them - code got smaller too. function old new delta ip_port_str - 126 +126 INET6_rresolve 165 182 +17 static.cache 20 24 +4 route_main 2092 2091 -1 INET_sprint 61 59 -2 INET_nn 4 - -4 INET6_sprint 59 53 -6 udp_do_one 518 508 -10 tcp_do_one 433 423 -10 raw_do_one 494 484 -10 traceroute_main 4117 4105 -12 INET_rresolve 334 321 -13 bb_displayroutes 494 456 -38 snprint_ip_port 244 - -244 static.buff 264 16 -248 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 2/10 up/down: 147/-598) Total: -451 bytes size busybox_old busybox_unstripped text data bss dec hex filename 751073 3048 14688 768809 bbb29 busybox_old 750873 3048 14440 768361 bb969 busybox_unstripped
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-2/+3
| | | | | *: s/include "busybox.h"/include "libbb.h"
* style fixesDenis Vlasenko2007-04-131-1/+1
|
* style fixes. No code changesDenis Vlasenko2007-04-121-2/+2
|
* style fixes. No code changes.Denis Vlasenko2007-04-101-1/+1
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #2Denis Vlasenko2007-01-291-1/+1
|
* - sed -i -e "/\$Id:/d;"Bernhard Reutner-Fischer2007-01-221-1/+0
|
* cleanups: unnecessary casts, unified const_1, eliminate cross-.c fileDenis Vlasenko2007-01-221-36/+36
| | | | | prototypes (heresy!), add spaces in places like "flags&NETSTAT_CONNECTED", removed unused #defines, #ifdef -> #if, use uint32_t for ipv4 addrs.
* stop using __u32 etc. uint32_t is there for a reasonDenis Vlasenko2006-12-311-12/+6
|
* 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.
* bb_INET_default[] is really just a const "default",Denis Vlasenko2006-11-211-2/+2
| | | | nothing INET-specific
* remove bb_printf and the likeDenis Vlasenko2006-10-261-15/+12
|
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-7/+7
|
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-2/+2
| | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-22/+8
| | | | | | | | | | 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.)
* More removal of "#if 0" content."Robert P. J. Day"2006-07-011-4/+0
|
* fix no previous prototype warningMike Frysinger2006-05-111-0/+1
|
* - patch from Denis Vlasenko to add and use bb_xsocket() and to useBernhard Reutner-Fischer2006-04-121-11/+4
| | | | | bb_xopen some more while at it. Also use shorter boilerplate while at it.
* fix up annoying signed/unsigned and mixed type errorsEric Andersen2006-01-301-1/+1
|
* added support /prefix for IPV4 form IPV6 code. Close bug 461"Vladimir N. Oleynik"2006-01-251-3/+20
|
* just whitespaceTim Riker2006-01-251-6/+6
|
* network "default" --> bb_INET_default. Reduce 2 exported from find applet"Vladimir N. Oleynik"2005-09-221-1/+1
|
* Two FEATURE_CLEAN_UP patches from Shaun Jackman, closing filehandles.Rob Landley2005-08-221-4/+2
|
* Patch from Bernhard Fischer to make a bunch of symbols staticEric Andersen2005-04-161-0/+1
| | | | which were otherwise cluttering the global namespace.
* Oops.. got a bit to aggressive with size optimization and global replace. :-(Manuel Novoa III2004-03-191-3/+5
|
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-4/+4
|
* In spite of the feature freeze, check in a complete rework of route whichManuel Novoa III2004-03-101-478/+486
| | | | | | | | fixes some bugs, adds some error checking, and removes _lots_ of bloat. Text size on i386... old new ipv6 5425 3523 no ipv6 3143 2193
* Fix/eliminate use of atolEric Andersen2004-03-061-3/+2
|
* Major coreutils update.Manuel Novoa III2003-03-191-38/+38
|
* Always print the routing table header for IPv4:Robert Griebl2002-12-161-7/+6
| | | | | | - this is consistent with IPv6 route - you can get very confused, if there are no routes and "route" prints nothing at all (not even "No routes" message)
* Eliminate dependancy on kernel header files. Naughty naughty.Eric Andersen2002-12-111-3/+2
| | | | | | Using linux kernel headers is a Bad Thing(tm) and should be punished. -Erik
* use #ifdef CONFIG_* instead of #if CONFIG_*Glenn L McGrath2002-11-261-7/+7
|
* Run through indent, fix commentGlenn L McGrath2002-08-221-163/+174
|
* This patch from Bart Visscher <magick@linux-fan.com> addsEric Andersen2002-07-031-3/+240
| | | | | | | | | | | | | | | IPV6 support to busybox. This patch does the following: * Add IPv6 support to libbb * Enable IPv6 interface address display * Add IPv6 config option * Adds ping6, an adaptation of the ping applet for IPv6 * Adds support routines for ping6: - xgethostbyname2 - create_icmp6_socket * Adds ifconfig support for IPv6 * Add support IPv6 to netstat * Add IPv6 support to route Thanks Bart!
* Reduced code size for new -e flag (suggested by vodz)Robert Griebl2002-05-161-17/+9
|
* This patch adds -e (extended information) to route and -r/-e (show routingRobert Griebl2002-05-141-22/+48
| | | | | tables/extended information) to netstat. This makes them behave (more) like their GNU counterparts.
* Latest patch from vodz:Eric Andersen2001-11-101-40/+29
| | | | | | | -- reverse resolve network name and cache in route and ifconfig applets, fix print nslookup server name if compile without uClibc, fix route crashe 'route add', fix warnings compile networking and pwd_grp applets
* Another fix from vodzEric Andersen2001-09-051-45/+47
|
* patch from vodz -- route cleanup to display all route entriesEric Andersen2001-08-271-9/+30
|
* A patch from Jaspreet Singh <jsingh@somanetworks.com>Eric Andersen2001-08-231-5/+6
| | | | fixing both a segfault and cosmetic bug in route
* A nice patch from Larry Doolittle that adds -Wshadow andEric Andersen2001-03-211-6/+6
| | | | cleans up most of the now-revealed problems.
* A cleanup patch from Jeff Garzik to static-ify a number ofEric Andersen2001-03-091-2/+2
| | | | namespace polluting things that really should be static.
* This patch by Vladimir and Larry saves a few bytes.Eric Andersen2001-03-071-5/+4
|
* It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen2001-02-201-2/+2
| | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik