English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Contents of /branches/common-nfo/package/busybox/patches/400-dhcp-ifup.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3427 - (show annotations) (download)
Wed Aug 8 11:08:41 2007 UTC (6 years, 6 months ago) by tg
File size: 789 byte(s)
merge in trunk rev. 3426
1 $FreeWRT$
2
3 udhcpc _seems to_ only work if the interface has already
4 been brought up, which could be done by the ipv6 link-local
5 mechanism but apparently isn't done
6
7 submitted as http://bugs.busybox.net/view.php?id=1434
8
9 --- busybox-1.4.1/networking/ifupdown.c.orig 2007-02-12 23:30:06.000000000 +0000
10 +++ busybox-1.4.1/networking/ifupdown.c 2007-02-12 23:30:43.000000000 +0000
11 @@ -476,6 +476,10 @@ static const struct dhcp_client_t ext_dh
12 static int dhcp_up(struct interface_defn_t *ifd, execfn *exec)
13 {
14 #if ENABLE_APP_UDHCPC
15 +#if ENABLE_FEATURE_IFUPDOWN_IP
16 + if (!execute("ip link set %iface% up", ifd, exec))
17 + return 0;
18 +#endif
19 return execute("udhcpc -R -n -p /var/run/udhcpc.%iface%.pid "
20 "-i %iface%[[ -H %hostname%]][[ -c %clientid%]][[ -s %script%]]",
21 ifd, exec);

root@freewrt.org:443
ViewVC Help
Powered by ViewVC 1.1.20