<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/meta/recipes-core/busybox/files/simple.script, branch hardknott</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=hardknott</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=hardknott'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2020-01-27T16:48:08+00:00</updated>
<entry>
<title>busybox: udhcpc: fix 'ip route add' with multiple interfaces on the same network</title>
<updated>2020-01-27T16:48:08+00:00</updated>
<author>
<name>Luca Ceresoli</name>
<email>luca@lucaceresoli.net</email>
</author>
<published>2020-01-22T16:34:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=e223f7cbb11079662ea7786b259d4d9c4e5b23fc'/>
<id>urn:sha1:e223f7cbb11079662ea7786b259d4d9c4e5b23fc</id>
<content type='text'>
The udhcpc script fails to properly set a default route when:

 - 'ip' is present ($have_bin_ip -eq 1)
 - there are 2 or more interfaces connected to the same network
   (e.g. ethernet + wifi on the same home LAN / same DHCP server)

In this case, when the first interface gets an address from DHCP
(e.g. eth0), a default route is set correctly. When the second interface
(e.g. wlan0) gets its address, 'ip route add' without 'dev $interface' sets
the route on the other interface. The result looks like:

  # ip route
  default via 192.168.1.1 dev eth0  metric 5
  default via 192.168.1.1 dev eth0  metric 10          # wrong dev here
  192.168.1.0/24 dev eth0 scope link  src 192.168.1.20
  192.168.1.0/24 dev wlan0 scope link  src 192.168.1.30
  #

The situation might go unnoticed until eth0 is disconnected, because only
wlan0 is present but there is no route through wlan0.

Fix by explicitly passing "dev $interface" to 'ip route add'. Note that all
other 'ip' invocations already have "dev $interface" passed.

(From OE-Core rev: bb526eee429f25b85372f41e4d6d2865bcc39173)

Signed-off-by: Luca Ceresoli &lt;luca@lucaceresoli.net&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>busybox: udhcpc: fix IPv6 support when using udhcpc</title>
<updated>2020-01-21T12:52:53+00:00</updated>
<author>
<name>Stefan Agner</name>
<email>stefan.agner@toradex.com</email>
</author>
<published>2018-05-14T14:44:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=b4d44736da7dba540f661174f7362a554e8b0789'/>
<id>urn:sha1:b4d44736da7dba540f661174f7362a554e8b0789</id>
<content type='text'>
The udhcpc script calls ip addr flush .. which flushes addresses
of any address family, including IPv6. However, busybox udhcpc is
IPv4 only and should not influence IPv6 addressing. Hence use ip
addr flush with family constrait.

The script particularly broke IPv6 SLAAC: Typically when udhcpc
calls the script the kernel already assigned the IPv6 link-local
address. The flush removes the link-local IPv6 address again and
prohibits proper IPv6 operation such as SLAAC since neighbor
discovery protocol relies on IPv6 link-local addressing.

(From OE-Core rev: b77541dbb2f442e51842f9d24c8745a6df2d1478)

Signed-off-by: Stefan Agner &lt;stefan.agner@toradex.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>udhcpc: specify full path for ip command calls</title>
<updated>2016-02-11T12:27:49+00:00</updated>
<author>
<name>Mark O'Donovan</name>
<email>shiftee@eircom.net</email>
</author>
<published>2016-02-10T09:23:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=691277f8895643992945ad9315927a5b781968e3'/>
<id>urn:sha1:691277f8895643992945ad9315927a5b781968e3</id>
<content type='text'>
(From OE-Core rev: 97dd53468537968422569797122ddef4b779a488)

Signed-off-by: Mark O'Donovan &lt;modonovan@biotector.com&gt;
Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>busybox:udhcpc: Remove the routes from the right interface</title>
<updated>2015-02-24T17:41:44+00:00</updated>
<author>
<name>Holger Hans Peter Freyther</name>
<email>holger@moiji-mobile.com</email>
</author>
<published>2015-02-21T20:13:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=f7c45a4f747131c0c36bf3e278247746dacc6592'/>
<id>urn:sha1:f7c45a4f747131c0c36bf3e278247746dacc6592</id>
<content type='text'>
When using iproute2 to remove the route all default rules
will be removed. Scope the removal by interface like it is
done with ifconfig.

(From OE-Core rev: 2127a57cb1b3d83f9f7640051403e47e485b132c)

Signed-off-by: Holger Hans Peter Freyther &lt;holger@moiji-mobile.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>busybox:udhcpc: Start with a metric of 10 for routes</title>
<updated>2015-02-24T17:41:44+00:00</updated>
<author>
<name>Holger Hans Peter Freyther</name>
<email>holger@moiji-mobile.com</email>
</author>
<published>2015-02-21T20:13:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=48fa8684dd139f4bd8a4949cc41a01532eded4de'/>
<id>urn:sha1:48fa8684dd139f4bd8a4949cc41a01532eded4de</id>
<content type='text'>
Linux allows to install multiple default routes with
different metrics. Start with a metric above 0 to
allow other parts of the system to install routes
with a lower metric.

(From OE-Core rev: 566441f58d398d93f948067cf399d00cf3b37eba)

Signed-off-by: Holger Hans Peter Freyther &lt;holger@moiji-mobile.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>BusyBox: Fixing broadcast address is not fed and rightly initialized</title>
<updated>2014-11-04T10:27:10+00:00</updated>
<author>
<name>yadi.hu@windriver.com</name>
<email>yadi.hu@windriver.com</email>
</author>
<published>2014-10-24T00:33:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=7e8ca6fb182d5a04bec9adcafc2c108c50c1955f'/>
<id>urn:sha1:7e8ca6fb182d5a04bec9adcafc2c108c50c1955f</id>
<content type='text'>
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.

(From OE-Core rev: 666c6a126cd12d2555361f5b573b6a26437df780)

Signed-off-by: Hu &lt;yadi.hu@windriver.com&gt;
Signed-off-by: Roy Li &lt;rongqing.li@windriver.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>busybox: fix ip reference in simple.script</title>
<updated>2013-07-18T20:23:42+00:00</updated>
<author>
<name>Mark Hatle</name>
<email>mark.hatle@windriver.com</email>
</author>
<published>2013-07-15T20:10:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=e9b5ef1c2014ee4fbaca7cfd6e206c8fe68d3f7f'/>
<id>urn:sha1:e9b5ef1c2014ee4fbaca7cfd6e206c8fe68d3f7f</id>
<content type='text'>
The ip is being installed into /sbin as of the latest busybox.

(From OE-Core rev: 222ae6001db286d66462c6334f7f054ca727b7be)

Signed-off-by: Mark Hatle &lt;mark.hatle@windriver.com&gt;
Signed-off-by: Saul Wold &lt;sgw@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>busybox:udhcpc: fix the root_is_nfs() function</title>
<updated>2012-07-26T13:40:49+00:00</updated>
<author>
<name>Roy.Li</name>
<email>rongqing.li@windriver.com</email>
</author>
<published>2012-07-24T01:23:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=2ccbf35ed1de1e0c1a412d6366c1b1f7fe12c23a'/>
<id>urn:sha1:2ccbf35ed1de1e0c1a412d6366c1b1f7fe12c23a</id>
<content type='text'>
[YOCTO #2788]

The system will be hung when udhcpc starts, if nfs is mounted
at "/" directory and default route is different after starting
udhcpc.

The cause is that root_is_nfs() does not work after kernel-2.6.37,
since the device name has been changed from /dev/root to
${IPADDR}:${NFSDIR} on /proc/mounts. which leads to remove
the default routes to nfs server,

Now we use a loose match to check if rootfs is nfs.

(From OE-Core rev: 9921cb0104ea36daf909c110bb6767e5fd307da0)

Signed-off-by: Roy.Li &lt;rongqing.li@windriver.com&gt;
Signed-off-by: Saul Wold &lt;sgw@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>busybox: port improvements to simple.script from Debian (udhcpc)</title>
<updated>2012-05-04T15:44:59+00:00</updated>
<author>
<name>Andreas Oberritter</name>
<email>obi@opendreambox.org</email>
</author>
<published>2012-05-04T13:09:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=f60cdd4d564444ff6af24a0013a7fbe9823baf1a'/>
<id>urn:sha1:f60cdd4d564444ff6af24a0013a7fbe9823baf1a</id>
<content type='text'>
* Support resolvconf
* Avoid bashism $((metric++))
* Use 'domain' instead of 'search' for domain parameter

(From OE-Core rev: 3d4ccf98b83fe662f375cd5b029fdd602824c0e8)

Signed-off-by: Andreas Oberritter &lt;obi@opendreambox.org&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Major layout change to the packages directory</title>
<updated>2010-08-27T14:29:45+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>rpurdie@linux.intel.com</email>
</author>
<published>2010-08-27T14:14:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=29d6678fd546377459ef75cf54abeef5b969b5cf'/>
<id>urn:sha1:29d6678fd546377459ef75cf54abeef5b969b5cf</id>
<content type='text'>
Having one monolithic packages directory makes it hard to find things
and is generally overwhelming. This commit splits it into several
logical sections roughly based on function, recipes.txt gives more
information about the classifications used.

The opportunity is also used to switch from "packages" to "recipes"
as used in OpenEmbedded as the term "packages" can be confusing to
people and has many different meanings.

Not all recipes have been classified yet, this is just a first pass
at separating things out. Some packages are moved to meta-extras as
they're no longer actively used or maintained.

Signed-off-by: Richard Purdie &lt;rpurdie@linux.intel.com&gt;
</content>
</entry>
</feed>
