Page MenuHomeVyOS Platform

accel-ppp-ng: a refused PPPoE session add in VPP is not detected
Open, LowPublicBUG

Description

vpppoe_s_session_add_reply_callback() in accel-pppd/session_hooks/vyos_vpp/vpppoe.c only checks the status of the API call. A reply with a non-zero retval (VPP refused the request) is treated as success and the sw_if_index of the failed reply is used, so the session runs on an interface that does not exist or belongs to another session.

Reproduce (rolling 2026.11.22, VPP 25.10, PPPoE server on a VPP interface): create PPPoE sessions in VPP for the MAC of the client with IDs that accel-ppp-ng will pick (vppctl create pppoe session client-ip 0.0.0.0 session-id N client-mac <mac> disable-fib), then let the client dial. The session comes up as active on the interface of one of the sessions created by hand, and VPP created no session for it (count 104 before and after).

Fix: return an error for a non-zero retval, the session activation ends the session with NAS-Error and the next attempt of the client comes up.

GitHub issue: https://github.com/accel-ppp/accel-ppp-ng/issues/49
Pull request: https://github.com/accel-ppp/accel-ppp-ng/pull/51

Details

Version
rolling
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

rherold created this object in space S1 VyOS Public.
Viacheslav changed the subtype of this task from "Task" to "Bug".Thu, Nov 26, 1:06 PM