]> code.ossystems Code Review - openembedded-core.git/commit
dhcp: do not use ifconfig/route in dhclient-script
authorFahad Usman <fahad.usman@gmail.com>
Tue, 19 Aug 2014 18:39:57 +0000 (23:39 +0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 Aug 2014 08:25:05 +0000 (09:25 +0100)
commitafcaccd283e590294335f38d86635cf99db39e3f
treebeed808b879fdd3e2cdfe908e9ef316505084818
parentdaff14bf44c59542c8b8f1a455dcc59586be7e59
dhcp: do not use ifconfig/route in dhclient-script

The original patch was submitted on ISC's mailing list but it didn't get merged
for some reason, it can be found here;

https://lists.isc.org/pipermail/dhcp-users/2011-January/012910.html

"The ISC DHCP's dhclient-script for Linux still uses the legacy commands
'ifconfig' & 'route' to manage IPv4 network addresses & routes,
while it uses iproute2's new "ip" command to manage IPv6 network data.

This requires users & distributions to have both types of commands installed

The attached patch tries to improve the situation by replacing the
old "ifconfig" resp. "route" commands with their "ip" counterparts.

It even improves the logic a bit by only flushing the IPv4 addresses
instead of taking down the whole interface, which may still have active IPv6
connections."

Signed-off-by: Fahad Usman <fahad.usman@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/dhcp/dhcp/replace-ifconfig-route.patch [new file with mode: 0644]
meta/recipes-connectivity/dhcp/dhcp_4.3.0.bb