[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH v2] - Add support for link without MAC (like PPPoE/PPPoA)
From:       蔡崴丞 <danny () saru ! moe>
Date:       2018-01-24 15:59:41
Message-ID: CAE6-apd8VmuUN2fqiRKKdCy=xv3QyH-L48x3CkOm8d+Y5vhRCQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Thanks. It works now.

Denys Vlasenko <vda.linux@googlemail.com> =E6=96=BC 2018=E5=B9=B41=E6=9C=88=
23=E6=97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=8811:47=E5=AF=AB=E9=81=93=EF=
=BC=9A

> Added a fix for that, please test.
>
> On Sat, Jan 20, 2018 at 1:06 PM, =E8=94=A1=E5=B4=B4=E4=B8=9E <danny@saru.=
moe> wrote:
> > Unfortunately, it doesn't work.
> >
> > I'll get NAK response from my ISP because of client id difference betwe=
en
> > 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@googlemail.com> =E6=96=BC 2018=E5=B9=B41=E6=
=9C=8820=E6=97=A5 =E9=80=B1=E5=85=AD =E4=B8=8A=E5=8D=881:45=E5=AF=AB=E9=81=
=93=EF=BC=9A
> >>
> >> On Thu, Jan 18, 2018 at 5:08 PM, =E8=94=A1=E5=B4=B4=E4=B8=9E <danny@sa=
ru.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 withou=
t
> >> > 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.
> >
> >
> > _______________________________________________
> > busybox mailing list
> > busybox@busybox.net
> > http://lists.busybox.net/mailman/listinfo/busybox
> >
>

[Attachment #5 (text/html)]

<div dir="ltr">Thanks. It works now.<br><br><div class="gmail_quote"><div \
dir="ltr">Denys Vlasenko &lt;<a \
href="mailto:vda.linux@googlemail.com">vda.linux@googlemail.com</a>&gt; 於 \
2018年1月23日 週二 下午11:47寫道:<br></div><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Added a fix for \
that, please test.<br> <br>
On Sat, Jan 20, 2018 at 1:06 PM, 蔡崴丞 &lt;danny@saru.moe&gt; wrote:<br>
&gt; Unfortunately, it doesn&#39;t work.<br>
&gt;<br>
&gt; I&#39;ll get NAK response from my ISP because of client id difference \
between<br> &gt; dhcp6 solicit and dhcp6 request.<br>
&gt;<br>
&gt; The random mac address should keep the same across dhcp session.<br>
&gt;<br>
&gt; Maybe we can derive pseudo mac address from ipv6 local link address?<br>
&gt;<br>
&gt; Denys Vlasenko &lt;<a href="mailto:vda.linux@googlemail.com" \
target="_blank">vda.linux@googlemail.com</a>&gt; 於 2018年1月20日 週六 \
上午1:45寫道:<br> &gt;&gt;<br>
&gt;&gt; On Thu, Jan 18, 2018 at 5:08 PM, 蔡崴丞 &lt;danny@saru.moe&gt; wrote:<br>
&gt;&gt; &gt; Since d6_read_interface relies on AF_PACKET (only exists when mac<br>
&gt;&gt; &gt; address<br>
&gt;&gt; &gt; exists) for getting ifindex, dhcpc6 can&#39;t get ifindex on link \
without<br> &gt;&gt; &gt; mac<br>
&gt;&gt; &gt; address (like PPPoE.)<br>
&gt;&gt; &gt; This patch fallbacks to ioctl SIOCGIFINDEX call for getting \
ifindex.<br> &gt;&gt; &gt; Also, this patch generates random client id when there is \
no mac<br> &gt;&gt; &gt; address.<br>
&gt;&gt;<br>
&gt;&gt; Applied to git with some edits, please pull and let me know whether it<br>
&gt;&gt; works.<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; busybox mailing list<br>
&gt; <a href="mailto:busybox@busybox.net" target="_blank">busybox@busybox.net</a><br>
&gt; <a href="http://lists.busybox.net/mailman/listinfo/busybox" rel="noreferrer" \
target="_blank">http://lists.busybox.net/mailman/listinfo/busybox</a><br> &gt;<br>
</blockquote></div></div>



_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic