[PATCH v2] - Add support for link without MAC (like PPPoE/PPPoA)

蔡崴丞 danny at saru.moe
Sat Jan 20 12:06:08 UTC 2018


Unfortunately, it doesn't work.

I'll get NAK response from my ISP because of client id difference between
dhcp6 solicit and dhcp6 request.

The random mac address should keep the same across dhcp session.

Maybe we can derive pseudo mac address from ipv6 local link address?

Denys Vlasenko <vda.linux at googlemail.com> 於 2018年1月20日 週六 上午1:45寫道:

> On Thu, Jan 18, 2018 at 5:08 PM, 蔡崴丞 <danny at saru.moe> wrote:
> > Since d6_read_interface relies on AF_PACKET (only exists when mac address
> > exists) for getting ifindex, dhcpc6 can't get ifindex on link without mac
> > address (like PPPoE.)
> > This patch fallbacks to ioctl SIOCGIFINDEX call for getting ifindex.
> > Also, this patch generates random client id when there is no mac address.
>
> Applied to git with some edits, please pull and let me know whether it
> works.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20180120/709ac85e/attachment.html>


More information about the busybox mailing list