aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/ll_proto.c
Commit message (Collapse)AuthorAgeFilesLines
* *: slap on a few ALIGN1/2s where appropriateGravatar Denys Vlasenko2019-05-211-1/+1
| | | | | | | | | | The result of looking at "grep -F -B2 '*fill*' busybox_unstripped.map" text data bss dec hex filename 952537 485 7296 960318 ea73e busybox_old 952527 485 7296 960308 ea734 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace and comment format fixes, no code changesGravatar Denys Vlasenko2017-10-051-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: slap on a few ALIGN1/2s where appropriateGravatar Denys Vlasenko2016-04-221-1/+1
| | | | | | | | | | The result of looking at "grep -F -B2 '*fill*' busybox_unstripped.map" text data bss dec hex filename 829901 4086 1904 835891 cc133 busybox_before 829665 4086 1904 835655 cc047 busybox Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fix compile failure in ll_proto.cGravatar Denys Vlasenko2012-09-031-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ll_proto.c: code shrinkGravatar Denys Vlasenko2012-09-021-23/+85
| | | | | | | | text data bss dec hex filename 762 0 0 762 2fa ll_proto.o.old 526 0 0 526 20e ll_proto.o Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: simplify Ethernet header includesGravatar Dan Fandrich2011-06-101-5/+1
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace cleanupGravatar Denys Vlasenko2010-10-291-7/+5
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: trailing empty lines removedGravatar Denys Vlasenko2010-07-261-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libiproute/*: code shrinkGravatar Denys Vlasenko2009-10-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta ll_addr_a2n 181 178 -3 rtnl_rtntype_a2n 198 194 -4 ipaddr_modify 1309 1305 -4 print_addrinfo 1303 1298 -5 do_iplink 1137 1132 -5 print_route 1609 1603 -6 parse_args 1440 1434 -6 iproute_list_or_flush 1261 1254 -7 rtnl_rttable_a2n 39 31 -8 rtnl_rtscope_a2n 39 31 -8 rtnl_rtrealm_a2n 39 31 -8 rtnl_rtprot_a2n 39 31 -8 rtnl_dsfield_a2n 39 31 -8 ll_type_n2a 78 70 -8 get_rt_realms 115 107 -8 print_tunnel 656 647 -9 rtnl_rttable_n2a 63 53 -10 rtnl_rtscope_n2a 63 53 -10 rtnl_rtrealm_n2a 63 53 -10 rtnl_rtntype_n2a 128 118 -10 rtnl_dsfield_n2a 71 61 -10 print_linkinfo 815 805 -10 ipaddr_list_or_flush 1246 1235 -11 iproute_modify 1048 1036 -12 iprule_modify 866 851 -15 print_rule 765 738 -27 ll_addr_n2a 182 150 -32 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/27 up/down: 0/-262) Total: -262 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* networking/libiproute/*: code shrink by optimizing numeric conversionsGravatar Denis Vlasenko2009-03-051-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | and other misc stuff function old new delta print_tunnel 660 656 -4 format_host 5 - -5 get_unsigned 70 54 -16 get_u32 70 54 -16 do_iplink 1173 1151 -22 get_prefix 417 393 -24 print_rule 800 771 -29 print_addrinfo 1374 1342 -32 print_route 1745 1709 -36 iprule_modify 905 866 -39 iproute_modify 1105 1048 -57 get_integer 70 - -70 parse_args 1684 1440 -244 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 0/11 up/down: 0/-594) Total: -594 bytes text data bss dec hex filename 817378 476 7892 825746 c9992 busybox_old 816784 476 7892 825152 c9740 busybox_unstripped
* modprobe-small: make insmod command line compatibleGravatar Denis Vlasenko2008-09-061-0/+2
| | | | | | | | function old new delta modprobe_main 326 435 +109 moderror - 52 +52 process_module 577 530 -47
* - add WIP stub for tc.Gravatar Bernhard Reutner-Fischer2008-09-041-2/+1
| | | | Printing worked at some point. Modify/Delete needs some refacturing.
* more of -Wall fixes from Cristian Ionescu-Idbohrn.Gravatar Denis Vlasenko2008-05-151-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some are fixing real bugs. function old new delta syslogd_main 938 958 +20 get_signum 136 143 +7 obj_load 777 782 +5 recv_from_to 210 214 +4 get_next_block 1795 1799 +4 display_topmem_process_list 1117 1121 +4 logread_main 484 487 +3 buffer_fill_and_print 73 76 +3 kill_main 687 689 +2 ll_remember_index 240 241 +1 do_stats 452 453 +1 if_readconf 166 165 -1 display_process_list 1192 1191 -1 run_applet_and_exit 507 505 -2 print_signames 33 31 -2 parse_one_line 1092 1090 -2 find_out_spec 57 55 -2 add_ksymoops_symbols 421 419 -2 ash_main 1407 1402 -5 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 11/8 up/down: 54/-17) Total: 37 bytes
* random s/short/int/Gravatar Denis Vlasenko2008-02-161-2/+2
| | | | | | | | | add_cmd 1189 1190 +1 xconnect_ftpdata 118 117 -1 data_align 86 84 -2 process_files 2101 2096 -5 forkexec 1345 1334 -11
* ll_types.c: optimize link type table, make it conditionalGravatar Denis Vlasenko2007-10-291-1/+9
| | | | | | | | | | | | | | | | on FEATURE_IP_RARE_PROTOCOLS function old new delta static.arphrd_name - 373 +373 static.arphrd_type - 124 +124 ll_type_n2a 58 78 +20 static.arphrd_names 496 - -496 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 1/0 up/down: 517/-496) Total: 21 bytes text data bss dec hex filename 776880 974 9420 787274 c034a busybox_old 776594 974 9420 786988 c022c busybox_unstripped
* Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms ↵Gravatar Denis Vlasenko2007-06-251-2/+2
| | | | <wharms@bfs.de>)
* delete tons of extra #includesGravatar Denis Vlasenko2007-05-311-1/+0
|
* preparatory patch for -Wwrite-strings #6Gravatar Denis Vlasenko2007-01-291-1/+1
|
* A bunch of defined(__GLIBC__) added. static-linking warning expandedGravatar Denis Vlasenko2006-12-181-2/+1
|
* add -Wundef, fix uncovered bugsGravatar Denis Vlasenko2006-11-171-1/+1
|
* Standardize on the vi editing directives being on the first line.Gravatar "Robert P. J. Day"2006-07-021-0/+1
|
* skip_whitespace() shouldn't claim its return value is const, it doesn't knowGravatar Rob Landley2006-06-181-2/+1
| | | | that and callers wind up typecasting it back.
* - janitorial: include proper prototypes in libiproute.Gravatar Bernhard Reutner-Fischer2006-04-021-0/+2
|
* just whitespaceGravatar Tim Riker2006-01-251-8/+8
|
* Patch from Bernhard Fischer to make a bunch of symbols staticGravatar Eric Andersen2005-04-161-1/+1
| | | | which were otherwise cluttering the global namespace.
* Remove trailing whitespace. Update copyright to include 2004.Gravatar Eric Andersen2004-03-151-36/+36
|
* On second thought, this is a better way to fix thingsGravatar Eric Andersen2003-07-141-46/+5
|
* Don't use Linux kernel headersGravatar Eric Andersen2003-07-141-3/+46
| | | | -Erik
* Patch from Lars Kellogg-Stedman:Gravatar Eric Andersen2003-06-201-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | I'm building BusyBox using a development kit for MontaVista Hardhat Linux (PPC) -- which, at least in this instance, is based around kernel 2.2.14. I've had to massage a few files in networking/libiproute/ to make it compile. Specifically: (1) Added a #include <sys/uio.h> for the iovec structure in libnetlink.c, (2) Put ifdefs in ll_types.c and ll_proto.c around various constants (ETH_P_xxx and ARPHRD_xxx) that weren't defined, (3) Make do_changename() in iplink.c require a kernel >= 2.4.0 -- the ifr structure in my environment doesn't have the ifr_name attribute. I've assumed this is a kernel dependency -- let me know if I ought to be checking something else. In the absence of the correct kernel, do_changename() always returns 0. Attached is a patch against the current CVS that will make these changes. -- Lars
* Only included headers that are used.Gravatar Glenn L McGrath2002-12-161-10/+0
|
* IP applet by Bastian Blank <waldi@debian.org>Gravatar Glenn L McGrath2002-11-101-0/+118