From 9934ef0935afcbe48ff59b00a62332e473568f14 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sat, 14 Jan 2023 11:19:54 +0100 Subject: [PATCH] interfaces: short road to PPPoEv6 interface #6245 There's a bit too much trickery involving get_ppp_parent() inside get_real_interface() which internally calls get_real_interface() again and produces the mismatch we see. We can safely assume that PPPoE always has a PPPoE device like the IPv4 case and be done with it. --- src/etc/inc/interfaces.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index ddc129d45..ffed831b8 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -3467,6 +3467,8 @@ function get_real_interface($interface = 'wan', $family = 'all') if ($family == 'inet6') { switch ($cfg['ipaddrv6'] ?? '') { + case 'pppoev6': + break; case '6rd': case '6to4': $realif = "{$interface}_stf";