aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/libnetlink.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* networking/*: remove superfluous commentsDenys Vlasenko2010-10-301-2/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace cleanupDenys Vlasenko2010-10-291-6/+6
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* libnetlink: code shrinkNatanael Copa2010-07-231-24/+14
| | | | | | | | | | | | | function old new delta xrtnl_open 95 93 -2 parse_rtattr 87 85 -2 rtnl_close 9 - -9 xrtnl_wilddump_request 101 64 -37 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/3 up/down: 0/-50) Total: -50 bytes Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: style fixes. no code changes (verified with objdump)Denys Vlasenko2010-01-281-2/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: use "can't" instead of "cannot"Denys Vlasenko2009-11-131-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: add FAST_FUNC to function ptrs where it makes senseDenys Vlasenko2009-06-051-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta evalcommand 1195 1209 +14 testcmd - 10 +10 printfcmd - 10 +10 echocmd - 10 +10 func_exec 270 276 +6 echo_dg 104 109 +5 store_nlmsg 85 89 +4 pseudo_exec_argv 195 198 +3 dotcmd 287 290 +3 machtime_stream 29 31 +2 discard_stream 24 26 +2 argstr 1299 1301 +2 killcmd 108 109 +1 evalfor 226 227 +1 daytime_stream 43 44 +1 run_list 2544 2543 -1 lookupvar 62 61 -1 ipaddr_modify 1310 1309 -1 ... parse_stream 2254 2245 -9 evalpipe 356 347 -9 collect_if 210 197 -13 read_opt 869 851 -18 handle_dollar 681 658 -23 print_addrinfo 1342 1303 -39 iterate_on_dir 156 59 -97 print_route 1709 1609 -100 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 12/130 up/down: 74/-767) Total: -693 bytes text data bss dec hex filename 841748 467 7872 850087 cf8a7 busybox_old 841061 467 7872 849400 cf5f8 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove check for errors on getsockaddr in cases we know they can't happenDenis Vlasenko2009-04-211-4/+5
| | | | | | | | | | | | libbb: make get_sock_lsa use only one getsockaddr syscall, not two function old new delta get_sock_lsa 72 101 +29 do_iplink 1151 1137 -14 arping_main 1585 1569 -16 dolisten 789 755 -34 xrtnl_open 161 94 -67
* optimize 16- and 32-bit movesDenis Vlasenko2008-12-081-2/+2
| | | | | | | | | | | | | | | | function old new delta udhcpd_main 1239 1257 +18 udhcp_add_simple_option 93 92 -1 buffer_read_le_u32 19 18 -1 unpack_gz_stream_with_info 526 520 -6 dnsd_main 1470 1463 -7 udhcp_run_script 1208 1186 -22 send_ACK 255 229 -26 arping_main 1661 1623 -38 send_offer 470 428 -42 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/8 up/down: 18/-143) Total: -125 bytes
* - first pass to unify/cleanup uid handling (-236b)Bernhard Reutner-Fischer2008-07-211-1/+1
| | | | This needs further love, alot of love.. Tito?
* libiproute: print_route() always uses stdout, do not pass FILE pointer to it.Denis Vlasenko2008-06-291-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | libiproute: Use FAST_FUNC function old new delta iprule_modify 884 905 +21 ipaddr_modify 1289 1310 +21 rtnl_send 53 69 +16 xrtnl_wilddump_request 109 124 +15 xrtnl_dump_filter 394 403 +9 rtnl_talk 534 539 +5 print_addrinfo 1369 1374 +5 iproute_modify 1017 1020 +3 iprule_list 81 83 +2 xrtnl_open 163 161 -2 parse_rtattr 89 87 -2 ipaddr_list_or_flush 2176 2174 -2 addattr_l 91 88 -3 flush_update 116 108 -8 iproute_list_or_flush 1285 1263 -22 iproute_get 878 852 -26 print_route 1913 1752 -161 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 9/8 up/down: 97/-226) Total: -129 bytes
* - make the first arg of the filter function passed to rtnl_dump_filter constantBernhard Reutner-Fischer2008-06-121-3/+3
| | | | to match normal iproute. No obj-code changes.
* more of -Wall fixes from Cristian Ionescu-Idbohrn.Denis Vlasenko2008-05-151-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* libnetlink: comment out unused code; don't use 8k stack buffersDenis Vlasenko2007-12-021-37/+60
| | | | | | | | | | | | function old new delta ipaddr_modify 1305 1297 -8 do_iprule 963 955 -8 do_iproute 2193 2169 -24 xrtnl_dump_filter 418 391 -27 rtnl_talk 671 536 -135 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/5 up/down: 0/-202) Total: -202 bytes
* use "glibc errno" trick not only for ash, but for entire busyboxDenis Vlasenko2007-05-311-7/+1
| | | | | (add/remove: 1/1 grow/shrink: 37/37 up/down: 139/-228) Total: -89 bytes
* - add xsendto and use where appropriate; shrink iplink; sanitize libiproute ↵Bernhard Reutner-Fischer2007-04-121-35/+31
| | | | | | a bit. -916 byte
* stop using __u32 etc. uint32_t is there for a reasonDenis Vlasenko2006-12-311-2/+2
|
* - add 'ip rule' support. First take..Bernhard Reutner-Fischer2006-11-211-4/+4
| | | | | text data bss dec hex filename 2999 0 0 2999 bb7 networking/libiproute/iprule.o
* last nail into error_msg() (de)capitalizationDenis Vlasenko2006-10-271-14/+14
|
* add open_read_close() and similar stuffDenis Vlasenko2006-10-141-1/+1
|
* Standardize on the vi editing directives being on the first line."Robert P. J. Day"2006-07-021-0/+1
|
* Header cleanup: don't #include headers that libbb.h already includes.Rob Landley2006-06-021-2/+1
|
* Kill off some unused code that was wasting several k, as noticed byEric Andersen2006-03-031-128/+0
| | | | Denis Vlasenko when building with -ffunction-sections -fdata-sections
* sort out yet more type issuesEric Andersen2006-01-301-1/+1
|
* Steve Grubb writes:Eric Andersen2004-05-051-2/+4
| | | | | | | | | | | | | | | Hello, Last November a bug was found in iproute. CAN-2003-0856 has more information. Basically, netlink packets can come from any user. If a program performs action based on netlink packets, they must be examined to make sure they came from the place they are expected (the kernel). Attached is a patch against pre8. Please apply this before releasing 1.00 final. All users of busy box may be vulnerable to local attacks without it. Best Regards, Steve Grubb
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-2/+2
|
* Patch from Lars Kellogg-Stedman:Eric Andersen2003-06-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Major coreutils update.Manuel Novoa III2003-03-191-35/+35
|
* Only included headers that are used.Glenn L McGrath2002-12-161-9/+4
|
* Cleanup error messagesGlenn L McGrath2002-11-281-61/+65
|
* IP applet by Bastian Blank <waldi@debian.org>Glenn L McGrath2002-11-101-0/+521