tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pppoe, dhcpcd v6 and renew



On Sun, Nov 12, 2017 at 02:56:08PM +0000, Roy Marples wrote:
> > [...]
> > Any idea how this could be properly fixed ?
> > I could periodically start dhcpcd from cron but I'd prefer a cleaner
> > way to achieve this ...
> 
> PPPoE needs to send the link down media event when the session terminates
> and the link up media event when it gets a new one.

ifconfig did show "status: no network" before switching back to "active".
But no event was sent.

> 
> Then both dhcpcd and ifwatchd will see this.
> 
> Here's the patch I make for PPP for this very thing, it just needs adapting
> to PPPoE I think.
> http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/net/if_spppsubr.c.diff?r1=1.149&r2=1.150&only_with_tag=MAIN&f=h

I'll have a look, thanks !

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index