Bug 11006 - udhcpc script could call zcip
Summary: udhcpc script could call zcip
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 enhancement
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-10 07:57 UTC by m.brock
Modified: 2018-05-13 16:53 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description m.brock 2018-05-10 07:57:27 UTC
Hello all,

Busybox contains both udhcpc and zcip. But the udhcpc script does not make use of zcip (or avahi.autoip) if there is no DHCP server. Could this please be added?

Kind Regards,
Maarten Brock
Comment 1 m.brock 2018-05-10 08:04:20 UTC
Also, should there not be a default zcip script, like there is a default udhcpc script?
Comment 2 m.brock 2018-05-10 09:06:54 UTC
And another request, sorry.

But shouldn't one be able to tell zcip to give up the ip-address and stop monitoring it?

It seems to me this is a requirement if you want to stop it from the dhcp script when udhcpc finds a valid lease.
Comment 3 Denys Vlasenko 2018-05-13 16:53:38 UTC
> if there is no DHCP server

How would you define "there is no DHCP server"?

What if zcip is already running? DHCP and zeroconf can be used simultaneously, right?

There is no way to write a "universal" DHCP script - there are far too many things it can't know.

Also, please read

https://git.busybox.net/busybox/tree/examples/var_service/README

and look at this directory