Applied with a lot of changes. Please test current git!
On Tue, May 7, 2019 at 11:18 PM Philippe Jounin <[email protected]> wrote: > Hello all, > > First of all, thanks for the continuous support of busybox. I love this set > of small footprints applications. > > I made a quick hack for udhcpd to support hostnames for static leases. > If instead of the documented example : > static_lease 00:60:08:11:CE:4E 192.168.0.54 > static_lease 00:60:08:11:CE:3E 192.168.0.44 > you write : > static_lease 00:60:08:11:CE:4E 192.168.0.54 host-54 > static_lease 00:60:08:11:CE:3E 192.168.0.44 host-44 > > udhcpd will use the fourth word to set the HOST_NAME (0x0c) option, allowing > the server to set the remote hostname for each static lease. > > Here is the patch, feel free to add it into the next release if you think > that it may be useful to someone else. > BTW i created the patch file with the command: > diff -ruN busybox-1.30.1/networking/udhcp/ > busybox-1.30.2/networking/udhcp/ > ~/udhcpd.patch, > hope it is fine. > > Best regards, > Philippe Jounin > > > > > > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > Garanti > sans virus. www.avast.com > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > <#m_7493830070768084865_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > _______________________________________________ > busybox mailing list > [email protected] > http://lists.busybox.net/mailman/listinfo/busybox >
_______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
