All of lore.kernel.org
 help / color / mirror / Atom feed
* default route handling of udhcpc
@ 2011-11-07  8:13 Steffen Sledz
  2011-11-07 10:11 ` Phil Blundell
  0 siblings, 1 reply; 6+ messages in thread
From: Steffen Sledz @ 2011-11-07  8:13 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Tim Riker

Recently we hit a problem with the default route handling of udhcpc.

The provided script busybox/files/simple.script (aka /etc/udhcpc.d/50default) removes all existing default routes before setting new routes. I think that's wrong.

If multiple interfaces offer default routes (via DHCP, static config, or any other way) there is no reason to prefer one over another (without having any additional information). So the script should only add the new default route. A short search in the internet brings up a lot of useful scenarios for multiple default routes.

So i tried to remove the part from the script which removes the existing routes. This led to a confusing situation.

If the script uses "route add default gw ..." (which is the case if /sbin/ip is not installed) everything seems to work fine.

But if /sbin/ip (from the busybox package) is installed the "ip route add default via ..." results in an "ip: RTNETLINK answers: File exists" error. In my opinion this is an error in the busybox ip implementation.

Opinions?

Regards,
Steffen

-- 
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 30 515932-237 mailto:sledz@dresearch-fe.de
Fax: +49 30 515932-299
Geschäftsführer: Dr. Michael Weber, Werner Mögle;
Amtsgericht Berlin Charlottenburg; HRB 130120 B;
Ust.-IDNr. DE273952058



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-11-11  7:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-07  8:13 default route handling of udhcpc Steffen Sledz
2011-11-07 10:11 ` Phil Blundell
2011-11-07 10:31   ` Steffen Sledz
2011-11-07 10:57     ` Phil Blundell
2011-11-07 11:11       ` Steffen Sledz
2011-11-11  7:50       ` Steffen Sledz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.