Bug 11006

Summary: udhcpc script could call zcip
Product: Busybox Reporter: m.brock
Component: NetworkingAssignee: unassigned
Status: NEW ---    
Severity: enhancement CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

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