]> code.ossystems Code Review - openembedded-core.git/commit
BusyBox: Fixing broadcast address is not fed and rightly initialized
authoryadi.hu@windriver.com <yadi.hu@windriver.com>
Fri, 24 Oct 2014 00:33:27 +0000 (08:33 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 4 Nov 2014 10:19:55 +0000 (10:19 +0000)
commit666c6a126cd12d2555361f5b573b6a26437df780
tree84d56b27fe5909f4a7d200eda47a336ae5c1212a
parentadbf0b1fdf897076e5e3dec2443c8927f315c2e6
BusyBox: Fixing broadcast address is not fed and rightly initialized

When using udhcpc along with ip command(/sbin/ip), broadcast address is not
assigned. Broadcast address is successfully assigned when using udhcpc without
ip command existence.

with ip command:
    $ifconfig eth0|grep Bcast
          inet addr:128.224.162.141  Bcast:0.0.0.0  Mask:255.255.254.0
    $
without ip command:
    $ifconfig eth0|grep Bcast
          inet addr:128.224.162.141  Bcast:128.224.163.255  Mask:255.255.254.0
    $

/etc/udhcp.d/50default[simple.script] is called to set ip address by dhcp
client, In case of ifconfig, it doesn't care of it's existence because it
will automatically calculate broadcast address then assign it if there is
no broadcast option. However in case of ip command, it requires broadcast
address statically.

Signed-off-by: Hu <yadi.hu@windriver.com>
Signed-off-by: Roy Li <rongqing.li@windriver.com>
meta/recipes-core/busybox/files/simple.script