Emanuele Santini <[email protected]> writes: > + memcpy(eth->h_source, (void*)if_dev.ifr_hwaddr.sa_data, 6); /* Source > MAC */
This assumes ethernet. You can't do that. DHCP is IP and can run perfectly well over non-ethernet interfaces. The Busybox client is one of very few which does this correctly. This is a problem with e.g the qmi_wwan driver in "raw_ip" mode. Must admit being responsible for that one. But there are also other interface types which can transport IP without emulating ethernet. Like the tun interfaces from tuntap, or even ppp interfaces. Bjørn _______________________________________________ busybox mailing list [email protected] https://lists.busybox.net/mailman/listinfo/busybox
