]> git.ozlabs.org Git - ppp.git/commit
Suppress false error message on PPPoE disconnect
authorSimon Farnsworth <simon@farnz.org.uk>
Sun, 1 Mar 2015 11:49:06 +0000 (11:49 +0000)
committerSimon Farnsworth <simon@farnz.org.uk>
Sun, 1 Mar 2015 11:49:06 +0000 (11:49 +0000)
commit219aac3b53d0827549377f1bfe22853ee52d4405
tree42b537fa460208885dc60c973a0fec9b769f79a7
parent6e8eaa7a78b31cdab2edf140a9c8afdb02ffaca5
Suppress false error message on PPPoE disconnect

Once the kernel handles PPPoE PADTs correctly[1], a PADT triggered
disconnect will result in EALREADY when pppd tries to clear the session ID.

Simply ignore the error if, and only if, the error is EALREADY

[1] https://patchwork.ozlabs.org/patch/444717/

Signed-off-by: Simon Farnsworth <simon@farnz.org.uk>
pppd/plugins/rp-pppoe/plugin.c