ntpd: add support for -I IFACE

function                                             old     new   delta
packed_usage                                       29908   29947     +39
ntp_init                                             428     460     +32
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 71/0)               Total: 71 bytes

Signed-off-by: Nikolaus Froehlich <nikolaus@mathematik.uni-marburg.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
udhcp: add PXELINUX path prefix option (code 210) definition

Like d3092c99, this change adds support for the DHCP "path-prefix"
option, as defined in RFC 5071. We use the string identifer
"pxepathprefix".

Adding this option makes string parsing in the hook scripts simpler.

function                                             old     new   delta
dhcp_option_strings                                  255     269     +14
dhcp_optflags                                         72      74      +2

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
zcip: fix link-local IP conflict detection

During link-local IP resolution, if a regular ARP request is received
during the ARP probe period, it will incorrectly cause a target IP
conflict.  This then leads to a new IP being picked unnecessarily.

Per RFC 3927, section 2.2.1, we should flag a target IP conflict only if
the source IP is null, the target IP matches our IP, and the source
hw addr does not match our hw addr.

function                                             old     new   delta
zcip_main                                           1354    1322     -32

Signed-off-by: Ken Sharp <ken.sharp@ni.com>
Signed-off-by: Ben Shelton <ben.shelton@ni.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Rework busybox build process, remove compressed includes

Like the kernel, use an output folder to generate includes

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>

Change-Id: I988675b071c7a9a959598734fdaff1fdda4e274f
android: fix makefile to build on AOSP

relative path seems could be buggy on aosp,
also some remains in include could make problems.

Change-Id: I4fcbf1bb8d7588d670e2fc5f8beb71397175c8bb
android: fix simple path for cm, add note for later

current AOSP (master) seems a bit different regarding
the variable $(TARGET_OUT_INTERMEDIATES)

Change-Id: I4a92743124950fadffcbff2b88f455db09a45d9e
darwin: fix make prepare, force prebuilt host compiler

also fix relative TARGET_OUT_INTERMEDIATES path on aosp/master

Change-Id: Ie26850726898dcd101eac88d29691a06a94648c5
selinux: remove dependency on libsepol static lib

runcon applet is including flask.h for constants

the only one required is SECCLASS_PROCESS (2)

Change-Id: Ia57abc21b291e7cbf81fdd031baaa5ac4436cbc8
route: remove useless ipv6 header

Change-Id: I4cb0f232be6b7060e9a1bd66b4946060911405de
sha3: add 32-bit optimized bit-sliced implementation

It is an interesting trick, but so far I only managed to make it work
correctly, not to make it faster and/or smaller.
The code is ifdefed out for now.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
top: fix and merge code to parse /proc/meminfo

display_header() code to parse meminfo as is was buggy:
- uninitialized variables were used if meminfo was not as expected
- meminfo parsing failed on new kernels (3.14+) as new field 'MemAvailable'
  was introduced between MemFree and Buffers
- shared memory was handled only for ancient kernels (2.4.x and earlier)

as result Buffers and shared memory fields were shown with bogus values
on current kernels.

The new code does not try to parse the old style summary header, as the
separated fields are always present (it saves code size). Additionally,
both Shmem (2.6+) and MemShared (2.4 and earlier) fields are now parsed
and summed for shared memory usage; as only one of them exists depending
on kernel version.

display_topmem_header() parses also meminfo so this makes it use the
same code for code shrink.

function                                             old     new   delta
display_header                                         -     681    +681
display_topmem_process_list                          465     684    +219
parse_meminfo                                          -     189    +189
static.fields                                          -     106    +106
static.match                                         132       -    -132
.rodata                                           120254  120117    -137
display_topmem_header                                513       -    -513
display_process_list                                1705     667   -1038
------------------------------------------------------------------------------
(add/remove: 3/2 grow/shrink: 1/2 up/down: 1195/-1820)       Total: -625 bytes

Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
top: fix memset length (sizeof(ptr) vs sizeof(array) problem)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Android: final cleanup of new build system

Rename hidden config files to busybox-<profile>.config

Set also KBUILD_OUTPUT to prevent generation of files in src dir,
if local make without O= is made (which create host code)

That do not force the rebuild of config files, except with mm -B

With the help of Chih-Wei Huang <cwhuang@linux.org.tw>

Change-Id: Ic6bc2bc7177b1f266b9c0d1ccdfb925c1aa00d46
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Makefile: remove warnings on initial version check

Android.mk is using a SUBMAKE variable which is only
used to get busybox version as a CFLAG. This one has
the -s (--silent) makeflag. So ignore the KBUILD_OUTPUT
default value if this flag is present.

Change-Id: Ifcc11d148d6707a8c301b3d2ba0370b91215647e
sha3: code shrink (and speedup for SHA3_SMALL=0)

function                                             old     new   delta
sha3_process_block72                                1454    1359     -95

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
sha3: tweak comments and indentation

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Merge remote branch 'busybox_1_23' into cm-11.0

Include new busybox/master 1.23 changes

Change-Id: Ia170529aabba6f8ee52522153d804d5f9dd5ee8c
android: fix building errors with Android L

Tested OK with Android L PDK LRW17D.

The asm files are regenerated by Android L gensyscalls.py.
syscalls: restore compatibilty with current branch

on arm __NR_stime constant is undefined in asm/unistd.h

add also BIONIC_L define for assembly files (syscalls)
tested on arm and x86 (not on mips)

Change-Id: If5b6a6d3f8b4c10339f8e7b0bf340d02c1cf26cb
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
android: add missing mempcpy function

Change-Id: I9ae3f0820825d1b1ae37c505d535819452e02c53