Skip to contentSkip to conversation

pppoe.ko intercepts PADT frames and leaves pppd ignorant

DISCUSSION Dan Williams 1 participant 1 message Oct 30, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

I noticed that pppd is completely ignorant of kernel handling of PADT frames; they will cause the kernel to terminate the PPPoE connection, but pppd continues blissfully on until the LCP echo timeout. Ideally pppd/rp-pppoe would notice that a PADT was received, and could then clean up immediately. This apparently happens fine with usermode PPPoE, but not with kernel PPPoE.

pppoe_disc_rcv() intercepts PADT and verifies it, and then drops it on the floor. How is userland supposed to know that the PPPoE session is now a zombie and the PPP session should be cleaned up?

Thanks,
Dan